mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
Aws auth fixes (#9825)
* Bring over PSIRT-37 changes from ENT * Add additional allowed headers * Already had this one * Change to string slice comma separated parsing * Add allowed_sts_header_values to read output * Only validate AWS related request headers * one per line * Import ordering * Update test * Add X-Amz-Credential * Reorder imports
This commit is contained in:
@@ -17,6 +17,15 @@ import (
|
||||
cache "github.com/patrickmn/go-cache"
|
||||
)
|
||||
|
||||
const amzHeaderPrefix = "X-Amz-"
|
||||
var defaultAllowedSTSRequestHeaders = []string{
|
||||
"X-Amz-Date",
|
||||
"X-Amz-Credential",
|
||||
"X-Amz-Security-Token",
|
||||
"X-Amz-Algorithm",
|
||||
"X-Amz-Signature",
|
||||
"X-Amz-SignedHeaders"}
|
||||
|
||||
func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error) {
|
||||
b, err := Backend(conf)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user