dev: hot reloading improvements celery/html/tpl#12714
Conversation
|
This pull request contains minor security observations related to development dependencies, file permissions, and a development script in the production image, all of which are currently marked as non-blocking and pose minimal risk to the application's overall security posture.
Unnecessary Development Dependency in
|
| Vulnerability | Unnecessary Development Dependency |
|---|---|
| Description | The watchdog package is added to requirements without clear separation between development and production dependencies. This could unnecessarily increase the application's dependency attack surface if deployed to production without careful filtering. |
django-DefectDojo/requirements.txt
Lines 76 to 79 in fdb714f
Overly Permissive File Permissions in docker/entrypoint-celery-worker-dev.sh
| Vulnerability | Overly Permissive File Permissions |
|---|---|
| Description | The umask 0002 setting grants group write permissions to newly created files, which is less restrictive than typical production security practices. In a shared environment, this could allow unintended file modifications by group members. |
django-DefectDojo/docker/entrypoint-celery-worker-dev.sh
Lines 1 to 26 in fdb714f
Development Script in Production Image in Dockerfile.django-alpine
| Vulnerability | Development Script in Production Image |
|---|---|
| Description | The Dockerfile includes a development-specific entrypoint script that could expose unnecessary configuration details or debug features if used in a production environment. This increases the potential attack surface by including non-essential scripts with potentially less secure configurations. |
django-DefectDojo/Dockerfile.django-alpine
Lines 67 to 73 in fdb714f
All finding details can be found in the DryRun Security Dashboard.
I agree with this ☝️ thinking |
Maffooch
left a comment
There was a problem hiding this comment.
This is legit life changing
Improvements to hot-reloading/autoreload:
/app/dojo/settings/settings.py.htmland.tplchangesceleryworkerFor
celeryit could be done withoutwatchmedo, but that would require installting pypi packagecelery[dev]which would end up also in production. I'm not sure of the impact of that, so I avoided it.