From 3d3c80bdfe353291dc2ffb914db835697b516aa8 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Wed, 3 Nov 2021 20:34:19 +0200 Subject: [PATCH] fix(flaresolver): run app as root (#1273) --- charts/stable/flaresolverr/questions.yaml | 6 +++--- charts/stable/flaresolverr/values.yaml | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/stable/flaresolverr/questions.yaml b/charts/stable/flaresolverr/questions.yaml index 77e416025dd..79c067f6c3a 100644 --- a/charts/stable/flaresolverr/questions.yaml +++ b/charts/stable/flaresolverr/questions.yaml @@ -365,7 +365,7 @@ questions: label: "runAsNonRoot" schema: type: boolean - default: true + default: false - variable: podSecurityContext group: "Security and Permissions" @@ -378,13 +378,13 @@ questions: description: "The UserID of the user running the application" schema: type: int - default: 568 + default: 0 - variable: runAsGroup label: "runAsGroup" description: The groupID this App of the user running the application" schema: type: int - default: 568 + default: 0 - variable: fsGroup label: "fsGroup" description: "The group that should own ALL storage." diff --git a/charts/stable/flaresolverr/values.yaml b/charts/stable/flaresolverr/values.yaml index 6bba0ebea15..8a1651073f1 100644 --- a/charts/stable/flaresolverr/values.yaml +++ b/charts/stable/flaresolverr/values.yaml @@ -15,7 +15,11 @@ image: securityContext: readOnlyRootFilesystem: false + runAsNonRoot: false +podSecurityContext: + runAsUser: 0 + runAsGroup: 0 # -- environment variables. See more environment variables in the [flaresolverr documentation](https://github.com/FlareSolverr/FlareSolverr#environment-variables). # @default -- See below env: