Skip to content

Commit

Permalink
Add content-sha256 as a default allowed STS header (#10009)
Browse files Browse the repository at this point in the history
Also, alphabetize those headers... just because.
  • Loading branch information
Lauren Voswinkel committed Sep 22, 2020
1 parent 48e328c commit 49b33d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions builtin/credential/aws/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ import (
const amzHeaderPrefix = "X-Amz-"

var defaultAllowedSTSRequestHeaders = []string{
"X-Amz-Date",
"X-Amz-Algorithm",
"X-Amz-Content-Sha256",
"X-Amz-Credential",
"X-Amz-Date",
"X-Amz-Security-Token",
"X-Amz-Algorithm",
"X-Amz-Signature",
"X-Amz-SignedHeaders"}

Expand Down

0 comments on commit 49b33d9

Please sign in to comment.