Repository navigation
Release v5.12.0
A policy that compares a recorded property with the caller's identifier, such as "only the author may edit the article", now renders and runs instead of being refused.
Added
- The generated policy reads the caller's identifier from the principal Arc authorized: the
urn:cratis:identity:subjectclaim first, then the name identifier claim, thensub. A principal that carries none, or two different values of the first claim it has, makes the policy unavailable, so it denies, including for!=. An application that identifies callers another way implements the partial methodResolveCallerIdon the generatedPolicyValuesclass. (#1061) - A specification's caller can name its identifier with
id "alice"; the generated test puts it in the principal's name identifier claim, and the in-process specification runner evaluates the policy the same way.
Changed
- Generated shared policy runtime files now contain the identifier helper, so their bytes change for every application that has policies.
Fixed
- A model that uses the caller's identifier in a policy is no longer refused with STAGE-ESM-016.