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

Run as non-root user #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GauntletWizard
Copy link

Hi, I'm Ted Hahn and I'm working on the Kubernetes team at Nordstrom. We're trying to implement Pod Security Policies (PSP) org-wide, and your container image is used by some of our teams.

I'm trying to remedy the following attributes:

  • Runs as Root

Even though containers run in namespaces, it is possible (through bugs or by leveraging exposed parts of the host namespace) to "escape" the container and affect the root system. To reduce the surface area of these escapes, containers should run as a non-root user.

@GauntletWizard
Copy link
Author

The tests seem to have failed because of transient network issues:

+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: Cannot assign requested address
+ gpg --keyserver pgp.mit.edu --recv-keys 05CE15085FC09D18E99EFB22684A14CF2582E0C5
gpg: keyserver receive failed: No data
+ gpg --keyserver keyserver.pgp.com --recv-keys 
05CE15085FC09D18E99EFB22684A14CF2582E0C5
gpg: keyserver receive failed: Connection timed out
The command '/bin/sh -c set -ex &&     for key in         05CE15085FC09D18E99EFB22684A14CF2582E0C5 ;     do         gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ||         gpg --keyserver pgp.mit.edu --recv-keys "$key" ||         gpg --keyserver keyserver.pgp.com --recv-keys "$key" ;     done' returned a non-zero code: 2

Can you try rerunning?

@juheimbu
Copy link

This is a change I'm also interested in. I currently take the Dockerfiles and modify them to meet my requirements, but it would be nice to have a reduction in the changes I'm required to make.

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.

2 participants