fix(helm): Drop initialDelaySeconds if empty#13398
Merged
mtesauro merged 2 commits intoDefectDojo:bugfixfrom Oct 14, 2025
Merged
fix(helm): Drop initialDelaySeconds if empty#13398mtesauro merged 2 commits intoDefectDojo:bugfixfrom
mtesauro merged 2 commits intoDefectDojo:bugfixfrom
Conversation
|
This pull request conditionally omits initialDelaySeconds for liveness and readiness probes in helm/defectdojo/templates/django-deployment.yaml, which can let Kubernetes default them to 0 and cause immediate probe failures that repeatedly restart pods or keep them unready (DoS risk) if values.yaml leaves those fields unset or set to 0. These changes are flagged as risky but non-blocking.
DoS due to premature liveness probe in
|
| Vulnerability | DoS due to premature liveness probe |
|---|---|
| Description | The Helm chart modification conditionally renders initialDelaySeconds for the liveness probe. If initialDelaySeconds is not explicitly set or is set to 0 in values.yaml, the field will be omitted from the generated Kubernetes manifest. Kubernetes defaults an omitted initialDelaySeconds to 0. For a complex application like Django, a 0-second initial delay for a liveness probe is highly likely to result in the probe failing immediately upon container startup, causing Kubernetes to repeatedly restart the pod and leading to a Denial of Service. |
django-DefectDojo/helm/defectdojo/templates/django-deployment.yaml
Lines 228 to 231 in 43d93a4
DoS due to premature readiness probe in helm/defectdojo/templates/django-deployment.yaml
| Vulnerability | DoS due to premature readiness probe |
|---|---|
| Description | The change conditionally renders the initialDelaySeconds field for the readiness probe. If .Values.django.uwsgi.readinessProbe.initialDelaySeconds is 0 or not explicitly set in the Helm values.yaml, the initialDelaySeconds field will be omitted from the Kubernetes probe definition. Kubernetes defaults an omitted initialDelaySeconds to 0. For a complex application like DefectDojo (a Django application), a 0-second initial delay is insufficient for the application to fully start and become ready to serve traffic. This will cause the readiness probe to fail immediately and continuously, preventing the pod from ever being marked as 'Ready' and thus not receiving traffic, leading to service unavailability. |
django-DefectDojo/helm/defectdojo/templates/django-deployment.yaml
Lines 308 to 311 in 43d93a4
All finding details can be found in the DryRun Security Dashboard.
Maffooch
approved these changes
Oct 10, 2025
valentijnscholten
approved these changes
Oct 11, 2025
rossops
approved these changes
Oct 14, 2025
Maffooch
pushed a commit
to valentijnscholten/django-DefectDojo
that referenced
this pull request
Feb 16, 2026
Co-authored-by: Ross E Esposito <ross@defectdojo.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If
initialDelaySeconds, the default k8s MutationWebhooks drops the whole field, which isa reasonable decision.However, charts generated via Argo are trying to enforce the existence of this field, resulting in a never-ending "OutOfSync" status.
This PR drops the whole field if it is "empty" (equal to zero).