mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
VAULT-19863: Per-listener redaction settings (#23534)
* add redaction config settings to listener * sys seal redaction + test modification for default handler properties * build date should be redacted by 'redact_version' too * sys-health redaction + test fiddling * sys-leader redaction * added changelog * Lots of places need ListenerConfig * Renamed options to something more specific for now * tests for listener config options * changelog updated * updates based on PR comments * updates based on PR comments - removed unrequired test case field * fixes for docker tests and potentially server dev mode related flags
This commit is contained in:
@@ -165,13 +165,18 @@ func handler(props *vault.HandlerProperties) http.Handler {
|
||||
mux.Handle("/v1/sys/host-info", handleLogicalNoForward(core))
|
||||
|
||||
mux.Handle("/v1/sys/init", handleSysInit(core))
|
||||
mux.Handle("/v1/sys/seal-status", handleSysSealStatus(core))
|
||||
mux.Handle("/v1/sys/seal-status", handleSysSealStatus(core,
|
||||
WithRedactClusterName(props.ListenerConfig.RedactClusterName),
|
||||
WithRedactVersion(props.ListenerConfig.RedactVersion)))
|
||||
mux.Handle("/v1/sys/seal-backend-status", handleSysSealBackendStatus(core))
|
||||
mux.Handle("/v1/sys/seal", handleSysSeal(core))
|
||||
mux.Handle("/v1/sys/step-down", handleRequestForwarding(core, handleSysStepDown(core)))
|
||||
mux.Handle("/v1/sys/unseal", handleSysUnseal(core))
|
||||
mux.Handle("/v1/sys/leader", handleSysLeader(core))
|
||||
mux.Handle("/v1/sys/health", handleSysHealth(core))
|
||||
mux.Handle("/v1/sys/leader", handleSysLeader(core,
|
||||
WithRedactAddresses(props.ListenerConfig.RedactAddresses)))
|
||||
mux.Handle("/v1/sys/health", handleSysHealth(core,
|
||||
WithRedactClusterName(props.ListenerConfig.RedactClusterName),
|
||||
WithRedactVersion(props.ListenerConfig.RedactVersion)))
|
||||
mux.Handle("/v1/sys/monitor", handleLogicalNoForward(core))
|
||||
mux.Handle("/v1/sys/generate-root/attempt", handleRequestForwarding(core,
|
||||
handleAuditNonLogical(core, handleSysGenerateRootAttempt(core, vault.GenerateStandardRootTokenStrategy))))
|
||||
|
||||
Reference in New Issue
Block a user