mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
@@ -51,6 +51,8 @@ const (
|
||||
EnvRateLimit = "VAULT_RATE_LIMIT"
|
||||
EnvHTTPProxy = "VAULT_HTTP_PROXY"
|
||||
HeaderIndex = "X-Vault-Index"
|
||||
HeaderForward = "X-Vault-Forward"
|
||||
HeaderInconsistent = "X-Vault-Inconsistent"
|
||||
)
|
||||
|
||||
// Deprecated values
|
||||
@@ -1395,7 +1397,7 @@ func ParseReplicationState(raw string, hmacKey []byte) (*logical.WALState, error
|
||||
// conjunction with RequireState.
|
||||
func ForwardInconsistent() RequestCallback {
|
||||
return func(req *Request) {
|
||||
req.Headers.Set("X-Vault-Inconsistent", "forward-active-node")
|
||||
req.Headers.Set(HeaderInconsistent, "forward-active-node")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1404,7 +1406,7 @@ func ForwardInconsistent() RequestCallback {
|
||||
// This feature must be enabled in Vault's configuration.
|
||||
func ForwardAlways() RequestCallback {
|
||||
return func(req *Request) {
|
||||
req.Headers.Set("X-Vault-Forward", "active-node")
|
||||
req.Headers.Set(HeaderForward, "active-node")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user