Skip to content
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

feat: add non-root user to docker image #1843

Merged
merged 4 commits into from
Mar 9, 2023
Merged

Conversation

nrwiersma
Copy link
Contributor

What is the problem I am trying to address?

In many modern deployment environments, root containers are not allowed. While it is simple to switch the user on the fly, that user needs to have a home directory for this to work.

How is the fix applied?

A non-root user athens uid/gid 1000 is created in the docker image, but not used by default. As existing users will still want to use root for this to be non-breaking, the new user is not used by default. Documentation on the non-root user has also been added to make this change discoverable.

@nrwiersma nrwiersma requested a review from a team as a code owner March 2, 2023 19:27
Copy link
Member

@DrPsychick DrPsychick left a comment

Choose a reason for hiding this comment

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

Typo "authens"

@nrwiersma nrwiersma changed the title Non root feat: add non-root user to docker image Mar 3, 2023
@manugupt1 manugupt1 merged commit 96f7cb8 into gomods:main Mar 9, 2023
@nrwiersma nrwiersma deleted the non-root branch March 9, 2023 06:00
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.

3 participants