(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: "0.1.0.968"
appVersion: 0.1.0.968
dependencies:
- name: common
repository: https://truecharts.org/
version: 7.0.14
repository: https://truecharts.org
version: 8.0.7
deprecated: false
description: A fork of Radarr to work with Books & AudioBooks
home: https://github.com/truecharts/apps/tree/master/charts/incubator/readarr
@@ -27,4 +27,4 @@ sources:
- https://github.com/Readarr/Readarr
- https://readarr.com
type: application
version: 7.0.3
version: 8.0.0
+2 -7
View File
@@ -86,8 +86,6 @@ questions:
default: "002"
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
@@ -192,7 +190,6 @@ questions:
max: 65535
default: 36038
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
@@ -542,8 +539,6 @@ questions:
schema:
type: string
# Include{ingressList}
- variable: securityContext
@@ -566,7 +561,7 @@ questions:
label: "Allow Privilege Escalation"
schema:
type: boolean
default: true
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
@@ -617,6 +612,7 @@ questions:
description: "OnRootMismatch"
- value: "Always"
description: "Always"
- variable: resources
group: "Resources and Devices"
label: ""
@@ -658,7 +654,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"
-10
View File
@@ -6,17 +6,7 @@ image:
tag: v0.1.0.968@sha256:83baf69d209958ef0a60f20906b568c6a265c36b7ae468a63a52fffeaa32e1b6
securityContext:
privileged: false
readOnlyRootFilesystem: false
allowPrivilegeEscalation: true
runAsNonRoot: true
podSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
supplementalGroups: []
fsGroupChangePolicy: "OnRootMismatch"
service:
main: