[print_settings] Hide secret field values by default
See original GitHub issueUser story: I am a well-intentioned sysadmin. I want to print and share Django settings with my colleague, so that I can investigate a problem without revealing secret values.
Proposed solution:
-
Define the following “sensitive” patterns:
SECRET
,PASSWORD
-
All settings matching these patterns show a value of
**********
-
If the user passes the parameter
--show-secrets
, then show the actual values.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Keep default values of conditionally hidden fields - Jotform
I want the fields that will be hidden due to the conditional logic from the multiple-choice answer to populate with a default "N/A"...
Read more >Printing and Managing Print Settings | Revit 2021
How to print and control print settings. ... Leave this set to default tray. ... In the Hidden Line Views area, you can...
Read more >Hidden Field Codes - Atlas Systems
The field codes hide the Word Fields that allow the system to change the label based on the information in the record. For...
Read more >Solved: Hidden fields changes default field to blank
Solved: Hi, I've got a power apps form that I want to hide 2 fields when the form loads. It's based on a...
Read more >Settings management - pydantic
Variables loaded from a dotenv ( .env ) file. Variables loaded from the secrets directory. The default field values for the Settings model....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI, Django already has a
get_safe_settings
function which applies the filtering.Very good idea !
We should also allow users to override the sensitive patterns in
settings.py
so people can add their own as needed.Could you make a PR for this ? Happy to merge it !