fix(cedar): align cedarpy and cedar-wasm to Cedar Rust 4.8.2 (#168)#271
Open
Kalindi-Dev wants to merge 3 commits into
Open
fix(cedar): align cedarpy and cedar-wasm to Cedar Rust 4.8.2 (#168)#271Kalindi-Dev wants to merge 3 commits into
Kalindi-Dev wants to merge 3 commits into
Conversation
…ples#168) Bump cedarpy 4.8.0->4.8.3 and downgrade @cedar-policy/cedar-wasm 4.10.0->4.8.2 so both bindings wrap the same Rust core, giving true engine parity instead of the prior tested-compatible skew. Update the CEDAR_WASM_VERSION drift-guard constant in cedar-wasm-layer.ts to match. Add Dependabot ignore rules for both packages so future bumps must be coordinated. Verified: contracts/cedar-parity fixtures pass on both engines (12/12), full CDK suite passes (1808/1808), full agent suite passes (819/819). Closes aws-samples#168
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #271 +/- ##
=======================================
Coverage ? 85.98%
=======================================
Files ? 167
Lines ? 39535
Branches ? 3923
=======================================
Hits ? 33993
Misses ? 5542
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
No blocker:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Align both Cedar policy engine bindings to the same underlying Rust core (4.8.2) so the agent-side (
cedarpy) and Lambda-side (@cedar-policy/cedar-wasm) engines have true parity instead of the prior tested-compatible skew.cedarpy4.8.0 → 4.8.3 (still wraps Rust 4.8.2)@cedar-policy/cedar-wasm4.10.0 → 4.8.2CEDAR_WASM_VERSIONdrift-guard constant incdk/src/constructs/cedar-wasm-layer.tsignorerules for both packages so future bumps must be coordinated through a dedicated PRCloses #168.
Why 4.8.2 (not 4.10.0)
No
cedarpyrelease wraps Cedar Rust 4.9+. The latestcedarpy(4.8.3, 2026-05-14) still pinscedar-policy = "4.8.2". Until k9securityio publishes acedarpywrapping a newer core, 4.8.2 is the only version both bindings can share.API surface check
cdk/src/handlers/shared/cedar-policy.tsonly usespolicySetTextToParts,policyToJson, andisAuthorized— all stable in 4.8.2. No 4.9/4.10-specific calls.Test plan
agent/tests/test_cedar_parity.py— 6/6 passed (cedarpy 4.8.3 vs golden fixtures)cdk/test/handlers/shared/cedar-parity.test.ts— 6/6 passed (cedar-wasm 4.8.2 vs golden fixtures)mise //cdk:test— 1808/1808 passed, 101/101 suitesmise //agent:quality— 819/819 passed, lint + type-check clean, coverage 72.48% ≥ 72%agent/uv.lock,yarn.lock)Follow-ups
Notes
Documentation under
docs/design/CEDAR_HITL_GATES.mdstill references the priorcedarpy==4.8.0↔cedar-wasm==4.10.0skew narrative. That's intentionally left for a follow-up doc PR — this PR keeps the change set narrow to manifests, lockfiles, the version constant, and Dependabot config so the diff is reviewable as a focused parity-alignment change.