fix(unifi): run as non-root (#1831)

* fix(unifi): run as non-root

* remove as its default
This commit is contained in:
Stavros Kois
2022-02-02 21:18:53 +01:00
committed by GitHub
parent 24198abfd4
commit f5d74a2d5e
3 changed files with 7 additions and 20 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ sources:
- https://github.com/jacobalberty/unifi-docker - https://github.com/jacobalberty/unifi-docker
- https://unifi-network.ui.com - https://unifi-network.ui.com
type: application type: application
version: 9.0.41 version: 9.0.42
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- Networking - Networking
+3 -10
View File
@@ -82,13 +82,6 @@ questions:
type: dict type: dict
attrs: attrs:
# Include{fixedEnv} # Include{fixedEnv}
- variable: PUID
label: "PUID"
description: "Sets the PUID env var for LinuxServer.io (compatible) containers"
schema:
type: int
default: 568
# Include{containerConfig} # Include{containerConfig}
@@ -556,7 +549,7 @@ questions:
label: "runAsNonRoot" label: "runAsNonRoot"
schema: schema:
type: boolean type: boolean
default: false default: true
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
- variable: podSecurityContext - variable: podSecurityContext
@@ -571,13 +564,13 @@ questions:
description: "The UserID of the user running the application" description: "The UserID of the user running the application"
schema: schema:
type: int type: int
default: 0 default: 999
- variable: runAsGroup - variable: runAsGroup
label: "runAsGroup" label: "runAsGroup"
description: The groupID this App of the user running the application" description: The groupID this App of the user running the application"
schema: schema:
type: int type: int
default: 0 default: 999
- variable: fsGroup - variable: fsGroup
label: "fsGroup" label: "fsGroup"
description: "The group that should own ALL storage." description: "The group that should own ALL storage."
+3 -9
View File
@@ -48,18 +48,12 @@ service:
securityContext: securityContext:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
runAsNonRoot: false
podSecurityContext: podSecurityContext:
runAsGroup: 0 runAsGroup: 999
runAsUser: 0 runAsUser: 999
env: env: {}
# TZ:
PUID: 568
# Permissions Settings
UNIFI_GID: "{{ .Values.env.PUID }}"
UNIFI_UID: "{{ .Values.podSecurityContext.fsGroup }}"
persistence: persistence:
config: config: