mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* fix(apigatewayv2): pass AuthorizationScopes through CloudFormation routes and harden scope ingestion Follow-ups from PR #2011 review: - AWS::ApiGatewayV2::Route now passes AuthorizationScopes to route create/update, so CFN-provisioned scoped routes enforce the 403 path. The property is always sent (empty when absent) so removing it from a template clears the scopes on UpdateStack. - authorizationScopes elements are normalized to strings at ingestion instead of unchecked-cast; a non-string JSON element used to throw ClassCastException during response serialization. - Add JSON 1.1 round-trip coverage for AuthorizationScopes on routes (the ApiGatewayV2JsonHandler rendering block was previously unguarded). * fix(apigatewayv2): reject non-array authorizationScopes with 400 A present-but-non-array value was silently normalized to null, which created the route without scope enforcement or cleared an existing route's scopes on update. It now fails with BadRequestException, and an update that 400s leaves the stored scopes untouched. --------- Co-authored-by: mitsukado-shinagawa <mitsukado-shinagawa@users.noreply.github.com>