jmaver-plume / kafkajs-msk-iam-authentication-mechanism

MIT License
21 stars 26 forks source link

What is the hashed payload for ? #9

Closed TabraizChel closed 2 years ago

TabraizChel commented 2 years ago

In AuthenticationPayloadCreator there's a constant called HASHED_PAYLOAD. What is this used for ?

jmaver-plume commented 2 years ago

It's the value of hex encoded, SHA256 hashed empty string. For more information you can look at https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html.