mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Don't pass te to backends
This commit is contained in:
parent
7a3ef20c5a
commit
6ec09a09f4
@ -485,6 +485,9 @@ func (r *Router) routeCommon(ctx context.Context, req *logical.Request, existenc
|
||||
}
|
||||
}
|
||||
|
||||
reqTokenEntry := req.TokenEntry()
|
||||
req.SetTokenEntry(nil)
|
||||
|
||||
// Reset the request before returning
|
||||
defer func() {
|
||||
req.Path = originalPath
|
||||
@ -506,6 +509,8 @@ func (r *Router) routeCommon(ctx context.Context, req *logical.Request, existenc
|
||||
req.MountAccessor = re.mountEntry.Accessor
|
||||
|
||||
req.EntityID = originalEntityID
|
||||
|
||||
req.SetTokenEntry(reqTokenEntry)
|
||||
}()
|
||||
|
||||
// Invoke the backend
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user