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

docker: don't run as root #186

Merged
merged 1 commit into from
May 8, 2019

Conversation

cameronattard
Copy link
Contributor

Problem

It is best practice to run containers as a non-root user. Currently, the sso container runs as root.

Solution

Create a non-root user, sso, in the image and configure the container to run as this user using the USER directive.

@mreiferson
Copy link
Contributor

Hi @cameronattard, thanks for this!

FYI I pushed up a whitespace at EOF fix, waiting for the build to test locally.

@mreiferson mreiferson added the enhancement New feature or request label May 7, 2019
@mreiferson mreiferson self-requested a review May 7, 2019 15:35
Copy link
Contributor

@mreiferson mreiferson left a comment

Choose a reason for hiding this comment

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

LGTM

@mreiferson
Copy link
Contributor

(validated this with quickstart)

@mreiferson mreiferson merged commit 89a17b6 into buzzfeed:master May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants