-
Notifications
You must be signed in to change notification settings - Fork 25
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 agent + chromium as non-root user #965
Conversation
c92087a
to
19f8d0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a stab at this! Left a small comment about multi-layering.
As usual, it depends on what we consider part of our API. Let me answer with a question: If you try to run the new image, both in Docker and K8s, with the
I'm not aware of any other way, but I may be wrong here :)
Yes, that is "expected". |
d23d8d7
to
8f7d547
Compare
^ rebased because it's out-of-date with main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I've also given it a spin and verified the nonroot image works wonderfully with the example config, so I don't think there's need to do a major bump.
I would like, however, to add a note to the changelog to make this more visible. I'm not sure how we could do that.
Closes #847
This might be a little naive, please keep me honest. cc @mem @nadiamoe
Looking for feedback on the following
Confirm: version this as a breaking change?Q about k8ssecurityContext
at the bottom of this description.Summary:
release
andwith-browser
build targets of the Dockerfile.scratch
/tarball-based images to do the same.K8s securityContext
Here's the toy YAML that I used to run this in my local cluster:
The issue with this
securityContext
:Is that if I uncomment
allowPrivilegeEscalation: false
then I run into the following error:Which, I guess, is from the default behaviour of listening on
localhost:4050
for the/metrics
endpoint?