Architecture
Osty architecture
Osty runs as three tiers: Plane 1 (osty-brain) vets public packages once for every customer, the control plane (osty-control, PostgreSQL 17 and Temporal) holds lineage, campaigns and the ledger, and a thin edge (osty-edge, osty-proxy, osty-sensor) executes inside your VPC over an outbound-only mTLS stream. Every core binary is static, pure Go.
Written by Osty EngineeringPublished Updated
| Tier | Binaries | Runs where | Holds |
|---|---|---|---|
| Plane 1 | osty-brain | Osty Cloud, shared | Public package verdicts, Firecracker sandbox traces, distro advisories and upgrade graphs, all Ed25519-signed. |
| Control plane | osty-control on PostgreSQL 17 and Temporal | Managed by Osty, or self-hosted on Sovereign | Lineage graph, SBOMs, ownership, campaigns, RBAC and the Evidence Ledger. |
| Thin edge | osty-edge, osty-proxy, osty-sensor | Your VPC | Git, CI and registry credentials, the pinned policy and local enforcement. |
What does Plane 1 compute?
Plane 1 watches public registries and triages every new release within a fixed per-artifact budget. Releases that need more go to Tier-2 deep vetting in a Firecracker KVM microVM with honey secrets and a DNS and TLS sinkhole. Results are signed once and distributed to every edge as intelligence bundles.
For air-gapped estates, osty airgap export packs signed bundles and namespace batches into an archive that osty airgap import verifies on the far side, including chain continuity and verdict downgrade checks.
What does the control plane hold?
osty-control stores the lineage graph, content-addressed SBOMs, multi-signal ownership and the hash-chained ledger in PostgreSQL 17 through sqlc, without a separate graph database. Fleet campaigns are Temporal workflows on a dedicated task queue, covered by deterministic replay fixtures.
Operators get per-organisation roles, so a dashboard viewer cannot fire a kill switch and an auditor gets read-only ledger access. Tenant provenance, proof bundles and ledger chains never mix across organisations.
What runs in my VPC?
| Component | Role |
|---|---|
osty-edge | Holds credentials, runs collectors, enforces .osty/policy.yaml on every mutating command and executes campaign steps. |
osty-proxy | Pull-through registry proxy with an offline Ed25519 verdict cache and per-origin failure modes. |
osty-sensor | Zero-credential host agent that reports loaded libraries and processes, with an eBPF probe on Linux. |
| Native analyzers | Digest-pinned containers that run as a non-root user with fixed CPU, memory and time limits. |
All edge traffic is an outbound mTLS stream. The edge flushes its local audit log when a dropped stream reconnects, so offline periods leave no gap in the ledger. Data boundaries are listed on the security page.
Why is the core pure Go with CGO_ENABLED=0?
osty-brain, osty-control, osty-edge, osty-proxy and osty build as static binaries with CGO_ENABLED=0. A static binary has no system library drift, is simple to audit and reproduce, and runs in a minimal container. Cloud collectors sign AWS requests with Signature Version 4 on the standard library instead of pulling in vendor SDKs.
Language toolchains that need native code, such as the TypeScript compiler, pyright, a JDK or rustc, run in separate analyzer containers behind a fixed wire contract, so the core stays pure Go.
Which architectural decisions are recorded as ADRs?
Every ambiguous boundary is settled in an Architecture Decision Record instead of a code comment. These accepted ADRs shape what customers see.
| ADR | Decision |
|---|---|
| ADR-0005 | Policy semantics: repository overrides may only tighten organisation floors. |
| ADR-0006 | Verdict downgrade protection: automation only preserves or escalates a supply-chain verdict. |
| ADR-0013 | Native-compiler analyzers run isolated behind a wire contract and degrade to IMPORTED_UNCERTAIN. |
| ADR-0017 | CI side-effect classifier fails safe: possible side effects are never triggered remotely. |
| ADR-0020 | Broad rollback needs two distinct Ed25519-signed operator approvals; freezes never wait. |
| ADR-0021 | Canary baseline window and a 50 request traffic floor, with a hold for quiet services. |
| ADR-0029 | Cloud collectors keep scaled-to-zero ghost production workloads in the lineage graph. |
| ADR-0030 | GitLab forge and .gitlab-ci.yml side-effect classification. |
| ADR-0031 | Air-gap intelligence transfer and the offline osty explain CLI. |
| ADR-0033 | Rust and Cargo, Java and Maven ecosystems across proxy, verifier and reachability. |
| ADR-0035 | Compliance evidence exports and push to external GRC tools. |
| ADR-0036 | Multi-org RBAC and cross-tenant privilege escalation defense. |
| ADR-0037 | The Day-1 X-Ray is a read-only report that never mutates customer state. |
| ADR-0038 | Trust boundaries: AI migrations capped at VERIFIED_PR, declarative release gates, signed KEV waivers. |
Frequently asked questions
Does Osty need a graph database?
No. The lineage graph, SBOM DAG and ledger live in PostgreSQL 17.
Can the whole stack run inside our network?
Yes, on the Sovereign tier. The control plane and edge run self-hosted or air-gapped, and Plane 1 intelligence arrives as signed bundles.
What happens if the edge loses its connection to the control plane?
It keeps enforcing the pinned policy with its cached verdicts, records actions in its local ledger and flushes them when the stream reconnects.
Related pages
- SecurityPublic Brain, Private Execution trust boundaries, outbound-only mTLS, the three-tier licensing map, TLA+ models, adversarial benchmarks and what Osty is not.
- Policy and LedgerGit-pinned, non-executable
.osty/policy.yamlenforced byosty-edgeon every mutating command, tighten-only overlays, release gates and the hash-chained Ed25519 Evidence Ledger. - GuardPre-install supply-chain firewall: Firecracker honey-secret detonation, artifact-vs-Git diffs, behavior baselines, dependency-confusion defense and
osty-proxy. - SeeRuntime-to-source lineage,
osty stampprovenance, stale deploy detection, ghost production workloads and native-compiler reachability.