Skip to content

Release v5.12.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 17:36
8510418

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:subject claim first, then the name identifier claim, then sub. 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 method ResolveCallerId on the generated PolicyValues class. (#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.