Repository navigation
docs(rfc): propose Cedar as an alternate sandbox policy language - #4564
vishwa-raman wants to merge 9 commits into
Conversation
RFC 0020 proposes authoring sandbox policies in Cedar as an alternative to YAML, chosen once per sandbox and enforced by Cedar alone. It is written for authors who use YAML today: what changes, how each YAML construct maps to Cedar with a translation tutorial, the architectural decisions behind the implementation, parity with the YAML engine, risks, alternatives, and the open questions to settle before acceptance. Refs #4411 Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
|
All contributors have signed the DCO ✍️ ✅ |
Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
|
I have read the DCO document and I hereby sign the DCO. |
…estion Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
|
/ok to test 9f80540 |
Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
|
/ok to test fbca5f1 |
Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
|
/ok to test 6b81504 |
Update RFC 0020 for the changes made in response to the pull request review: capability negotiation between clients, gateway, and runtime; staged policies isolated from enforced decisions and the query budget; bounded host selectors and overlap analysis; a sandbox-wide WebSocket budget; Cedar MCP endpoints in endpoint status; and the public skills. Refresh the implementation plan, verification results, parity tally, and risks, and list the proposed pull request split as a decision. Refs #4474 Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
|
/ok to test f57a08f |
Validation now happens at the gateway and in the supervisor; the CLI and SDKs carry the Cedar text without linking the engine. Add a Rollout section covering the cedar feature boundary, Release Dev versus stable builds, feature-derived capability flags, and the promotion criterion, and narrow the mixed-versions risk to development builds. Refs #4474 Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
9eac5b3 to
57e1adb
Compare
|
This pull request has had no activity for 14 days and is now marked stale. |
|
This is a really good idea! |
Describe the implementation as it stands after the refactor: middleware, endpoint settings, and process are policy-message fields set through the API instead of a --middleware file; a CedarPolicy message selects Cedar; supervisor networking depends on engine-neutral runtime contracts with one composition point; parity lives in tests/policy-conformance with recorded expectations; and Cedar is gated by the experimental feature bundle, built only in Release Dev. Record the implementation as the #5005, #5006, and #4991 stack, and update verification and rollout to match. Older gateways that ignore the cedar_policy field, load-time warnings, and a CI check for stable builds follow #5006 as it is today and are listed under Open questions pending review. Refs #4474 Signed-off-by: Vishwanath Raman <vishwanathr@nvidia.com>
Compatibility review (advisory)New or updated breaking changes; see the full report for all findings. 1. rust-sdk — No explicit risk acceptance found
2. rust-sdk — No explicit risk acceptance found
3. api-behavior — No explicit risk acceptance foundStatic credential placeholders previously resolved in arbitrary supported headers, query parameters, and paths, but now require matching placement metadata and otherwise default to
4. policy — No explicit risk acceptance found
5. configuration — No explicit risk acceptance found
6. api-behavior — No explicit risk acceptance foundOCSF records remove top-level
Review details
Advisory review; publication gates are unchanged. |
Summary
RFC 0020 proposes authoring sandbox policies in Cedar as an alternative to YAML. The format is chosen once per sandbox; YAML sandboxes are unchanged, and a Cedar sandbox is decided by Cedar alone, with no YAML or Rego in its decision path. The motivation is expressiveness that stays analyzable: authors can write conditions the YAML structure never anticipated, and every policy remains open to decidable analysis.
The RFC is written for policy authors who use YAML today. It covers what changes for an author, how each YAML construct maps to Cedar with a translation tutorial, the architectural decisions behind the implementation, parity with the YAML engine, risks, alternatives, and the open questions to settle before acceptance.
Related Issue
Closes #4610
Refs #4474, the parent issue for all policy work, which stays open, and #4411, the originating feature request where maintainers assigned RFC 0020.
Changes
rfc/0020-cedar-policy-engine/README.mdinreviewstate.Implementation
An implementation exists on the feature branch
vishwa/cedar-openshell(one commit onmain). The parity harness there runs 2,909 cases pairing YAML and Cedar policies through both engines; 2,904 agree and the 5 recorded differences are deliberate, with Cedar the stricter side in each. The branch depends on the Cedar team's delimitedlikework (cedar-policy/rfcs#115), carried in the publicai-openshell/cedarrepository and pinned by commit until Cedar releases it.Testing
mise run pre-commit; documentation-only change)Checklist
🤖 Generated with Claude Code