-
- Downloads
Add MSC3861 config options admin_token_path and client_secret_path (#18004)
Another PR on my quest to a `*_path` variant for every secret. Adds two config options `admin_token_path` and `client_secret_path` to the experimental config under `experimental_features.msc3861`. Also includes tests. I tried to be a good citizen here by following `attrs` conventions and not rewriting the corresponding non-path variants in the class, but instead adding methods to retrieve the value. Reading secrets from files has the security advantage of separating the secrets from the config. It also simplifies secrets management in Kubernetes. Also useful to NixOS users.
Showing
- changelog.d/18004.feature 1 addition, 0 deletionschangelog.d/18004.feature
- synapse/api/auth/msc3861_delegated.py 8 additions, 6 deletionssynapse/api/auth/msc3861_delegated.py
- synapse/config/experimental.py 96 additions, 7 deletionssynapse/config/experimental.py
- tests/config/test_load.py 10 additions, 0 deletionstests/config/test_load.py
- tests/handlers/test_oauth_delegation.py 1 addition, 1 deletiontests/handlers/test_oauth_delegation.py
changelog.d/18004.feature
0 → 100644
Please register or sign in to comment