Skip to content

Release v22.181.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 18:24
22e2032

Policies can now decide from state the application has recorded, such as the plan of the asset a command acts on.

Added

  • StateAwareAuthorizationPolicy<TState> base class: implement GetKey, Read and Decide and register it as a named policy. It fails closed: no key, no recorded state, a failed read and a rejecting decision all deny without throwing, and OnDenied reports a StateDenialReason so a denial stays distinguishable from an exception. (part of Cratis/StudioIssues#1387)
  • Documentation of the pattern, including that the read is an admission check that does not enrol in decision reads and does not revoke granted access.