docs: Update documentation for secrets related settings.

This is a follow-up to #22699 to document the new `get_mandatory_secret`
helper.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-08-25 15:26:41 -04:00
committed by Tim Abbott
parent c6130ce4b1
commit ae33873902
2 changed files with 10 additions and 6 deletions

View File

@@ -62,8 +62,8 @@ The Vagrant setup process runs this for you.
## Secrets
Please don't put any passwords, secret access keys, etc. inline in the
code. Instead, use the `get_secret` function in `zproject/config.py`
to read secrets from `/etc/zulip/secrets.conf`.
code. Instead, use the `get_secret` function or the `get_mandatory_secret`
function in `zproject/config.py` to read secrets from `/etc/zulip/secrets.conf`.
## Dangerous constructs