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 22:18:53 +02:00
committed by GitHub
parent 24198abfd4
commit f5d74a2d5e
3 changed files with 7 additions and 20 deletions

View File

@@ -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

View File

@@ -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."

View File

@@ -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: