Skip to content

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented May 19, 2023

The Django secret key is no longer hardcoded to an example value, instead using a randomised value if the recommend env var is not set. The previous implementation could be insecure if users didn't set an explicit value, and also encouraged secrets being committed to source rather than the use of env vars.

The name of the env var has also been renamed from SECRET_KEY to DJANGO_SECRET_KEY.

GUS-W-13323516.

The Django secret key is no longer hardcoded to an example value, instead
using a randomised value if the recommend env var is not set. The previous
implementation could be insecure if users didn't set an explicit value, and
also encouraged secrets being committed to source rather than the use of
env vars.

The name of the env var has also been renamed from `SECRET_KEY` to
`DJANGO_SECRET_KEY`.
@edmorley edmorley self-assigned this May 19, 2023
@edmorley edmorley enabled auto-merge (squash) May 19, 2023 16:18
@edmorley edmorley merged commit ed1f1b8 into main May 19, 2023
@edmorley edmorley deleted the edmorley/django-secret-key branch May 19, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant