Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## [Unreleased]

### Added

- `policies_to_pst(policies)` parses Cedar policy text into typed `cedarpy.pst` nodes (frozen dataclasses, one per `cedar_policy::pst` node kind), matching a real Cedar structure a consumer can pattern-match on instead of an untyped tree keyed by string operators. Static policies and unlinked templates only; a partial-evaluation residual from `is_authorized_partial` cannot be represented this way, because PST's own policy type rejects any clause containing an unresolved `unknown(...)` node ([#107](https://github.com/k9securityio/cedar-py/issues/107)). Requires cedar-policy 4.11.0+, bundled by [#106](https://github.com/k9securityio/cedar-py/pull/106).
- `tpe_authorize(principal, action, resource, policies, entities, schema, context=None, verbose=False)` performs type-aware partial evaluation (TPE) on a request whose principal and/or resource identity is unknown. Separate entry point from `is_authorized_partial`, which it does not call or change. TPE's residuals are typed `cedarpy.pst.Template` nodes, unlike `is_authorized_partial`'s. `permits`/`forbids` stay separate, each a `TpeClassification` of residual/true/false/error policy ids. Enables the `tpe` Cargo feature; adds no dependencies, checked against the resolved lockfile.

## [4.8.7] - 2026-07-10

### Added
Expand Down
Loading