Files
floci/src/main/java/io/github
mitsukado-shinagawaandmitsukado-shinagawa d0a96d87b1 fix(apigatewayv2): CloudFormation AuthorizationScopes pass-through and scope-ingestion hardening (follow-up to #2011) (#2431)
* 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>
2026-08-20 23:44:21 -04:00
..