config: Add a flag to control the /metrics and /status endpoints

It can be a security concern in some environments to expose system
capabilities even though they don't expose any PII. Add some
flags (defaulted `true` to maintain existing behaviour) to control
whether the /metrics and /status (and anything in the StatusRouter)
are exposed.

Signed-off-by: Stéphane Maniaci <stephane.maniaci@beta.gouv.fr>
This commit is contained in:
Stéphane Maniaci
2023-01-23 15:23:20 +01:00
committed by Philip Molares
parent e5a8a3b041
commit d10ead4c6c
5 changed files with 48 additions and 21 deletions

View File

@@ -2,6 +2,9 @@
## UNRELEASED
### Enhancements
- Allow disabling the /metrics and /status endpoints
### Bugfixes
- Fix note titles with special characters producing invalid file names in user export zip file