mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
* fix(apigateway): verify AWS_IAM signatures against the custom-domain path The custom domain filter rewrites a request onto /execute-api/... before dispatch but, unlike the execute-api host filter, never recorded the path the caller actually signed. SigV4 verification then rebuilt the canonical request from the rewritten path, so every AWS_IAM method invoked through a custom domain was rejected with InvalidSignatureException. Record the original raw path on ApiGatewayExecuteRouteContext, matching ApiGatewayExecuteApiHostFilter, and give the filter an explicit ApplicationScoped scope so the request-scoped context injects through a client proxy. Covers both REST and HTTP API custom domains, since v2 API mappings are stored as base path mappings and routed by the same filter. * test(apigateway): cover AWS_IAM through an HTTP API custom domain A v2 API mapping is stored as a base path mapping and routed by the same custom domain filter as REST APIs, so the fix applies to HTTP APIs too. Prove it rather than assert it: a signed request through the domain reaches the integration, and unsigned, rewritten-path and other-path signatures are rejected with v2's flat 403 Forbidden.