GoogleContainerTools / GoogleContainerTools/container-structure-test

Add support to containerRunOptions for --cap-drop

Open
#389 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
2.5k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

For security reasons, it's often desirable to drop all linux capabilities when running containers in Kubernetes. However, there is currently only a way to add capabilities for tests and no way to drop them.

As seen in, https://github.com/GoogleContainerTools/container-structure-test/pull/327, support was only added for `--cap-add`

`--cap-drop` can similarly remove default capabilities - see https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.