(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.4.5"
appVersion: 1.4.5
dependencies:
- name: common
repository: https://truecharts.org
version: 7.0.14
version: 8.0.7
description: Create live TV channel streams from media on your Plex servers.
home: https://github.com/truechartsapps/tree/master/charts/incubator/dizquetv
icon: https://github.com/vexorian/dizquetv/raw/main/resources/dizquetv.png?raw=true
@@ -19,4 +19,4 @@ name: dizquetv
sources:
- https://github.com/vexorian/dizquetv
- https://hub.docker.com/r/vexorian/dizquetv
version: 2.0.3
version: 3.0.0
+48 -9
View File
@@ -98,8 +98,6 @@ questions:
default: "002"
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
@@ -204,7 +202,6 @@ questions:
max: 65535
default: 36058
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
@@ -553,8 +550,6 @@ questions:
schema:
type: string
# Include{ingressList}
- variable: securityContext
@@ -572,17 +567,62 @@ 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:
type: boolean
default: false
default: true
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
type: dict
attrs:
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 568
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
- variable: supplementalGroups
label: "supplemental Groups"
schema:
type: list
default: []
items:
- variable: supplementalGroupsEntry
label: "supplemental Group"
schema:
type: int
- variable: fsGroupChangePolicy
label: "When should we take ownership?"
schema:
type: string
default: "OnRootMismatch"
enum:
- value: "OnRootMismatch"
description: "OnRootMismatch"
- value: "Always"
description: "Always"
- variable: resources
group: "Resources and Devices"
@@ -625,7 +665,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"
-1
View File
@@ -31,7 +31,6 @@ service:
main:
port: 8000
# -- Configure persistence settings for the chart under this key.
# @default -- See values.yaml
persistence: