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

feat(core): Change Operator and Builder Pod user as non root 1000 #4407

Merged

Conversation

gansheer
Copy link
Contributor

@gansheer gansheer commented May 23, 2023

Motivation

Since the new builder pod is configured to run with non root user and a persistent volume has been created there have been some permission/copy issues I fixed while working on #4297. The permissions issues can be fixed two different way on kubernetes security : extend root user or extend non-root user.

Since it make more sense to try to avoid root (as a general rule) and some Dockerfile already use user with ID 1000 (same for group ID), I made some first modifications to try to have more non-root user for operator and builder pods.

There are also some warnings on integration containers security validations, but they will be dealt with #4297.

Description

  • Dockerfile : sets the group for folders used for dependencies is 1000
  • Force 1000 as User ID/ Group ID/FS Group ID to be coherent with the one declared in Dockerfile
  • Use 1000 on volume to ensure dependencies from camel-k-runtime can be added

Release Note

Extend usage of non-root user (1000) on operator and builder pods

* Dockerfile : sets the group for folders used for dependencies is 1000
* Force 1000 as User ID/ Group ID/FS Group ID to be coherent with the one declared in Dockerfile
* Use 1000 on volume to ensure dependencies from camel-k-runtime can be added
Copy link
Contributor

@squakez squakez left a comment

Choose a reason for hiding this comment

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

Nice work, thanks for the fix!

@squakez
Copy link
Contributor

squakez commented May 24, 2023

Check failure because #4408

@squakez squakez merged commit 8272026 into apache:main May 24, 2023
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.

3 participants