(feat) Standardise and Harden default app securitycontext (#1028)

* Apply security hardened defaults to values.yaml for all apps

* Add default common securityContext to all apps

* Adjust securityContext defaults in questions.yaml, according to values.yaml

* Add default common podSecurityContext to all apps

* Clean whitespace

* Clean more whitespace

* Adjust podSecurityContext defaults in questions.yaml, according to values.yaml

* fix pgadmin

Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
Kjeld Schouten-Lebbing
2021-09-26 20:05:21 +02:00
committed by GitHub
co-authored by Stavros kois
parent fe03d574fc
commit acf510ea13
314 changed files with 2675 additions and 3091 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "1.22.2"
appVersion: 1.22.2
dependencies:
- name: common
repository: https://truecharts.org/
version: 7.0.14
repository: https://truecharts.org
version: 8.0.7
- condition: postgresql.enabled
name: postgresql
repository: https://truecharts.org/
@@ -31,4 +31,4 @@ name: vaultwarden
sources:
- https://github.com/dani-garcia/vaultwarden
type: application
version: 8.0.6
version: 9.0.0
@@ -381,9 +381,6 @@ questions:
type: string
default: ""
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
@@ -585,7 +582,6 @@ questions:
max: 65535
default: 36001
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
@@ -936,8 +932,6 @@ questions:
schema:
type: string
# Include{ingressList}
- variable: securityContext
@@ -955,12 +949,12 @@ questions:
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
default: true
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: true
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
@@ -1011,6 +1005,7 @@ questions:
description: "OnRootMismatch"
- value: "Always"
description: "Always"
- variable: resources
group: "Resources and Devices"
label: ""
@@ -1052,7 +1047,6 @@ questions:
default: "50Mi"
valid_chars: '^([0-9.]+)([EPTGMK]i?|[EPTGMK]?|e[0-9]+)$'
- variable: autoscaling
group: "Resources and Devices"
label: "(Advanced) Horizontal Pod Autoscaler"
-14
View File
@@ -5,25 +5,11 @@ image:
pullPolicy: IfNotPresent
tag: v1.22.2@sha256:8693c057298731f507128a395395172d60093be9b299f6bf9e5c35512a74d457
securityContext:
privileged: false
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
runAsNonRoot: true
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
supplementalGroups: []
fsGroupChangePolicy: "OnRootMismatch"
postgresqlImage:
repository: bitnami/postgresql
pullPolicy: IfNotPresent
tag: 13.4.0@sha256:abfb7efd31afc36a8b16aa077bb9dd165c4f635412affef37c7859605fda762c
service:
main:
ports: