mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* fix(appsync): answer a bad AWS_IAM signature with AppSync's error and wording AppSync answers 403 IncompleteSignatureException when the Authorization header misses a part or the date, and 400 BadRequestException when the signing time, the signed headers, the scope or the signature are wrong. The checks run in AppSync's order, and the signature is checked before the session token. * fix(appsync): answer an AWS_IAM policy deny with Permission denied AppSync answers 401 UnauthorizedException "Permission denied" when the caller's policies do not allow appsync:GraphQL. * fix(appsync): check a missing signed header and the credential parts in AppSync's order AppSync checks that every signed header is in the request after the signing time, then that host is signed, then the credential parts. It names the header as the request signed it. * test(appsync): expect BadRequestException for a wrong secret on the GraphQL endpoint * test(appsync): pin the clock to check the whole signing time message * chore(appsync): read the Authorization parts with the shared parser