Title:  I think AWS and its signature system is making things more complicated than it should be, like this is a normal signing in process to API:<p>1. you request client credentials, which is normal.<p>2. construct request URL, normal.<p>3. add headers, eh, normal.<p>4. signature... fuck.<p>First you need to convert the URL you have from step 2, mash it with headers from step 3, add header keys to signed headers, then sum256 hash the payload and hex encode it.<p>Then you create a sign, add algorithm, request date time that is formatted with ISO8601 but all special characters stripped apart, add credential scopes, hash the canonical request you created at the first step.<p>Then, you calculate this abomination:
HMAC(HMAC(HMAC(HMAC(&quot;AWS4&quot; + kSecret,&quot;20150830&quot;),&quot;us-east-1&quot;),&quot;iam&quot;),&quot;aws4_request&quot;)<p>after that you calculate this:
signature = HexEncode(HMAC(derived signing key, string to sign))<p>after that you create an authorization header and add signature to it:
Authorization: AWS4-HMAC-SHA256 Credential=AKIAIHV6HIXXXXXXX&#x2F;20201022&#x2F;us-east-1&#x2F;execute-api&#x2F;aws4_request, SignedHeaders=host;user-agent;x-amz-access-token;x-amz-date, Signature=5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924aEXAMPLE<p>...I mean what the fuck? I can understand why people choose Azure over AWS for the sake of freaking simplicity just by looking at this sign and request process. It feels overly-complicated. Does anyone feels the same while working with this abomination?
Upvote: