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

Allow configuration of securityContext for PSA/PSS usage #259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

derbauer97
Copy link

For Migration to PSS/PSA you need to set certain settings in securityContext in pod or and container security Context. Therefore i added the option to set these via helmvalues.

Reference: https://kubernetes.io/docs/concepts/security/pod-security-standards/

@derbauer97 derbauer97 requested a review from a team as a code owner October 18, 2023 07:39
@maruina
Copy link
Collaborator

maruina commented Nov 25, 2023

@derbauer97 I can't approve PRs anymore, but @Smirl or @gjtempleton can have a look

Copy link
Member

@gjtempleton gjtempleton left a comment

Choose a reason for hiding this comment

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

A few small comments/queries.

@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.2
version: 1.0.3
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this a minor version bump as we're adding new functionality?

@@ -68,9 +68,9 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
{{- toYaml .Values.containerSecurityContext | nindent 12 }}
Copy link
Member

Choose a reason for hiding this comment

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

This appears to be over-indenting by 2.

Comment on lines +58 to +59
# Specifies Container Security Context
containerSecurityContext:
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this a bit more specific, as it only applies to the manager container, not the kube-rbac-proxy container if enabled.

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