Files
Pedro Igor 03cf229edf fix: validate resource type consistency when adding resources to FGAP permissions (#48519)
Previously, getOrCreateResource() would return any resource found by its
authz DB ID without verifying it belonged to the requested resource type.
This allowed resources of one type (e.g. Users) to be silently added to a
permission of a different type (e.g. Groups) by passing the internal authz
resource ID.

- For per-entity resources found by ID, validate the name resolves as the
  expected entity type via getResourceName(); throw ModelValidationException
  on mismatch

Closes #37243

Signed-off-by: Vinit Kumar <30852363+ThreeMangoTrees@users.noreply.github.com>
Co-authored-by: Vranan <vinitkumar.utd@gmail.com>
2026-04-28 08:53:25 +02:00
..