Add a check on startup to ensure application is not using default key in live environments #3456
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
good first issue
New-contributor friendly
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: api
Related to the Django API
Description
In #3422, we altered the Django secret key to use a more obvious shim value. @dhruvkb suggested:
To be specific, we should check to ensure that the value is not
example_key
in anyENVIRONMENT
that's notlocal
ordevelopment
, and raise an appropriate error if it is.The text was updated successfully, but these errors were encountered: