Skip to content

Commit 87cf0af

Browse files
NO-JIRA fix securityContext sysctl: run the initSysctl initcontainer as root user from values
Co-authored-by: HAUTIN Mikaël <mikael.hautin@forvia.com>
1 parent e7176ff commit 87cf0af

File tree

6 files changed

+11
-1
lines changed

6 files changed

+11
-1
lines changed

charts/sonarqube-dce/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
44
## [10.4.0]
55
* Update Chart's version to 10.4.0
66
* Improve the description of deprecated `ApplicationNodes.jvmOpts` and `ApplicationNodes.jvmCeOpts` values
7+
* Run the initSysctl init-container as root to prevent 'permission denied' issues
78

89
## [10.3.0]
910
* Upgrade SonarQube to 10.3.0
@@ -239,7 +240,7 @@ All changes to this chart will be documented in this file.
239240
* added link to community support forum
240241

241242
## [0.1.6]
242-
* fixed wrong scc user reference if name was explicitly set
243+
* fixed wrong scc user reference if name was explicitly set
243244

244245
## [0.1.5]
245246
* fixed serviceaccount logic

charts/sonarqube-dce/Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ annotations:
3131
description: "Update Chart's version to 10.4.0"
3232
- kind: fixed
3333
description: "Improve the description of deprecated 'ApplicationNodes.jvmOpts' and 'ApplicationNodes.jvmCeOpts' values"
34+
- kind: fixed
35+
description: "Run the initSysctl init-container as root to prevent 'permission denied' issues"
3436
artifacthub.io/links: |
3537
- name: support
3638
url: https://community.sonarsource.com/

charts/sonarqube-dce/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ initSysctl:
461461
securityContext:
462462
# Compatible with podSecurity standard privileged
463463
privileged: true
464+
# if run without root permissions, error "sysctl: permission denied on key xxx, ignoring"
465+
runAsUser: 0
464466
# resources: {}
465467

466468
initFs:

charts/sonarqube/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All changes to this chart will be documented in this file.
44
## [10.4.0]
55
* Update Chart's version to 10.4.0
66
* Improve the description of deprecated `jvmOpts` and `jvmCeOpts` values
7+
* Run the initSysctl init-container as root to prevent 'permission denied' issues
78

89
## [10.3.0]
910
* Upgrade SonarQube to 10.3.0

charts/sonarqube/Chart.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ annotations:
3636
description: "Update Chart's version to 10.4.0"
3737
- kind: fixed
3838
description: "Improve the description of deprecated 'jvmOpts' and 'jvmCeOpts' values"
39+
- kind: fixed
40+
description: "Run the initSysctl init-container as root to prevent 'permission denied' issues"
3941
artifacthub.io/containsSecurityUpdates: "false"
4042
artifacthub.io/images: |
4143
- name: sonarqube

charts/sonarqube/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ initSysctl:
243243
securityContext:
244244
# Compatible with podSecurity standard privileged
245245
privileged: true
246+
# if run without root permissions, error "sysctl: permission denied on key xxx, ignoring"
247+
runAsUser: 0
246248
# resources: {}
247249

248250
# This should not be required anymore, used to chown/chmod folder created by faulty CSI driver that are not applying properly POSIX fsgroup.

0 commit comments

Comments
 (0)