Fix lease lookup returning properties at top level (#2902)

This commit is contained in:
Jeff Mitchell 2017-06-21 16:12:09 +01:00 committed by GitHub
parent c414a525d2
commit 4936a83310
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,8 @@ IMPROVEMENTS:
BUG FIXES:
* api/health: Consider the response code from standby nodes [GH-2850]
* api/health: Don't treat standby `429` codes as an error [GH-2850]
* api/leases: Fix lease lookup returning lease properties at the top level
* core: Relocated `sys/leases/renew` returns same payload as original
`sys/leases` endpoint [GH-2891]

View File

@ -50,8 +50,7 @@ func Handler(core *vault.Core) http.Handler {
mux.Handle("/v1/sys/unseal", handleSysUnseal(core))
mux.Handle("/v1/sys/renew", handleRequestForwarding(core, handleLogical(core, false, nil)))
mux.Handle("/v1/sys/renew/", handleRequestForwarding(core, handleLogical(core, false, nil)))
mux.Handle("/v1/sys/leases/renew", handleRequestForwarding(core, handleLogical(core, false, nil)))
mux.Handle("/v1/sys/leases/renew/", handleRequestForwarding(core, handleLogical(core, false, nil)))
mux.Handle("/v1/sys/leases/", handleRequestForwarding(core, handleLogical(core, false, nil)))
mux.Handle("/v1/sys/leader", handleSysLeader(core))
mux.Handle("/v1/sys/health", handleSysHealth(core))
mux.Handle("/v1/sys/generate-root/attempt", handleRequestForwarding(core, handleSysGenerateRootAttempt(core)))