mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 11:08:10 +00:00
Added flag to disable X-Vault-Token header proxy if client passes the token (#8101)
* Added flag to disable X-Vault-Token header proxy if client passes the token * Reveresed the flag value to better match the name intent * Introduced UseAutoAuthTokenRaw for Cache to support triplicate value of true/false/force Co-authored-by: Clint <catsby@users.noreply.github.com>
This commit is contained in:
@@ -464,8 +464,10 @@ func (c *AgentCommand) Run(args []string) int {
|
||||
})
|
||||
}
|
||||
|
||||
var proxyVaultToken = !config.Cache.UseAutoAuthTokenEnforce
|
||||
|
||||
// Create the request handler
|
||||
cacheHandler := cache.Handler(ctx, cacheLogger, leaseCache, inmemSink)
|
||||
cacheHandler := cache.Handler(ctx, cacheLogger, leaseCache, inmemSink, proxyVaultToken)
|
||||
|
||||
var listeners []net.Listener
|
||||
for i, lnConfig := range config.Listeners {
|
||||
|
||||
Reference in New Issue
Block a user