From 9a6294fbdb1f5549409057bf9be08aaa33269850 Mon Sep 17 00:00:00 2001 From: Marc Boudreau Date: Fri, 13 Oct 2023 16:02:19 -0400 Subject: [PATCH] copy disable_replication_status_endpoints context value from request context to active context (#23650) --- vault/request_handling.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vault/request_handling.go b/vault/request_handling.go index 8cc6680b94..4a95ccb48d 100644 --- a/vault/request_handling.go +++ b/vault/request_handling.go @@ -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()