-
Notifications
You must be signed in to change notification settings - Fork 117
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: add support to add and drop linux capabilities #1702
Conversation
@@ -25,6 +25,7 @@ require ( | |||
github.com/klauspost/compress v1.17.11 | |||
github.com/klauspost/pgzip v1.2.6 | |||
github.com/kubescape/go-git-url v0.0.30 | |||
github.com/moby/moby v27.4.0+incompatible |
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.
This is the cost of tracking and aligning to Docker default capabilities.
449ec12
to
a19c214
Compare
This commit adds the configuration to add and drop Linux capabilies to the container for bubblewrap and docker runners, enabling a declarative way to do least privilege at both build and test time. Furthermore, the minimum set of process capabilities in Bubblewrap container is now the same of Docker default capabilities. Signed-off-by: Massimiliano Giovagnoli <[email protected]>
a19c214
to
8e46080
Compare
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
d66f8b7
to
cbf421c
Compare
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
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.
Thank you. This will unblock many confusing local package build failures we see in sustaining where we end up doing a docker/bubblewrap/sudo dance to try get a successful build.
This PR adds the configuration to add and drop Linux capabilies to the container for bubblewrap and docker runners, enabling a declarative way to do least privilege. The capabilities added or dropped are relative to the minimum set of capabilities Docker sets. They are applied to all both build and test pipelines.
Furthermore, the minimum set of process capabilities in Bubblewrap container is now the same of Docker default capabilities, to improve result consistency.
Fixes #1703
Melange Pull Request Template
Functional Changes
Notes:
SCA Changes
Notes:
Linter
Notes: