Skip to content

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 mreiferson force-pushed the docker-non-root-user branch from 40fd2c9 to d339286 Compare May 7, 2019 15:34
@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