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 the operator as non root user in scratch container #62

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Conversation

coro
Copy link
Contributor

@coro coro commented Mar 15, 2021

  • Built the binary with time zone data as it is not in the base scratch
    image
  • Added intermediate build step to fetch CA certificates for scratch
    container, and create a nonroot user
  • Changed base image to scratch
  • Added pretty line breaks

Additional Context

This matches the path of the cluster operator, except for having a different user & group ID.
This decreases security surface area, and allows for easier open source dependency scanning.

Tested with system tests.

* Built the binary with time zone data as it is not in the base scratch
image
* Added intermediate build step to fetch CA certificates for scratch
container, and create a nonroot user
* Changed base image to scratch
* Added pretty line breaks
@coro coro merged commit ae956f1 into main Mar 15, 2021
@coro coro deleted the scratch branch March 15, 2021 16:33
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.

None yet

2 participants