Move security values to server and oidc components

Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:04 +01:00
committed by Marco Franssen
parent 8dd05399d1
commit 76a0c5ecfc
4 changed files with 28 additions and 14 deletions
+4 -2
View File
@@ -93,14 +93,14 @@ Kubernetes: `>=1.21.0-0`
| oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | | | oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | |
| oidc.logLevel | string | `"INFO"` | | | oidc.logLevel | string | `"INFO"` | |
| oidc.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | | | oidc.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | |
| oidc.podSecurityContext | object | `{}` | |
| oidc.replicaCount | int | `1` | | | oidc.replicaCount | int | `1` | |
| oidc.resources | object | `{}` | | | oidc.resources | object | `{}` | |
| oidc.securityContext | object | `{}` | |
| oidc.service.annotations | object | `{}` | | | oidc.service.annotations | object | `{}` | |
| oidc.service.port | int | `80` | | | oidc.service.port | int | `80` | |
| oidc.service.type | string | `"NodePort"` | | | oidc.service.type | string | `"NodePort"` | |
| podAnnotations | object | `{}` | | | podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| securityContext | object | `{}` | |
| server.dataStorage.accessMode | string | `"ReadWriteOnce"` | | | server.dataStorage.accessMode | string | `"ReadWriteOnce"` | |
| server.dataStorage.enabled | bool | `true` | | | server.dataStorage.enabled | bool | `true` | |
| server.dataStorage.size | string | `"1Gi"` | | | server.dataStorage.size | string | `"1Gi"` | |
@@ -110,8 +110,10 @@ Kubernetes: `>=1.21.0-0`
| server.image.repository | string | `"spiffe/spire-server"` | | | server.image.repository | string | `"spiffe/spire-server"` | |
| server.image.version | string | `""` | | | server.image.version | string | `""` | |
| server.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | | | server.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | |
| server.podSecurityContext | object | `{}` | |
| server.replicaCount | int | `1` | | | server.replicaCount | int | `1` | |
| server.resources | object | `{}` | | | server.resources | object | `{}` | |
| server.securityContext | object | `{}` | |
| server.service.port | int | `8081` | | | server.service.port | int | `8081` | |
| server.service.type | string | `"ClusterIP"` | | | server.service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | | | serviceAccount.annotations | object | `{}` | |
+1 -1
View File
@@ -30,7 +30,7 @@ spec:
{{- end }} {{- end }}
serviceAccountName: {{ include "spire.serviceAccountName" . }}-agent serviceAccountName: {{ include "spire.serviceAccountName" . }}-agent
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.oidc.podSecurityContext | nindent 8 }}
containers: containers:
- name: spire-oidc - name: spire-oidc
securityContext: securityContext:
@@ -31,7 +31,7 @@ spec:
serviceAccountName: {{ include "spire.serviceAccountName" . }}-server serviceAccountName: {{ include "spire.serviceAccountName" . }}-server
shareProcessNamespace: true shareProcessNamespace: true
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.server.podSecurityContext | nindent 8 }}
{{- with .Values.server.nodeSelector }} {{- with .Values.server.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
+22 -10
View File
@@ -64,6 +64,17 @@ server:
type: ClusterIP type: ClusterIP
port: 8081 port: 8081
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
csiDriver: csiDriver:
image: image:
registry: ghcr.io registry: ghcr.io
@@ -143,6 +154,17 @@ oidc:
- spire-oidc.spire.svc.cluster.local - spire-oidc.spire.svc.cluster.local
- oidc-discovery.example.org - oidc-discovery.example.org
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
insecureScheme: insecureScheme:
enabled: false enabled: false
@@ -201,16 +223,6 @@ serviceAccount:
podAnnotations: {} podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
autoscaling: autoscaling:
enabled: false enabled: false