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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/kms-issuer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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?


# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 2 additions & 2 deletions charts/kms-issuer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

securityContext:
runAsNonRoot: true
{{- toYaml .Values.podSecurityContext | nindent 8 }}
serviceAccountName: {{ include "kms-issuer.serviceAccountName" . }}
terminationGracePeriodSeconds: 10
{{- with .Values.nodeSelector }}
Expand Down
8 changes: 8 additions & 0 deletions charts/kms-issuer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ certManagerApprovalRBAC:
# -- The namespace where cert-manager service account is deployed
namespace: cert-manager

# Specifies pod Security Context
podSecurityContext:
runAsNonRoot: true

# Specifies Container Security Context
containerSecurityContext:
Comment on lines +58 to +59
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.

allowPrivilegeEscalation: false

podAnnotations: {}

resources: {}
Expand Down