mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
IamEnforcementFilter works out which service a request reaches, the operation it calls there and the IAM action that operation is authorized as, for Query, Smithy RPC v2, JSON and REST requests alike. That lives in private methods of the filter and runs only while IAM enforcement is on. The fault-injection half of #4623 needs the same answer for every request, enforcement on or off, to match FIS inject-api actions against the operations they name. Move it, unchanged, into RequestOperationResolver: - ResolvedAuthorization becomes the public ResolvedOperation record. - The resolver is an application-scoped bean rather than a JAX-RS provider, so it takes the matched ResourceInfo as a parameter. - The filter builds its own instance from the four collaborators it already holds, so none of its constructors change. RequestOperationResolverTest covers each protocol against the real service catalog and action rules, with no Quarkus boot. Refs #4623