Skip to content

Conversation

@kosmos342
Copy link
Contributor

related to #253

@snitch snitch added the service label Oct 12, 2021
@snitch
Copy link

snitch commented Oct 12, 2021

✨ No lint errors found. ✨

@snitch
Copy link

snitch commented Oct 12, 2021

✨ No lint errors found. ✨

now = datetime.datetime.utcnow()
amzdate = now.strftime('%Y%m%dT%H%M%SZ')
datestamp = now.strftime('%Y%m%d')
payload_hash = hashlib.sha256(b'').hexdigest()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks a bit weird

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html

HashedPayload is the hexadecimal value of the SHA256 hash of the request payload.

Hex(SHA256Hash(<payload>)
If there is no payload in the request, you compute a hash of the empty string as follows:

Hex(SHA256Hash(""))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants