(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
+3 -3
View File
@@ -1,9 +1,9 @@
apiVersion: v2
appVersion: "1.3.0"
appVersion: 1.3.0
dependencies:
- name: common
repository: https://truecharts.org
version: 7.0.14
version: 8.0.7
description: A simple null file http and https server
home: https://github.com/truechartsapps/tree/master/charts/incubator/nullserv
icon: https://miro.medium.com/max/800/1*UL9RWkTUtJlyHW7kGm20hQ.png
@@ -17,4 +17,4 @@ maintainers:
name: nullserv
sources:
- https://github.com/bmrzycki/nullserv
version: 2.0.2
version: 3.0.0
+4 -9
View File
@@ -86,8 +86,6 @@ questions:
default: "002"
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
@@ -295,7 +293,6 @@ questions:
max: 65535
default: 36070
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
@@ -644,8 +641,6 @@ questions:
schema:
type: string
# Include{ingressList}
- variable: securityContext
@@ -663,12 +658,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:
@@ -698,7 +693,7 @@ questions:
description: "The group that should own ALL storage."
schema:
type: int
default: 0
default: 568
- variable: supplementalGroups
label: "supplemental Groups"
schema:
@@ -719,6 +714,7 @@ questions:
description: "OnRootMismatch"
- value: "Always"
description: "Always"
- variable: resources
group: "Resources and Devices"
label: ""
@@ -760,7 +756,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"
-7
View File
@@ -18,17 +18,11 @@ image:
pullPolicy: IfNotPresent
securityContext:
privileged: false
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
runAsNonRoot: false
podSecurityContext:
runAsUser: 0
runAsGroup: 0
fsGroup: 0
supplementalGroups: []
fsGroupChangePolicy: "OnRootMismatch"
# -- environment variables. See more environment variables in the [nullserv documentation](https://github.com/bmrzycki/nullserv/blob/master/README.md).
# @default -- See below
@@ -49,7 +43,6 @@ service:
enabled: true
port: 443
# -- Configures the probes for the main Pod.
# @default -- See values.yaml
probes: