Skip to navigation

Repositories

View as Markdown

APF

The APF source is in the APF repository. This documentation describes its main branch.

PathContents
crates/The Rust workspace crates.
contracts/proto/Protobuf contracts for APF’s APIs and compiled policy.
contracts/jsonschema/JSON Schemas for authored policy documents.
contracts/audit/The apf.audit.event.v1 audit schema.
examples/demo-bundle/The demo policy bundle used throughout this documentation.
examples/dev-keys/Development-only keys and token. Never trust them in production.
deploy/systemd/Hardened systemd units, env files, a polkit rule, and a security checklist.
deploy/docker/Dockerfiles for both services, and the Docker Compose development stack: compose.yaml and .env.example.
deploy/helm/apf/The APF Helm chart.
e2e/The verification harness: environment wrappers for the Compose stack and for kind, shared test suites, and the OpenShell fixtures they use.
docs/This documentation.
xtask/Repository automation, including dag-guard.
scripts/, licenses/Third-party license generation and its inputs, and the copyright header check.

Crates

CrateKindPurpose
apf-typesLibrarySigning traits and shared vocabulary.
apf-auditLibraryThe audit schema, event builders, sanitization, and the JSON Lines writer.
apf-bundleLibraryBundle parsing and verification, trust roots, the counter store, and signing.
apf-policy-evalLibraryThe Evaluator trait and the Cedar engine with annotators and effects.
apf-compilerLibraryBundle compilation and the Projector trait.
apf-protoLibraryGenerated gRPC bindings for APF and OpenShell contracts.
apf-policy-clientLibrarygRPC client for the policy service.
apf-policy-serviceServiceThe policy service binary.
apf-policy-gatewayServiceThe policy gateway binary.
apf-compileServiceThe offline signing and verification tool.
apf-openshell-projectorAdapterProduces OpenShell projections. Runs in the policy service.
apf-openshell-interceptorAdapterOpenShell gateway interceptor. Runs in the policy gateway.
apf-openshell-middlewareAdapterOpenShell supervisor middleware. Runs in the policy gateway.
apf-openshell-authAdapterOpenShell extension caller authentication, shared by both adapters.

The repository’s AGENTS.md documents the dependency rules between these crates, which cargo xtask dag-guard checks.

ProjectRelationship
NVIDIA OpenShellThe agent runtime APF integrates with. APF builds against OpenShell’s protobufs at a pinned commit. OpenShell documentation.
CedarThe policy language and evaluation library APF uses for rules.
yaml-sigilThe signature format and Rust crates APF uses to sign and verify bundles, published on crates.io.

Next Steps