mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-31 18:48:08 +00:00
Passthrough request headers (#4172)
* Add passthrough request headers for secret/auth mounts * Update comments * Fix SyncCache deletion of passthrough_request_headers * Remove debug line * Case-insensitive header comparison * Remove unnecessary allocation * Short-circuit filteredPassthroughHeaders if there's nothing to filter * Add whitelistedHeaders list * Update router logic after merge * Add whitelist test * Add lowercase x-vault-kv-client to whitelist * Add back const * Refactor whitelist logic
This commit is contained in:
committed by
GitHub
parent
a03a722fa9
commit
c54c9519c8
@@ -79,6 +79,8 @@ const (
|
||||
flagNameAuditNonHMACResponseKeys = "audit-non-hmac-response-keys"
|
||||
// flagListingVisibility is the flag to toggle whether to show the mount in the UI-specific listing endpoint
|
||||
flagNameListingVisibility = "listing-visibility"
|
||||
// flagNamePassthroughRequestHeaders is the flag name used to set passthrough request headers to the backend
|
||||
flagNamePassthroughRequestHeaders = "passthrough-request-headers"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user