aws-sigv4
aws-sigv4 copied to clipboard
FR: Assumed roles by updating the X-Amz-Date header
At the moment, if we have a request with an old X-Amz-Date header, it will receive an expiry error from AWS when using the AssumeRole credential type.
Could you please update the X-Amz-Date header automatically when the AssumeRole role is used?
I'm not able to reproduce this. The original X-Amz-Date header is always removed during signing, here:
https://github.com/anvilsecure/aws-sigv4/blob/afcd81f3ab47e5d71535d97a05af0a91fa339694/src/main/java/burp/BurpExtender.java#L1414-L1417
The AWS SDK then adds a new date header itself. Can you confirm in the Logger tab that the request actually has the original X-Amz-Date header?