redact passwords, keys, and secret tokens in admin UI

This commit is contained in:
Nick Sweeting 2024-05-06 11:06:42 -07:00
parent 8667ed29f1
commit 027c029316
No known key found for this signature in database
6 changed files with 183 additions and 4 deletions

View file

@ -64,6 +64,8 @@ INSTALLED_APPS = [
'core',
'api',
'admin_data_views',
'signal_webhooks',
'django_extensions',
]
@ -416,3 +418,20 @@ SIGNAL_WEBHOOKS = {
"api.models.APIToken": ...,
},
}
ADMIN_DATA_VIEWS = {
"NAME": "configuration",
"URLS": [
{
"route": "live/",
"view": "core.views.live_config_list_view",
"name": "live",
"items": {
"route": "<str:key>/",
"view": "core.views.live_config_value_view",
"name": "live_config_value",
},
},
],
}