Decisions, AI & Fleet·3 min read·docs/enterprise-governance.md

Governance, Four-Eyes & Compliance

Cross-node lateral movement, monitor-first canary rollouts, Two-Person cryptographic seals, NIS2/DORA/AI Act evidence, GitOps and WORM archives.

Interactive Guide LabFour-Eyes seals, Lateral 3D, NIS2/AI Act & GitOps
Visual Isometric WalkthroughInfrastructure & SRE Teams

Interactive Isometric Architecture Simulators

Post-Quantum Zero-Trust Onboarding & Outbound Reverse Live RPC

See how 1 to 10,000+ Linux servers join a hub with zero inbound ports and instant revocation.

Post-Quantum Fleet & Auth guide →
RING 3 · AI / PROCUntrusted user spaceRING 0 · eBPFTetragon v1.8.0PQ ZERO-TRUSTML-DSA-65 + HPKEHUB · CEL & MCPGraphs & 23 toolsHUMAN SEALSHA-256 audit chainSHA3-256 TOKEN ←
Step 1 of 5 · Token Mintinternal/adapter/httpapi/fleet_admin.go

Admin mints scoped enrollment token (stored as SHA3-256)

From /nodes -> Add node, an admin mints a single-use or unlimited (max_uses=0) cluster token. Only its SHA3-256 digest is persisted in SQLite migration 0027.

Developer invariant · Even full read access to the hub database cannot recover raw enrollment tokens, and active node_id collisions are rejected with 409 Conflict.
POST /api/v1/nodes/tokens response
{
  "metadata": { "cluster": "prod-eu", "max_uses": 0, "ttl": "168h" },
  "install_command":
    "curl -fsSL 'https://hub:7070/api/v1/fleet/install.sh?token=...' | sudo sh"
}

Ometsuke turns Ring 0 runtime telemetry into verifiable governance artifacts for regulated environments without ever introducing automatic enforcement.

#1. Cross-Node Lateral Movement & Monitor-First Canary Rollout

  • Lateral Movement Correlation (GET /api/v1/nodes/lateral-movement): Correlates outbound SSH, TCP, or remote execution activity from one enrolled host referencing another node's hostname, ID, or IP label with suspicious follow-up activity on the target host inside a configurable window (default 15 minutes). Correlated paths surface directly on the Isometric 3D Fleet Map (/nodes) and through the read-only MCP tool fleet_lateral_movement.
  • Monitor-First Canary Rollout (POST /api/v1/nodes/policy-rollout): Stages starter packs (such as ai-agent-runtime-guard) across a cluster or percentage canary (1–100%) strictly in monitor mode. Attempting mode: "enforce" via fleet rollout is refused (403) — enforcing remains gated behind explicit human seals.
  • Forensic Non-Destructive Freeze (freeze-process / SIGSTOP): Alongside kill-process, pause-container, and isolate-container, operators can execute a sealed SIGSTOP freeze via /actions/execute to pause a suspicious process in RAM for forensic inspection without destroying volatile evidence.

#2. Two-Person (Four-Eyes) Cryptographic Seals & Enforcement Gate

Stored in SQLite Migrations 0028_four_eyes_seals.sql + 0030_four_eyes_consume.sql and managed directly from the Governance sidebar link (/governance):

  1. Operator A requests a Four-Eyes approval (POST /api/v1/seals/approvals), generating an immutable payload_sha256 and signing challenge_hex.
  2. Self-approval is impossible: cosigning with the same operator identity is rejected (400).
  3. Operator B cosigns (POST /api/v1/seals/approvals/{id}/cosign), either via Browser WebCrypto ECDSA P-256 (Sign with P-256 & cosign, producing SPKI DER + ASN.1 DER verified in Go) or Ed25519 over challenge_hex.
  4. Hard Enforcement Gate (-require-four-eyes / OMETSUKE_REQUIRE_FOUR_EYES): When enabled, POST /api/v1/policies/{name}/enforce and POST /api/v1/actions/execute require a valid, unexpired, cosigned four_eyes_approval_id bound to the exact (kind, subject) and atomically consume it once via SQLite CAS (status = 'consumed'), formally proven replay-free (NoApprovalReplay in specs/tla/FourEyesSeal.tla).

#3. Blast Radius Preview, Policy Studio & Agent Dead-Man's Switch

  • Blast Radius Preview (GET /api/v1/policies/{name}/blast-radius?hours=168): Analyzes recent monitor-mode telemetry before switching to enforce, flagging exact matched binaries, containers, nodes, and critical system lockout hazards (systemd, sshd, containerd, kubelet). Surfaced directly inside /policies/{name}/enforce.
  • Policy Studio eBPF Safety Lints (/policies/load): Real-time client-side linter flags Hard Rule #4 (policy-mode: enforce), Tetragon v1.8.0 Override on security_* without disable-kprobe-multi: "1", >5 selectors per hook, syscall: true on non-sys_* symbols, and fail-open NotIn rules, alongside curated starter snippets.
  • Agent Dead-Man's Switch (-deadman-timeout=60s): If a remote fleet agent loses hub heartbeats (3 consecutive failures or grace timeout) immediately after transitioning a policy to enforce, it automatically reverts that policy back to monitor mode to prevent production host lockouts.

#4. Multi-Tenant Cluster-Scoped RBAC

  • Bind operator or viewer identities to specific clusters via OIDC (-oidc-cluster-claim=ometsuke_clusters or ometsuke-cluster:<name> group prefixes) or static tokens (token:role:subject:clusterA|clusterB).
  • Cluster-scoped principals only see their authorized clusters in /api/v1/nodes/page, /api/v1/nodes/lateral-movement, and /api/v1/auth/me, and receive 403 Forbidden for cross-tenant ?node= Reverse RPC calls, node revocations, or policy rollouts.

#5. Multi-Framework Compliance, S3 Object Lock WORM & Air-Gap Bundles

  • Multi-Framework Posture (GET /api/v1/compliance/posture): Evaluates live runtime evidence across EU NIS2, EU DORA, EU AI Act, SOC 2 Type II, and ISO/IEC 27001:2022, with Ed25519-signed Markdown/JSON auditor exports (GET /api/v1/compliance/export).
  • GitOps Export (GET /api/v1/gitops/export): Generates deterministic kustomization.yaml, argocd-application.yaml, flux-kustomization.yaml, and SHA-256-annotated monitor-first TracingPolicy manifests.
  • S3 Object Lock (COMPLIANCE) WORM Push: Download signed .tar.gz archives (GET /api/v1/audit/worm-archive) or push automatically on a schedule using pure-stdlib AWS SigV4 (-worm-s3-endpoint, -worm-s3-bucket, -worm-s3-interval, -worm-s3-retention-days, OMETSUKE_WORM_S3_ACCESS_KEY/SECRET_KEY), plus on-demand POST /api/v1/audit/worm-push and GET /api/v1/audit/worm-status.
  • Air-Gap Offline Deployment & Helm Verification: Build self-contained zero-internet Linux tarballs (static binary, 116 policies, 18 graphs, Helm chart, systemd units, SHA256SUMS.txt) via ./scripts/build-airgap-bundle.sh amd64 and verify Helm templates against Go CLI flags with ./scripts/verify-helm.sh.