-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(helm): set cloudsql-proxy as sidecar container to allow initializer and dbmigration to run #10824
Conversation
DryRun Security SummaryThe provided code changes focus on improving the security and reliability of the DefectDojo application by adding a cloudsql-proxy initContainer, using Kubernetes Secrets to store sensitive information, and implementing security context settings to run the containers with reduced privileges, as well as including liveness and readiness probes, image pull secrets, and persistent volumes for media files. Expand for full summarySummary: The provided code changes are focused on improving the security and reliability of the DefectDojo application, particularly in the areas of database connection security, secrets management, and container security. The key changes include the addition of a Additionally, the changes ensure that the database migration check is performed only when necessary, and they include liveness and readiness probes to monitor the health of the application. The code also allows for the use of image pull secrets and persistent volumes for media files, further enhancing the overall security and reliability of the deployment. Overall, the changes appear to be a positive step from an application security perspective, as they address common security concerns and follow best practices for deploying applications in a Kubernetes environment. Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
…er and dbmigration to run Increment Helm chart version
f5336a7
to
9fff9b3
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this should help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree on all what @kiblik suggest
Co-authored-by: Cody Maffucci <46459665+Maffooch@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Is there any issue on it? I'm waiting for this fix to end up on a release 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Is there any problem with the MR? It looks like it's still Open |
PRs require 4 approvals from DefectDojo maintainers and this one is 2 short currently. |
We are narrowing the scope of acceptable enhancements to DefectDojo in preparation for v3. Learn more here:
https://github.com/DefectDojo/django-DefectDojo/blob/master/readme-docs/CONTRIBUTING.md
Description
This PR is to fix an issue when using
cloudsql-proxy
as per the following discussion: #7235By setting the
cloudsql-proxy
as a specialinitContainer
of typesidecar
(see relevant kubernetes doc), we allow thewait-for-db
initContainer to reach the database.Without this,
wait-for-db
is never allowed to reach the database sincecloudsql-proxy
is set as a regularcontainer
which are running only afterinitcontainer
are finished.