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

Add support for setting seccomp profile and allow privilege escalatio… #622

Merged
merged 2 commits into from
Oct 29, 2023

Conversation

tspearconquest
Copy link
Contributor

@tspearconquest tspearconquest commented Oct 13, 2023

…n security context values

This adds support for 2 new configuration options to control the injected container's security context:

      WEBHOOK_CONTAINER_SECURITY_CONTEXT_ALLOW_PRIVILEGE_ESCALATION: "false"
      WEBHOOK_CONTAINER_SECURITY_CONTEXT_SECCOMP_RUNTIME_DEFAULT: "true"

Both of these are optional settings. The first; if defined, adds the allowPrivilegeEscalation field to the securityContext spec of the initContainer. The second; if defined, and set true, adds the seccompProfile field to the securityContext spec of the initContainer with type: runtime/default value pre-defined.

…n security context values

Signed-off-by: Thomas Spear <[email protected]>
Signed-off-by: Thomas Spear <[email protected]>
Copy link
Contributor

@181192 181192 left a comment

Choose a reason for hiding this comment

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

Thanks @tspearconquest ☺️

@181192 181192 merged commit 4cfcb02 into SparebankenVest:master Oct 29, 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.

2 participants