fix(helm): merge extraAnnotations with init job annotations#13677
fix(helm): merge extraAnnotations with init job annotations#13677Maffooch merged 5 commits intoDefectDojo:devfrom
Conversation
a4cb6bb to
c51686e
Compare
|
Can you fix failed GHA, please? Update of schema, docs and release notes are needed. |
|
@qlimenoque And can you base the PR against the |
|
c51686e to
61bdce7
Compare
3380ca2 to
ee5965a
Compare
1c8f1d5 to
ecede09
Compare
|
@qlimenoque, keys in django-DefectDojo/.github/workflows/test-helm-chart.yml Lines 143 to 146 in b9836f2 |
|
@kiblik thanks for pointing out the instruction! It might be helpful to include this instruction in the README.md inside the Helm chart directory |
e24eec0 to
8fe8674
Compare
|
This pull request introduces a generic podAnnotations field in helm/defectdojo/values.schema.json that allows arbitrary annotations to be set on the initializer pod, which could be abused (for example to disable Istio sidecar injection or influence Pod Security Admission) to bypass security controls even though the job is short‑lived. While marked non‑blocking, this change raises a policy‑bypass risk if untrusted users can control Helm values.
Potential for Policy Bypass via Unrestricted Pod Annotations in
|
| Vulnerability | Potential for Policy Bypass via Unrestricted Pod Annotations |
|---|---|
| Description | The introduction of the podAnnotations field in values.schema.json as a generic object allows users to set arbitrary annotations on the initializer pod. This creates a potential for policy bypass if an attacker can influence the Helm values. Specific annotations (e.g., sidecar.istio.io/inject: "false") can be used to disable security features like service mesh sidecar injection, leading to unauthorized network access or circumvention of security policies. Other annotations could potentially influence Pod Security Admission or other admission controllers, leading to privilege escalation or other security compromises. While the initializer job is short-lived, the actions it performs can have significant and lasting security implications. |
django-DefectDojo/helm/defectdojo/values.schema.json
Lines 967 to 969 in 8fe8674
All finding details can be found in the DryRun Security Dashboard.
…jo#13677) * fix(helm): merge extraAnnotations with init job annotations * fix: artifacthub annotation * docs: 2.53 upgrade instructions * docs(helm): update readme * fix: values schema
Description
Merges global
extraAnnotationswith initializer job'spodAnnotationsto ensure consistent annotation handling across all DefectDojo resources.Changes
initializer.annotationstoinitializer.podAnnotationsfor clarityextraAnnotationswithpodAnnotationsThis change is not backward compatible:
initializer.annotationshas been renamed toinitializer.podAnnotationsinitializer.jobAnnotationsaffects the Job spec metadatainitializer.podAnnotationsaffects the Pod template metadata within the JobUsers must update their
values.yamlto useinitializer.podAnnotationsinstead ofinitializer.annotations.Migration
If you were using:
Update to: