Allow to add own data to SignedHeaders
Opened this issue · 5 comments
avoidik commented
Could you please provide any way how to append something to SignedHeaders
?
DavidMuller commented
avoidik commented
Hi @DavidMuller the use case is Vault and its additional header X-Vault-AWS-IAM-Server-ID
https://github.com/hashicorp/vault/blob/master/builtin/credential/aws/path_login.go#L1412
avoidik commented
PR was added to cover this use-case
avoidik commented
another use-case
This use-case covers optional headers to sign mentioned at
https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html
# Note: The request can include any headers; canonical_headers and
# signed_headers lists those that you want to be included in the
# hash of the request. "Host" and "x-amz-date" are always required.
avoidik commented