fix(unifi): run as non-root (#1831)
* fix(unifi): run as non-root * remove as its default
This commit is contained in:
@@ -21,7 +21,7 @@ sources:
|
||||
- https://github.com/jacobalberty/unifi-docker
|
||||
- https://unifi-network.ui.com
|
||||
type: application
|
||||
version: 9.0.41
|
||||
version: 9.0.42
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- Networking
|
||||
|
||||
@@ -82,13 +82,6 @@ questions:
|
||||
type: dict
|
||||
attrs:
|
||||
# Include{fixedEnv}
|
||||
- variable: PUID
|
||||
label: "PUID"
|
||||
description: "Sets the PUID env var for LinuxServer.io (compatible) containers"
|
||||
schema:
|
||||
type: int
|
||||
default: 568
|
||||
|
||||
|
||||
# Include{containerConfig}
|
||||
|
||||
@@ -556,7 +549,7 @@ questions:
|
||||
label: "runAsNonRoot"
|
||||
schema:
|
||||
type: boolean
|
||||
default: false
|
||||
default: true
|
||||
# Include{securityContextAdvanced}
|
||||
|
||||
- variable: podSecurityContext
|
||||
@@ -571,13 +564,13 @@ questions:
|
||||
description: "The UserID of the user running the application"
|
||||
schema:
|
||||
type: int
|
||||
default: 0
|
||||
default: 999
|
||||
- variable: runAsGroup
|
||||
label: "runAsGroup"
|
||||
description: The groupID this App of the user running the application"
|
||||
schema:
|
||||
type: int
|
||||
default: 0
|
||||
default: 999
|
||||
- variable: fsGroup
|
||||
label: "fsGroup"
|
||||
description: "The group that should own ALL storage."
|
||||
|
||||
@@ -48,18 +48,12 @@ service:
|
||||
|
||||
securityContext:
|
||||
readOnlyRootFilesystem: false
|
||||
runAsNonRoot: false
|
||||
|
||||
podSecurityContext:
|
||||
runAsGroup: 0
|
||||
runAsUser: 0
|
||||
runAsGroup: 999
|
||||
runAsUser: 999
|
||||
|
||||
env:
|
||||
# TZ:
|
||||
PUID: 568
|
||||
# Permissions Settings
|
||||
UNIFI_GID: "{{ .Values.env.PUID }}"
|
||||
UNIFI_UID: "{{ .Values.podSecurityContext.fsGroup }}"
|
||||
env: {}
|
||||
|
||||
persistence:
|
||||
config:
|
||||
|
||||
Reference in New Issue
Block a user