platform
platform copied to clipboard
Authorization: GetEntitlements should allow unscoped calls per proto definition
Background
The Authorization Service GetEntitlements RPC proto indicates that the scopes are optional, but the RPC handler currently errors out if scopes are not provided. This presents a challenge for downstream use cases like: https://github.com/opentdf/platform/issues/705.
Acceptance Criteria
-
GetEntitlementscan accept unscoped calls, relying on the policyMatchSubjectMappingsrpc - The
MatchSubjectMappingspolicy API is called with a flattened Entity Representation's selector fields/values (ERS is called first) - Tests
Reopening this as it looks like we aren't all the way to using MatchSubjectMappings yet and are still listing all attributes.