-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release(package): force chmod permissions without write permissions in the groups #15627
Conversation
Failures are not related to these changes but a bug when testing feature branches for the DRA. I'll fix it in a follow-up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this fix should work.
- we'll need a changelog for this (in this PR or in a separate one)
- related to the above, i wonder if we should fix this in 8.17 patch, or just from 8.18 and 9.0. In any case, we shouldn't merge this too soon to avoid it coming out untested in 8.17.2.
I'll add an entry in the |
TestI downloaded $ tar -xvzf apm-server-9.1.0-SNAPSHOT-linux-x86_64.tar.gz
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/apm-server.yml
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/.build_hash.txt
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/java-attacher.jar
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/LICENSE.txt
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/NOTICE.txt
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/apm-server
$ ls -l apm-server-9.1.0-SNAPSHOT-linux-x86_64
total 134456
-rw-------@ 1 vmartinez staff 3859 Feb 10 11:30 LICENSE.txt
-rw-------@ 1 vmartinez staff 943755 Feb 10 11:30 NOTICE.txt
-rwxr-xr-x@ 1 vmartinez staff 59224216 Feb 10 11:30 apm-server
-rw-------@ 1 vmartinez staff 39268 Feb 10 11:30 apm-server.yml
-rw-------@ 1 vmartinez staff 8621110 Feb 10 11:30 java-attacher.jar
|
See
I removed the backport label for 8.17 |
Co-authored-by: Carson Ip <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! nit, as discussed, to make a clearer description
Co-authored-by: Carson Ip <[email protected]>
This reverts commit 9872165.
TestsI downloaded this $ tar -xvzf apm-server-9.1.0-SNAPSHOT-linux-x86_64.tar.gz
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/apm-server.yml
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/.build_hash.txt
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/java-attacher.jar
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/LICENSE.txt
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/NOTICE.txt
x apm-server-9.1.0-SNAPSHOT-linux-x86_64/apm-server
$ ls -l apm-server-9.1.0-SNAPSHOT-linux-x86_64
total 134456
-rw-r--r--@ 1 vmartinez staff 3859 Feb 11 15:35 LICENSE.txt
-rw-r--r--@ 1 vmartinez staff 943755 Feb 11 15:35 NOTICE.txt
-rwxr-xr-x@ 1 vmartinez staff 59224216 Feb 11 15:35 apm-server
-rw-------@ 1 vmartinez staff 39268 Feb 11 15:35 apm-server.yml
-rw-r--r--@ 1 vmartinez staff 8621110 Feb 11 15:35 java-attacher.jar I downloaded this $ tar -xvzf apm-server-9.1.0-SNAPSHOT-linux-arm64.tar.gz
x apm-server-9.1.0-SNAPSHOT-linux-arm64/
x apm-server-9.1.0-SNAPSHOT-linux-arm64/apm-server.yml
x apm-server-9.1.0-SNAPSHOT-linux-arm64/.build_hash.txt
x apm-server-9.1.0-SNAPSHOT-linux-arm64/java-attacher.jar
x apm-server-9.1.0-SNAPSHOT-linux-arm64/LICENSE.txt
x apm-server-9.1.0-SNAPSHOT-linux-arm64/NOTICE.txt
x apm-server-9.1.0-SNAPSHOT-linux-arm64/apm-server
$ ls -l apm-server-9.1.0-SNAPSHOT-linux-arm64
total 129632
-rw-r--r--@ 1 vmartinez staff 3859 Feb 11 15:36 LICENSE.txt
-rw-r--r--@ 1 vmartinez staff 943755 Feb 11 15:36 NOTICE.txt
-rwxr-xr-x@ 1 vmartinez staff 56754328 Feb 11 15:36 apm-server
-rw-------@ 1 vmartinez staff 39268 Feb 11 15:36 apm-server.yml
-rw-r--r--@ 1 vmartinez staff 8621110 Feb 11 15:36 java-attacher.jar |
…ions in the groups (backport #15627) (#15677) * release(package): force chmod permissions without write permissions in the groups (#15627) (cherry picked from commit 9f75aa4) # Conflicts: # changelogs/8.18.asciidoc # changelogs/9.0.asciidoc * remove --------- Co-authored-by: Victor Martinez <[email protected]>
…ions in the groups (backport #15627) (#15675) * release(package): force chmod permissions without write permissions in the groups (#15627) (cherry picked from commit 9f75aa4) # Conflicts: # changelogs/9.0.asciidoc * remove --------- Co-authored-by: Victor Martinez <[email protected]>
…sions in the groups (backport #15627) (#15676) * release(package): force chmod permissions without write permissions in the groups (#15627) (cherry picked from commit 9f75aa4) # Conflicts: # changelogs/9.0.asciidoc * remove --------- Co-authored-by: Victor Martinez <[email protected]>
Motivation/summary
Linux package
apm-server.yml
has incorrect file mode664
, causing an error on startup.I decided to use
install
instead of changing the umask in the VM itself so the specific requirements are set correctly in the scripts. Tha's how it's done in the fnpm, seeapm-server/packaging/nfpm.yml
Lines 24 to 31 in e8b7251
Checklist
For functional changes, consider:
How to test these changes
Download
tar.gz
files from https://buildkite.com/elastic/apm-server-package/builds/4008Then
If you compare to what's the current settings in my local with
umask 0022
andumask 0002
You can see the file permissions is
640
instead644
or664
.Related issues
Closes #15592