Skip to content

Set chmod 600 on existing cookieFile #193

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

Merged
merged 2 commits into from
Sep 25, 2017

Conversation

tiagomtotti
Copy link
Contributor

Updates the permission of an existing cookie file to the one expected by Erlang.
This allows the image to work with Kubernetes StatefulSets, when a new POD takes the place of a existing one that was deleted.
Whithout it, an ".erlang.cookie must be accessible by owner only" error will occour, once the Dockerfile sets the entire mount permission to 777.

Updates the permission of an existing cookie file to the one expected by Erlang.
This allows the image to work with Kubernetes StatefulSets, when a new POD takes the place of a existing one that was deleted.
Whithout it, an ".erlang.cookie must be accessible by owner only" error will occour, once the Dockerfile sets the entire mount permission to 777.
@tianon
Copy link
Member

tianon commented Sep 22, 2017

So, I don't fully understand what weird thing Kubernetes is doing to cause permissions on this file to reset to 777, but I think this PR could be simpler by just moving the existing chown down a line or two outside the if it's currently in (and I don't think a comment is necessary).

Also, this needs to be updated in both copies of this script. 👍

@tiagomtotti
Copy link
Contributor Author

@tianon thanks for your feedback. I've removed the comment, removed the ducplicated line as you suggested and applied the change in the debian entrypoint as well. 👍

@tianon tianon merged commit 513a11b into docker-library:master Sep 25, 2017
@tianon
Copy link
Member

tianon commented Sep 25, 2017

Looks good, thanks!

tianon added a commit to infosiftr/stackbrew that referenced this pull request Sep 25, 2017
- `bash`: `scanelf` improvements (tianon/docker-bash#8)
- `docker`: update `Dockerfile` with `arm32v6` and `arm64v8` (still blocked on gliderlabs/docker-alpine#304)
- `drupal`: `scanelf` improvements (docker-library/drupal#93)
- `ghost`: 1.9.0
- `haproxy`: `scanelf` improvements (docker-library/haproxy#45)
- `httpd`: `scanelf` improvements (docker-library/httpd#74)
- `irssi`: `scanelf` improvements (jessfraz/irssi#18)
- `memcached`: `scanelf` improvements (docker-library/memcached#27)
- `php`: `scanelf` improvements (docker-library/php#500), `libressl` in Alpine 3.6+/PHP 7.2+ (docker-library/php#499)
- `postgres`: `scanelf` improvements (docker-library/postgres#344)
- `rabbitmq`: update cookie file permissions (docker-library/rabbitmq#193), consume upstream artifacts from GitHub (docker-library/rabbitmq#195), set `total_memory_available_override_value` (docker-library/rabbitmq#196)
- `ruby`: `scanelf` improvements (docker-library/ruby#161)
- `tomcat`: `scanelf` improvements (docker-library/tomcat#85)
- `wordpress`: `scanelf` improvements (docker-library/wordpress#240)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants