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

Update security context #134

Merged
merged 6 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions dotnet/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: .NET Core Helm Chart
name: dotnet
version: 9.2.0
version: 9.3.0
dependencies:
- name: libchart
version: 0.3.0
version: 0.4.0
repository: file://../libchart
17 changes: 10 additions & 7 deletions dotnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

securityContext:
podSecurityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsUser: 1000
# fsGroup: 2000
runAsUser: 65534
fsGroup: 65534

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

environment: {}
secrets: {}
Expand Down
4 changes: 2 additions & 2 deletions golang/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: golan Helm Chart
name: golang
version: 13.2.0
version: 13.3.0
dependencies:
- name: libchart
version: 0.3.0
version: 0.4.0
repository: file://../libchart
17 changes: 10 additions & 7 deletions golang/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

securityContext:
podSecurityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsUser: 1000
# fsGroup: 2000
runAsUser: 65534
fsGroup: 65534

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

environment: {}
secrets: {}
Expand Down
4 changes: 2 additions & 2 deletions java/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Java Helm Chart
name: java
version: 6.2.0
version: 6.3.0
dependencies:
- name: libchart
version: 0.3.0
version: 0.4.0
repository: file://../libchart
17 changes: 10 additions & 7 deletions java/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

securityContext:
podSecurityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsUser: 1000
# fsGroup: 2000
runAsUser: 65534
fsGroup: 65534

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

environment: {}
secrets: {}
Expand Down
2 changes: 1 addition & 1 deletion libchart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: library
# 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: 0.3.0
version: 0.4.0

# 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
5 changes: 3 additions & 2 deletions libchart/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ imagePullSecrets:
{{- end }}
serviceAccountName: {{ include "libchart.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.securityContext | nindent 2 }}
{{- toYaml .Values.podSecurityContext | nindent 2 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down Expand Up @@ -65,7 +65,8 @@ containers:
{{- end }}
resources:
{{ toYaml .Values.resources | nindent 6 }}

securityContext: &securityContext
{{- toYaml .Values.securityContext | nindent 6 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | nindent 4 }}
Expand Down
17 changes: 10 additions & 7 deletions libchart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,17 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

securityContext:
podSecurityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsUser: 1000
# fsGroup: 2000
runAsUser: 65534
fsGroup: 65534

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

environment: {}
secrets: {}
Expand Down
4 changes: 2 additions & 2 deletions nodejs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
description: Node.js Helm Chart
name: nodejs
version: 13.2.0
version: 13.3.0
dependencies:
- name: libchart
version: 0.3.0
version: 0.4.0
repository: file://../libchart
17 changes: 10 additions & 7 deletions nodejs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

securityContext:
podSecurityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsUser: 1000
# fsGroup: 2000
runAsUser: 65534
fsGroup: 65534

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

environment: {}
secrets: {}
Expand Down
4 changes: 2 additions & 2 deletions web/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
appVersion: "1.0"
description: Helm chart for deployment of web servers
name: web
version: 10.3.0
version: 10.4.0
dependencies:
- name: libchart
version: 0.3.0
version: 0.4.0
repository: file://../libchart
17 changes: 10 additions & 7 deletions web/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

securityContext:
podSecurityContext:
runAsNonRoot: true
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsUser: 1000
# fsGroup: 2000
runAsUser: 65534
fsGroup: 65534

securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

environment: {}
secrets: {}
Expand Down