mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
A method (REST) or route (HTTP API) with authorizationType AWS_IAM was recorded but never enforced, so an unsigned request reached the integration as if it were NONE. ExecuteApiSigV4Authorizer now verifies the caller's signature over the request as it arrived, for both the Authorization header and the presigned query string, and surfaces the verified caller on the proxy event: requestContext.identity on REST, requestContext.authorizer.iam on HTTP API. The signature must cover host, and expired or inactive credentials are rejected. Temporary credentials must also present the session token STS issued with them, compared against the value the session store records since #2912. Authentication only: execute-api:Invoke is not evaluated against IAM policies. Closes #2810 Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>