mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
copy disable_replication_status_endpoints context value from request context to active context (#23650)
This commit is contained in:
parent
4e22153987
commit
9a6294fbdb
@ -571,6 +571,10 @@ func (c *Core) switchedLockHandleRequest(httpCtx context.Context, req *logical.R
|
||||
if ok {
|
||||
ctx = context.WithValue(ctx, logical.CtxKeyRequestRole{}, requestRole)
|
||||
}
|
||||
disable_repl_status, ok := httpCtx.Value(logical.CtxKeyDisableReplicationStatusEndpoints{}).(string)
|
||||
if ok {
|
||||
ctx = context.WithValue(ctx, logical.CtxKeyDisableReplicationStatusEndpoints{}, disable_repl_status)
|
||||
}
|
||||
resp, err = c.handleCancelableRequest(ctx, req)
|
||||
req.SetTokenEntry(nil)
|
||||
cancel()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user