wardyn

module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0

README

Wardyn

Go 1.26 CI

The open-source governed-sandbox control plane for any workload — identity, controls, and audit are the product; the sandbox is a pluggable commodity. Wardyn governs run-identity and tokens for anything you launch — a script, a build, a plain command, or a coding agent (its flagship use): a wardyn authorizes one specific, scoped action — which is exactly what the broker mints.

Name & trademark. "Wardyn" is a working name — a formal trademark clearance (USPTO full-text + GitHub org / domain / package handles) is still pending, so the name may change before a 1.0. The module path github.com/cjohnstoniv/wardyn is a personal namespace for now; re-homing to a dedicated org later is a one-line change.


What Wardyn Is

Anything you run under your own credentials — a script, a build, a CI job, a coding agent — inherits your full blast radius. A prompt-injected agent, a poisoned dependency, or a compromised MCP server inherits the same repos, cloud access, and reach as whatever launched it. Wardyn is the governance layer between a human operator and anything running on their behalf; a run doesn't have to be an agent at all, but coding agents (Claude Code, Codex CLI, and successors) are the flagship use, so most of what follows is framed around them:

  • Per-run identity. Every run gets a SPIFFE ID (spiffe://<trust-domain>/agent-run/<id>) distinct from the human; the human's sub, the run's act, and the accountable sponsor travel together in every token, commit, and audit event. [shipped] (embedded JWT-SVID issuer; SPIRE-backed [v0.5+ — planned]).

  • Broker-minted scoped credentials. The agent never holds a credential; the broker mints short-lived, repo-scoped, down-scoped credentials on demand, injected proxy-side. Approval-required grants mint inside the Postgres transaction that verifies an APPROVED request for that exact run+scope — no widening. [shipped]

  • Layered egress. A run's sandbox is gatewayless — its only path off-host is the wardyn-proxy sidecar (L0 [shipped]), which enforces an L7 allowlist, method rules, first-use approval, and proxy-side credential injection (L2 [shipped]). The env-var-bypass class is defended structurally: with no route, an agent that ignores HTTP_PROXY reaches nothing. L1 default-deny and an MCP gateway are [v0.5+ — planned]. Full table in ARCHITECTURE.md; what "planned" covers is in ROADMAP.md.

  • Three-stream append-only audit. The control-plane event log (Postgres trigger blocks UPDATE/DELETE), PTY replay via wardyn-rec, and the eBPF/Tetragon ground-truth stream (kernel.* correlated on run_id) — all [shipped]. Ground-truth is detection, not prevention and honestly degradable (/healthz reports ebpf_groundtruth=unavailable without a sensor; blind inside CC3/Kata guests; its Tetragon mapper is validated against documented shapes, not a live deployment yet). SIEM export (JSON webhook/syslog/file) is [shipped] and free; OTLP/OCSF [v0.5+ — planned].

  • Confinement Classes. Friendly UI names — Fence = CC1, Wall = CC2, Vault = CC3. CC1/Fence (hardened shared-kernel runc) [shipped], CC2/Wall (gVisor userspace kernel — default) [shipped], CC3/Vault (Kata microVM) [experimental] — live-proven on a Docker daemon with the Kata runtime registered (needs /dev/kvm; not on Docker Desktop). Fence needs only Docker; Wall adds runsc; Vault adds /dev/kvm + Kata. Policy can mandate a minimum class; the plane refuses a run a substrate cannot satisfy.

  • Bring Your Own Image (BYOI). A run may name an arbitrary base image; the plane wraps it with the runner tools (opt-in via WARDYN_ENVBUILD) and gates launch on an in-sandbox self-test, fail-closed. The wrap is wrap-only — a FROM + COPY that adds layers and never runs image-controlled code on the host: a base carrying ONBUILD triggers is refused, because those would execute on the host daemon at wrap time. A tag or a digest-pinned ref (repo@sha256:…) both work; pinning is honored end-to-end and recommended, but not enforced — Wardyn resolves a mutable tag at wrap time, so what a tag points at stays the operator's call. [shipped]

  • Model access without resident keys. An Anthropic API key or a Claude subscription (from the operator's live login) is injected proxy-side, never resident; a containerized plane connects a Wardyn-managed Claude subscription via container login. AWS Bedrock is operator-configured (bearer proxy-injected; SigV4 keys resident, documented). [shipped]


Architecture at a glance

A trusted control plane (wardynd + Postgres) launches each run — a coding agent, a script, a build, whatever the workload is — into an untrusted, gatewayless sandbox whose only path out is the wardyn-proxy sidecar; credentials are injected at the proxy, and every decision and PTY session streams back into the append-only audit log.


Why Now

Coding agents today inherit developer credentials at launch. No purpose-built, open-source governance layer existed to scope, gate, and attribute what an agent can do. The incumbent tools have filled parts of the gap in ways that create new problems:

  • Existing governance controls ship as paid tiers of commercial platforms, closed-source services, or vendor-bundled runtimes — you cannot audit what you cannot read, and you cannot run it on your own infrastructure without a commercial agreement.
  • Existing sandboxing tools have overclaimed their isolation properties: in documented red-team exercises, hook-based in-agent enforcement was bypassed via the dynamic linker (ld-linux/mmap); at least one commercially-shipped sandbox escaped via a CVE in the container runtime.

Wardyn's thesis is that the real boundary is structural (no network path, no resident credentials, enforcement outside the agent process) and that honest disclosure of residual risks is a feature, not a liability. See threatmodel/.

The substrate is a pluggable commodity: every major subsystem (sandbox, identity, secrets, egress, policy, audit) sits behind a seam with a blessed, tested default and documented swappable alternates. See docs/PLUGGABILITY.md.


What It Does

Identity, approval, and the credential mint

The delegation chain is human sub → agent-run SPIFFE ID → scoped minted credential; wardynd mints it at sandbox start and every downstream token and commit carries it (embedded identity provider, or SPIRE at v0.5). A CredentialGrant is eligibility, not issuance — with RequiresApproval set the broker mints only inside the Postgres transaction that verifies approvals.state = 'APPROVED' for this run_id+grant_id and claims minted_jti, so minted scope equals what the approver saw. On run stop the kill-switch cascades automatically: teardown → deny-list run token → revoke credentials → durable state.

Egress model

L0 gatewayless sandbox → L1 default-deny nftables/NetworkPolicy (blocks 169.254.169.254) → L2 wardyn-proxy (L7 allowlist, method rules, first-use approval — always_deny/deny_with_review/wait_for_review holds the connection for a live decision — plus proxy-side credential injection) → L3 MCP/tool gateway (v0.5). The same seam carries the corporate lanes (upstream proxy hop, artifact-mirror redirection, brokered SCM creds). Full table in ARCHITECTURE.md.

Audit streams
  1. audit_events (Postgres, append-only — UPDATE/DELETE trigger raises). System of record.
  2. eBPF/Tetragon ground-truth — a tamper-proof counterpart to agent self-report: detection, not prevention (flags the ld-linux/mmap bypass, never blocks), honestly degradable via /healthz, blind inside CC3/Kata guests. Opt-in.
  3. PTY session replay via wardyn-rec (execs asciinema; GPL subprocess, never linked). Each stream is keyed on run_id and exported to customer SIEM free.
Recorded profiles → governed reruns

The primary way to onboard real work: record a named interactive session in a workspace, then rerun it as a governed profile — the New Run dialog offers recorded sessions as fast-track profiles with observed egress preloaded. Verify re-runs the steps in a fresh CONFINED session (a live re-run, not a byte-for-byte replay): default-deny egress limited to the workspace's approved set unioned with the baseline clone/registry hosts. HONEST RESIDUAL: that baseline is a fixed default, not derived from the workspace's own source — a local_dir workspace that clones nothing still gets the GitHub bundle (incl. *.githubusercontent.com), so a confined verify is much tighter than the open recording but is not minimal. See TRY-IT Level 2.5.

AI Run Composer (optional)

Describe a task in plain English and Wardyn proposes a confined run (agent, repo, confinement, egress, grants) and grades it deterministically. It's advisory (backend never sees run credentials) and off by default; configure a backend via WARDYN_COMPOSER_CONFIG (see examples/composer-configs/; fake.json needs no key) and the Describe surface appears in the New Run dialog — else it falls back to the manual wizard. See TRY-IT Level 3.


Honest Security Posture

Wardyn publishes what it does not defend against. The full published residual-risk list is in threatmodel/THREAT-MODEL.md.

Notable residual risks:

  • The model-API channel is an unavoidable data-exit path. The LLM gateway logs every prompt/token/tool call but cannot prevent an agent from encoding data into a prompt to a model it is permitted to call.
  • Domain fronting and DNS-tunnel exfil are not closed below the optional L2 TLS-intercept tier. Per-run TLS interception is shipped for operator-listed MITM-eligible hosts (LLM endpoints, artifact registries — opt-in, off by default); interception of arbitrary domains is the v0.5 target, so most non-LLM HTTPS egress remains an opaque CONNECT tunnel.
  • Tier-1 hardened-runc shares the host kernel. A kernel 0-day on a runc-only host defeats the sandbox boundary. Wardyn defaults to CC2 (gVisor) for this reason.
  • The 1-hour minted-token window before kill-switch revocation is a real exposure window that cannot be fully eliminated, only minimized by TTL.

Requirements

  • Docker with the compose v2 plugin (Docker Desktop or a native Docker Engine). Fence/CC1 runs need nothing more; Wall/CC2 adds gVisor's runsc, Vault/CC3 adds /dev/kvm + a Kata runtime — wardyn setup wall|vault prints the exact steps for your machine.
  • Go 1.26+ and Node 22 + pnpm 9 — only for building from source (host mode builds bin/wardynd + the UI locally).
  • Claude Code CLI (optional, host mode) — make setup stages an existing claude login so sandboxes can use your subscription; without one, runs have no model access until you add an API key (or Bedrock) in the UI.
  • Postgres is included in the compose file — nothing external to install, no hosted service to sign up for.

go install github.com/cjohnstoniv/wardyn/cmd/wardyn@latest installs the CLI. But wardynd is not go install-able (it needs -tags docker + a built ui/dist; a bare install has no embedded UI or sandbox runner) — run it via make setup or the container image.

Quickstart (pre-alpha)

Status: pre-alpha. Interfaces are not stable. Do not run production workloads.

git clone https://github.com/cjohnstoniv/wardyn
cd wardyn
make setup   # brings up the containerized control plane + opens the UI

make setup (== scripts/setup.sh) runs containerized mode — the default: wardynd runs in a compose container (sandbox→control-plane callbacks route in-network, so workspace Verify/Record work even on Docker Desktop + WSL2 NAT), starts Postgres, opens the UI, and prints commands for any missing confinement barrier. Stop with make compose-down.

Give it a model — pick any, all first-class at the CLI (or in the UI):

claude setup-token | wardyn subscription connect   # Claude subscription (never resident)
echo "$KEY"        | wardyn secret set anthropic-api-key   # API key
# or Bedrock: set WARDYN_BEDROCK_REGION/MODEL (+ WARDYN_BEDROCK_AWS_DIR for ~/.aws SSO)
wardyn setup status   # what's configured, with the exact next command per unmet check

Host mode (WARDYN_SETUP_MODE=local) is an advanced escape hatch — wardynd runs as you, using your resident Claude login directly (note: its workspace Verify/Record callbacks don't route under Docker Desktop + WSL2 NAT). Team mode (multi-user SSO/RBAC) does not exist yet and is not scheduled — see ROADMAP.md.

Prove the egress boundary hands-on first? The UI's /demos screen launches interactive sandboxes with no repo and no keys — see TRY-IT Level 0.5.

Prefer one file and one command? Write your sandbox rules as a small YAML (or JSON) policy and hand it to a single wardyn run — interactive or unattended:

wardyn run --agent claude-code --image ubuntu:24.04 --task-mode exec \
  --task 'echo hello from a governed sandbox' \
  --policy-file examples/policies/sandbox.yaml --wait

The commented examples/policies/sandbox.yaml is a sealed floor you can edit at a glance; wardyn policy render -f <file> checks it.

In a pipeline instead of on a desktop? docs/CI.md — one script brings up a fresh control plane on any CI runner (GitHub Actions, Azure DevOps), runs one governed BYOA sandbox (your image, or just a plain command), and exits with the task's exit code. No UI, no human.

The local access model in one picture

On your desktop, Wardyn never adds power: a sandbox reaches at most what you (the operating user) already can, the operator policy clamps that to what you allow, and each run gets only the minimal subset (scoped credential, egress allowlist, mounts) it needs.

New to Wardyn? docs/TRY-IT.md is the guided walkthrough (no-key governance demo, hands-on demo sandboxes, then a real Claude Code run); docs/sdk.md covers the Go SDK + raw curl API; deploy/compose/README.md the compose stack, no-login local mode, and TLS; and examples/ holds demo policies and configs.


Deployment Surface

Two paths — only one runs sandboxes today:

Path Location Status
Docker Compose deploy/compose/ [shipped] — the only working data plane today
Helm chart (one blessed chart) deploy/helm/wardyn/ [v0.5 — planned] — render-checked only (helm lint + helm template in CI); there is no Kubernetes runner driver yet, so the chart deploys the control plane but cannot create sandboxes yet

No "bring your own arbitrary Kubernetes manifests." The parity rule: a feature is not done until it passes the conformance suite on both Docker and kind — today only the Docker target runs functionally (see Status below).


Status

v0.4 (pre-alpha) is the current release: containerized setup by default, a first-class credential CLI (wardyn subscription, wardyn setup status), YAML policies, container workspaces with their own model credentials, Bedrock via AWS SSO, and the corporate-network build/egress lanes. v0.1–v0.3.1 shipped per-run identity, the approval FSM and credential broker, the L2 egress proxy and append-only audit, CC1/CC2 confinement, CI mode (BYOA), and the repo-scoped git-broker.

Still unbuilt: SPIRE, OpenBao, L1 default-deny, an MCP/tool gateway, arbitrary-domain TLS interception, a Kubernetes runner driver, OTLP/OCSF sinks, and multi-user team mode.

Full shipped-and-planned detail — including the named gaps with no milestone — is in ROADMAP.md; per-release detail is in CHANGELOG.md.


Components

wardynd (control plane: REST API, embedded UI, policy engine, approval FSM, token broker, audit ingest) · wardyn-runner (docker driver) · wardyn-proxy (L2 egress sidecar) · wardyn-rec (PTY recorder) · wardyn-tetragon-ingest (ground-truth ingest, opt-in) · wardyn-git-helper (stdout-only git credential broker) · wardyn-scan / wardyn-verify (workspace onboarding) · wardyn (CLI). Full per-binary roles in ARCHITECTURE.md.


License and Governance

Apache-2.0. Contributor sign-off via DCO (Signed-off-by). No enterprise/ directory — every control is in the open. No hosted backend either: it runs on your infrastructure or it doesn't run. Nothing here is a free tier of a paid product — there is no paid product. Every control described above (identity, egress, audit, approvals) is in this repo under Apache-2.0, not gated behind a commercial license. CNCF Sandbox is the governance target.

Contributions welcome. See CONTRIBUTING.md.


Wardyn is a working name, pending trademark search.

Directories

Path Synopsis
cmd
wardyn command
Command wardyn is the operator CLI for the Wardyn control plane.
Command wardyn is the operator CLI for the Wardyn control plane.
wardyn-aws-sso command
Command wardyn-aws-sso is Wardyn's in-sandbox AWS SSO credential capture helper.
Command wardyn-aws-sso is Wardyn's in-sandbox AWS SSO credential capture helper.
wardyn-git-helper command
Command wardyn-git-helper is the git credential helper for Wardyn-governed agent sandboxes.
Command wardyn-git-helper is the git credential helper for Wardyn-governed agent sandboxes.
wardyn-proxy command
Command wardyn-proxy is the L2 per-workspace egress sidecar: an HTTP forward proxy that enforces Wardyn's default-deny domain allowlist, method rules, and first-use approval; streams decision logs to the control plane; and injects third-party credentials proxy-side so secrets never enter the sandbox.
Command wardyn-proxy is the L2 per-workspace egress sidecar: an HTTP forward proxy that enforces Wardyn's default-deny domain allowlist, method rules, and first-use approval; streams decision logs to the control plane; and injects third-party credentials proxy-side so secrets never enter the sandbox.
wardyn-rec command
Command wardyn-rec is Wardyn's per-workspace PTY session recorder.
Command wardyn-rec is Wardyn's per-workspace PTY session recorder.
wardyn-runner command
wardyn-scan command
Command wardyn-scan is Wardyn's in-sandbox workspace scanner.
Command wardyn-scan is Wardyn's in-sandbox workspace scanner.
wardyn-tetragon-ingest command
Command wardyn-tetragon-ingest is the host-scoped eBPF GROUND-TRUTH sidecar: the SECOND of Wardyn's three advertised audit streams.
Command wardyn-tetragon-ingest is the host-scoped eBPF GROUND-TRUTH sidecar: the SECOND of Wardyn's three advertised audit streams.
wardyn-verify command
Command wardyn-verify is Wardyn's in-sandbox environment VERIFY step.
Command wardyn-verify is Wardyn's in-sandbox environment VERIFY step.
wardynd command
Command wardynd is the Wardyn control plane: REST API, embedded web UI, policy engine, approval FSM, token broker, and audit ingest.
Command wardynd is the Wardyn control plane: REST API, embedded web UI, policy engine, approval FSM, token broker, and audit ingest.
examples
workspaces/github-push command
Package main is a trivial Go program used as the github-push workspace.
Package main is a trivial Go program used as the github-push workspace.
internal
api
Package api wires Wardyn's control-plane REST surface (the wardynd binary).
Package api wires Wardyn's control-plane REST surface (the wardynd binary).
approval
Package approval implements the ApprovalRequest FSM service.
Package approval implements the ApprovalRequest FSM service.
audit
Package audit defines the append-only audit contract.
Package audit defines the append-only audit contract.
audit/sinks
Package sinks provides production audit.Sink implementations (syslog, webhook, file) plus a Fanout multiplexer and config wiring.
Package sinks provides production audit.Sink implementations (syslog, webhook, file) plus a Fanout multiplexer and config wiring.
auth/oidc
Package oidc implements human SSO for Wardyn via OpenID Connect (Dex-compatible).
Package oidc implements human SSO for Wardyn via OpenID Connect (Dex-compatible).
broker
Package broker implements Wardyn's token broker: the ONLY component that holds long-lived secrets and the sole issuer of short-lived run credentials.
Package broker implements Wardyn's token broker: the ONLY component that holds long-lived secrets and the sole issuer of short-lived run credentials.
cliutil
Package cliutil holds tiny env/flag helpers shared by Wardyn's cmd/* main packages (each cmd is its own `main` package, so these can't just live in one of them without the others importing "main").
Package cliutil holds tiny env/flag helpers shared by Wardyn's cmd/* main packages (each cmd is its own `main` package, so these can't just live in one of them without the others importing "main").
component
Package component provides the shared registry that backs Wardyn's pluggable component seams (identity provider, secret store, recording store, policy evaluator, …).
Package component provides the shared registry that backs Wardyn's pluggable component seams (identity provider, secret store, recording store, policy evaluator, …).
composer
Package composer turns a natural-language task description into a PROPOSED Wardyn run setup — the same {run, inline_policy} shape the New Run wizard emits — that a human reviews and approves before launch.
Package composer turns a natural-language task description into a PROPOSED Wardyn run setup — the same {run, inline_policy} shape the New Run wizard emits — that a human reviews and approves before launch.
composer/backends
Package backends constructs composer.Composer implementations from operator config (the registry of LLM backends).
Package backends constructs composer.Composer implementations from operator config (the registry of LLM backends).
composer/backends/anthropic
Package anthropic implements the composer.Composer backend that drives Anthropic's Messages API (first-party API or Amazon Bedrock) to produce a Wardyn run proposal.
Package anthropic implements the composer.Composer backend that drives Anthropic's Messages API (first-party API or Amazon Bedrock) to produce a Wardyn run proposal.
composer/backends/cli
Package cli implements a composer.Composer backed by the operator's resident coding-agent CLI (Claude Code or Codex) running under its own logged-in SUBSCRIPTION — no API key is minted or passed.
Package cli implements a composer.Composer backed by the operator's resident coding-agent CLI (Claude Code or Codex) running under its own logged-in SUBSCRIPTION — no API key is minted or passed.
composer/backends/composertest
Package composertest holds fixtures shared by the cli, openai, and anthropic backend test suites: a schema-valid proposal JSON blob, a representative ComposeRequest, and the common Proposal assertions every backend's happy-path test needs.
Package composertest holds fixtures shared by the cli, openai, and anthropic backend test suites: a schema-valid proposal JSON blob, a representative ComposeRequest, and the common Proposal assertions every backend's happy-path test needs.
composer/backends/openai
Package openai implements the Wardyn Run Composer backend that talks to OpenAI-wire Chat Completions APIs.
Package openai implements the Wardyn Run Composer backend that talks to OpenAI-wire Chat Completions APIs.
composer/backends/sandbox
Package sandbox implements a composer.Composer that runs the REAL `claude` binary INSIDE a governed one-shot Wardyn sandbox, credentialed by the Wardyn-managed subscription token injected PROXY-SIDE (never resident).
Package sandbox implements a composer.Composer that runs the REAL `claude` binary INSIDE a governed one-shot Wardyn sandbox, credentialed by the Wardyn-managed subscription token injected PROXY-SIDE (never resident).
composer/backends/transport
Package transport provides a hardened, governed HTTP client for the composer's OWN outbound LLM API egress — the control-plane calls each networked composer backend makes to a third-party model provider (Anthropic, OpenAI, Azure, Bedrock, …).
Package transport provides a hardened, governed HTTP client for the composer's OWN outbound LLM API egress — the control-plane calls each networked composer backend makes to a third-party model provider (Anthropic, OpenAI, Azure, Bedrock, …).
contentscan
Package contentscan implements Wardyn's OPTIONAL, off-by-default outbound content-inspection layer ("egress content inspection" / inadvertent-leak guardrail).
Package contentscan implements Wardyn's OPTIONAL, off-by-default outbound content-inspection layer ("egress content inspection" / inadvertent-leak guardrail).
db
Package db provides Postgres connection bootstrapping and schema migration for the Wardyn control plane.
Package db provides Postgres connection bootstrapping and schema migration for the Wardyn control plane.
egress
Package egress defines the L2 proxy decision model shared by cmd/wardyn-proxy and the control plane's policy/approval wiring.
Package egress defines the L2 proxy decision model shared by cmd/wardyn-proxy and the control plane's policy/approval wiring.
egress/evaluatortest
Package evaluatortest provides a reusable conformance suite for any egress.Evaluator implementation, so the blessed default (builtin) and a future alternate (OPA/Cedar) are held to the identical policy-verdict contract.
Package evaluatortest provides a reusable conformance suite for any egress.Evaluator implementation, so the blessed default (builtin) and a future alternate (OPA/Cedar) are held to the identical policy-verdict contract.
egress/proxy
Package proxy implements the L2 per-workspace egress sidecar (wardyn-proxy): an HTTP forward proxy that enforces the internal/egress decision model (default-deny domain allowlist, method rules, first-use approval), streams decision logs, and injects credentials proxy-side.
Package proxy implements the L2 per-workspace egress sidecar (wardyn-proxy): an HTTP forward proxy that enforces the internal/egress decision model (default-deny domain allowlist, method rules, first-use approval), streams decision logs, and injects credentials proxy-side.
gitremote
Package gitremote deterministically detects the git remotes configured in a local directory tree, so Wardyn can ground a composed run's GitHub grant on the workspace's ACTUAL remotes rather than an LLM guess.
Package gitremote deterministically detects the git remotes configured in a local directory tree, so Wardyn can ground a composed run's GitHub grant on the workspace's ACTUAL remotes rather than an LLM guess.
groundtruth
Package groundtruth maps kernel-level observations (from an eBPF sensor — specifically Tetragon) into Wardyn's append-only audit vocabulary (types.AuditEvent).
Package groundtruth maps kernel-level observations (from an eBPF sensor — specifically Tetragon) into Wardyn's append-only audit vocabulary (types.AuditEvent).
identity
Package identity defines the per-run workload identity contract.
Package identity defines the per-run workload identity contract.
identity/embedded
Package embedded implements the default, SPIFFE-shaped JWT-SVID identity provider satisfying identity.Provider.
Package embedded implements the default, SPIFFE-shaped JWT-SVID identity provider satisfying identity.Provider.
identity/identitytest
Package identitytest provides a reusable conformance suite for any identity.Provider implementation, so the blessed default (embedded) and a future alternate (SPIRE) are held to the identical security contract.
Package identitytest provides a reusable conformance suite for any identity.Provider implementation, so the blessed default (embedded) and a future alternate (SPIRE) are held to the identical security contract.
ipguard
Package ipguard holds the SSRF-blocklist CIDR table shared by the egress proxy's policy guard (internal/egress/proxy) and the composer transport guard (internal/composer/backends/transport).
Package ipguard holds the SSRF-blocklist CIDR table shared by the egress proxy's policy guard (internal/egress/proxy) and the composer transport guard (internal/composer/backends/transport).
lifecycle
Package lifecycle implements workspace lifecycle automation: the Reaper loop finds RUNNING agent runs that have been idle past their policy's AutoStopAfterSec threshold and stops them, emitting a "run.autostop" audit event for each.
Package lifecycle implements workspace lifecycle automation: the Reaper loop finds RUNNING agent runs that have been idle past their policy's AutoStopAfterSec threshold and stops them, emitting a "run.autostop" audit event for each.
recording
Package recording provides storage and HTTP serving of asciicast session recordings produced by wardyn-rec.
Package recording provides storage and HTTP serving of asciicast session recordings produced by wardyn-rec.
recording/recordingtest
Package recordingtest provides a reusable conformance suite for any recording.Store implementation.
Package recordingtest provides a reusable conformance suite for any recording.Store implementation.
recordmode
Package recordmode is the deterministic core of Wardyn's "Recording Mode": it OBSERVES what a fully-open (allow-all-egress, broad-grant) run actually used — purely from already-captured audit events — and SYNTHESIZES a tightened, least-privilege RunPolicySpec the operator can review and promote.
Package recordmode is the deterministic core of Wardyn's "Recording Mode": it OBSERVES what a fully-open (allow-all-egress, broad-grant) run actually used — purely from already-captured audit events — and SYNTHESIZES a tightened, least-privilege RunPolicySpec the operator can review and promote.
runner
Package runner defines the target-agnostic sandbox lifecycle contract.
Package runner defines the target-agnostic sandbox lifecycle contract.
runner/orchestrator
Package orchestrator is the build-tag-free runner.Runner the control plane talks to.
Package orchestrator is the build-tag-free runner.Runner the control plane talks to.
runner/substrate
Package substrate defines the confinement-substrate sub-interface: the seam beneath the runner.Runner surface that lets a non-OCI microVM VMM (SmolVM, Firecracker, …) back a Confinement Class alongside the OCI/Docker substrate, without the control plane (or each substrate) re-implementing the runner contract.
Package substrate defines the confinement-substrate sub-interface: the seam beneath the runner.Runner surface that lets a non-OCI microVM VMM (SmolVM, Firecracker, …) back a Confinement Class alongside the OCI/Docker substrate, without the control plane (or each substrate) re-implementing the runner contract.
secretmask
Package secretmask implements Wardyn's output-masking layer for PTY capture and asciicast streams.
Package secretmask implements Wardyn's output-masking layer for PTY capture and asciicast streams.
secretstore
Package secretstore defines the at-rest secret storage contract.
Package secretstore defines the at-rest secret storage contract.
secretstore/pg
Package pg implements secretstore.Store backed by an age-encrypted Postgres column (the `secrets` table in the core schema).
Package pg implements secretstore.Store backed by an age-encrypted Postgres column (the `secrets` table in the core schema).
secretstore/secretstoretest
Package secretstoretest provides a reusable conformance suite for any secretstore.Store implementation.
Package secretstoretest provides a reusable conformance suite for any secretstore.Store implementation.
setup
Package setup provides host-environment detection for the first-run setup surface (GET /api/v1/setup/status): which resident coding-agent CLIs are present, and the OS/WSL posture the environment-step copy keys off.
Package setup provides host-environment detection for the first-run setup surface (GET /api/v1/setup/status): which resident coding-agent CLIs are present, and the OS/WSL posture the environment-step copy keys off.
sidecar
Package sidecar holds the small brokered-PUT plumbing shared by Wardyn's in-sandbox result-uploader binaries (wardyn-scan, wardyn-verify): validate WARDYN_PROXY_URL/WARDYN_RUN_ID, build the brokered result URL, and PUT a JSON body.
Package sidecar holds the small brokered-PUT plumbing shared by Wardyn's in-sandbox result-uploader binaries (wardyn-scan, wardyn-verify): validate WARDYN_PROXY_URL/WARDYN_RUN_ID, build the brokered result URL, and PUT a JSON body.
store
Package store provides typed CRUD over the Wardyn schema using pgx/v5.
Package store provides typed CRUD over the Wardyn schema using pgx/v5.
subscription
Package subscription yields the operator's LIVE Anthropic subscription OAuth access token from the resident ~/.claude credentials, so the egress proxy can inject a fresh token per request instead of the sandbox holding a COPY that goes stale (access-token expiry + refresh-token rotation lock the copy out).
Package subscription yields the operator's LIVE Anthropic subscription OAuth access token from the resident ~/.claude credentials, so the egress proxy can inject a fresh token per request instead of the sandbox holding a COPY that goes stale (access-token expiry + refresh-token rotation lock the copy out).
types
Package types defines Wardyn's core domain vocabulary: the four nouns (AgentRun, RunPolicy, CredentialGrant, ApprovalRequest) plus the audit event shape.
Package types defines Wardyn's core domain vocabulary: the four nouns (AgentRun, RunPolicy, CredentialGrant, ApprovalRequest) plus the audit event shape.
workspacescan
Package workspacescan deterministically detects a local directory's (or a cloned repo's) development conventions — languages, package managers, implied egress registries, dev-container/Dockerfile presence, tools, and git remotes — so Wardyn can onboard a workspace with a profile grounded in what's ACTUALLY in the tree, not an LLM guess.
Package workspacescan deterministically detects a local directory's (or a cloned repo's) development conventions — languages, package managers, implied egress registries, dev-container/Dockerfile presence, tools, and git remotes — so Wardyn can onboard a workspace with a profile grounded in what's ACTUALLY in the tree, not an LLM guess.
pkg
client
Package client is the public Go SDK for the Wardyn control plane.
Package client is the public Go SDK for the Wardyn control plane.
test
awsssofake
Package awsssofake is a local, unsigned fake of the two AWS IAM Identity Center (SSO) HTTP services the AWS CLI/SDK talks to during `aws sso login` and later role-credential resolution:
Package awsssofake is a local, unsigned fake of the two AWS IAM Identity Center (SSO) HTTP services the AWS CLI/SDK talks to during `aws sso login` and later role-credential resolution:
conformance
Package conformance is the driver-agnostic parity gate for runner.Runner implementations.
Package conformance is the driver-agnostic parity gate for runner.Runner implementations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL