Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Add capability to disable user and permission management with env var #129

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Jun 12, 2019

This allows the container to be run in a mode where we don't drop to the consul user and do not perform chown on the data/conf directories and do not ever try to enable privileged port binding.

Essentially using the env var opts you out of all the permission type things and you now need to manage it yourself.

It can now be run like:

docker run -e CONSUL_DISABLE_PERM_MGMT= consul:latest

Without specifying the new environment variable the previous behavior will be used.

The main use case for this is around executing the container as non-root. The user running the container will then need to ensure that the permissions on the data directory and the config directory allow the user running the container access.

@mkeeler mkeeler requested a review from a team June 12, 2019 16:24
Copy link
Member

@rboyer rboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants