Skip to content

Commit 90b71d5

Browse files
committed
feat(policy): support Cedar in development builds
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 4ea2e32 commit 90b71d5

184 files changed

Lines changed: 50962 additions & 5233 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎AGENTS.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Do not rely on this file for a full inventory. The detailed public and contribut
3232
| `crates/openshell-sandbox-backend/` | OpenShell sandbox backend | Concrete Isolation Backend RPC client and authenticated Sandbox Protocol shared with `openshell-sandbox` |
3333
| `crates/openshell-policy/` | Policy engine | Filesystem, network, and process constraints |
3434
| `crates/openshell-policy-schema/` | Authored policy schema | Dependency-light YAML/JSON representation, bounded parsing, and pure authored-language semantics |
35+
| `crates/openshell-policy-runtime-interface/` | Policy runtime interface | Engine-neutral decisions, request metadata, snapshots, and staged reload contracts |
36+
| `crates/openshell-policy-cedar/` | Cedar policy engine | Validation, Landlock/L7/DNS derivation, and evaluation for Cedar-authored sandbox policies; linked only with the gateway and supervisor `cedar` feature (development builds) |
37+
| `crates/openshell-policy-cedar-schema/` | Cedar policy schema | Canonical Cedar schema and entity, action, and context names; linked only with the `cedar` feature |
38+
| `crates/openshell-policy-cedar-adapter/` | Cedar message adapter | Cedar analysis, filesystem grants, and endpoint inventory shared by gateway and runtime composition |
39+
| `crates/openshell-policy-cedar-runtime/` | Cedar runtime adapter | Implements the policy runtime contracts; selected by supervisor composition with the `cedar` feature |
3540
| `crates/openshell-bootstrap/` | Gateway metadata | Gateway registration metadata, auth token storage, mTLS bundle storage |
3641
| `crates/openshell-gateway-interceptors/` | Gateway interceptors | Intercepts and transforms configured gRPC requests at the gateway routing boundary |
3742
| `crates/openshell-ocsf/` | OCSF logging | OCSF v1.8.0 event types, builders, shorthand/JSONL formatters, tracing layers |

‎CONTRIBUTING.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,12 @@ The normal Rust workspace build, check, lint, and test tasks enable the
351351
`--features experimental` to select it in direct Cargo builds; Cargo's `dev` profile
352352
does not enable it automatically. Prerelease and stable builds leave it off.
353353

354+
Workspace builds select the Cedar runtime member and unify its shared policy
355+
features, so use per-package checks to verify that Cedar is excluded.
356+
357+
On this branch, the development bundle includes Cedar. Build the gateway and
358+
supervisor with `--features experimental`, or use published Release Dev artifacts.
359+
354360
## Building the `openshell` CLI
355361

356362
Inside this repository, `openshell` is a local shortcut script at `scripts/bin/openshell`. The script will
@@ -430,12 +436,18 @@ The TypeScript SDK moved to [ai-openshell/sdk-typescript](https://github.com/ai-
430436
| --------------- | --------------------------------------------- |
431437
| `crates/` | Rust crates |
432438
| `crates/openshell-policy-schema/` | Canonical authored policy DTOs and bounded YAML/JSON parser |
439+
| `crates/openshell-policy-cedar/` | Validation and evaluation for Cedar-authored sandbox policies, enabled by the development `experimental` feature |
440+
| `crates/openshell-policy-cedar-schema/` | Canonical Cedar schema and entity, action, and context names, linked only with the `experimental` feature |
441+
| `crates/openshell-policy-cedar-adapter/` | Cedar analysis adapted to policy messages for gateway and runtime composition |
442+
| `crates/openshell-policy-cedar-runtime/` | Cedar implementation of the shared runtime contracts, selected by supervisor composition |
443+
| `crates/openshell-policy-runtime-interface/` | Shared policy decisions, request metadata, snapshots, and staged reload contracts; no engine implementations |
433444
| `crates/openshell-prover-cli/` | Standalone local policy boundary checker |
434445
| `python/` | Python SDK (frozen, moved to ai-openshell/sdk-python) |
435446
| `sdk/typescript/` | Deprecated `@nvidia/openshell-sdk` stub re-exporting `@ai-openshell/sdk` (moved to ai-openshell/sdk-typescript) |
436447
| `proto/` | Protocol buffer definitions and [public API conventions](proto/README.md) |
437448
| `tasks/` | `mise` task definitions and build scripts |
438449
| `tests/testkit/` | Support library for SDK-driven end-to-end suites |
450+
| `tests/policy-conformance/` | Policy backend conformance through production networking paths |
439451
| `tests/suites/` | End-to-end suites, grouped by test family |
440452
| `tests/tmachine/` | QEMU test machines provisioned with Ansible, and the `Session` API that drives them |
441453
| `tests/runner/` | `openshell-test-runner`: builds a test family for tmachine guests, runs it in a tmachine environment and checks the results |
@@ -478,7 +490,7 @@ mise run docs
478490

479491
PRs that touch `docs/**` or `fern/**` are validated by `.github/workflows/branch-docs.yml`, and they get a preview when `FERN_TOKEN` is available to the workflow.
480492

481-
Release Dev publishes the `dev` docs version from `main`. Release publishes an immutable stable version and updates `latest`. See [fern/README.md](fern/README.md) for the source layout, version model, and publishing workflows.
493+
Release Dev publishes the `dev` docs version from `main`. Release publishes an immutable stable version and updates `latest`. A page with `development-only: true` in its frontmatter, such as the Cedar policy guide, is published only in `dev`; keep links to it and descriptions of its feature off other pages. See [fern/README.md](fern/README.md) for the source layout, version model, and publishing workflows.
482494

483495
`docs/` is the source-of-truth docs tree. `fern/` contains the site configuration, components, theme assets, and its README.
484496

0 commit comments

Comments
 (0)