chore: Update PyO3 to fix vulnerability - #115
Conversation
Reconciles CHANGELOG.md with main (4.8.4 released) and documents PR k9securityio#87 under [Unreleased]: - Added: the {type, id} dict form for principal/action/resource on is_authorized / is_authorized_batch, and the new `make corpus-tests` target. - Changed: missing principal/action/resource now raises KeyError instead of a Rust panic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Backwards-compatible feature release; no Cedar engine change (still 4.8.2).
Added:
- Structured {"type", "id"} EUID form for principal/action/resource (k9securityio#87)
- Reusable, pre-parsed PolicySet handle to skip per-call policy parsing (k9securityio#91)
Changed (behavior):
- Missing principal/action/resource now raises KeyError instead of panicking (k9securityio#87)
- is_authorized* diagnostic errors print to stdout only when verbose=True (k9securityio#91)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
See GHSA-36hh-v3qg-5jq4 and k9securityio/cedar-py#115. Remove after we bump cedarpy past a version that includes this fix.
|
@swenger - thank you for the PR! The GHSA-36hh-v3qg-5jq4 and GHSA-chgr-c6px-7xpp Py03 advisories aren't reachable in cedar-py [1], so I deferred them to avoid churn and perf+correctness risk of updating Py03. That said, I plan to merge this PR because I'm in the process of building the next release with a cedar engine bump and features. So will be doing another round of benchmarking. [1] I built the Reachable Risk tool to help engineers triage dependency alerts so they can focus on the ones that actually need to be fixed |
Co-Authored-By: Claude <noreply@anthropic.com>
|
Thanks @swenger! We validated this PR locally on Apple Silicon (macOS, CPython 3.11) beyond the green CI:
Context on the two advisories this bump fixes (GHSA-36hh-v3qg-5jq4 and GHSA-chgr-c6px-7xpp): both were previously triaged and dismissed as unreachable from cedarpy's API (no We pushed one commit to the branch adding the |
|
Thanks @skuenzli! |
See GHSA-36hh-v3qg-5jq4.