A serverless Zero Operator Access implementation for the ROSA HCP Seaplane platform.
ZOA ensures that operators have no persistent, interactive, or unaudited access to customer infrastructure. Every operational action — reading a secret, restarting a pod, checking AWS quotas — flows through an audited, reason-tagged path. There is no kubectl on the laptop.
This repository is the source of truth for the ZOA framework: CLI, Lambdas, boundary container, Trusted Action implementations, and docs.
ZOA is built on three operational pillars. The boundary is always the entry point — TAs and break-glass run from inside it.
| Pillar | Status | What it is | How operators use it |
|---|---|---|---|
| Boundary | ✅ Shipped | Ephemeral ECS Fargate task in the target VPC — the entry point for all operator work | SRE starts a session with a reason (Jira/PD), works in ECS Exec, runs TAs from inside. Reaped on deadline, stale creating, or idle. |
| Trusted Actions | ✅ Shipped | Pre-defined fleet operations via zoa run from the boundary; ephemeral per-execution RBAC (scoped SA + Role per run) |
Default path: zoa run after zoa actions / zoa describe — operator workflow, TA authoring. |
| Break-glass | ✅ Shipped | Audited emergency kubectl/aws from the boundary — time-boxed, profile-scoped temporary credentials |
Last resort when no TA fits: scoped profiles (kube/aws × read/write/elevated), request → activate — break-glass operator guide. |
Every operator path starts with zoa session start — there is no laptop-side kubectl or zoa run. The boundary is the shell; Trusted Actions are the default; break-glass is the audited exception path when TAs cannot cover the work.
Break-glass → TA lifecycle: every break-glass use must produce a follow-up Trusted Action that covers the same operation. Break-glass is a one-time escape hatch, not a permanent workflow. The expectation is that the TA catalog grows monotonically — each emergency teaches the system a new operation so that next time it runs through the audited, RBAC-scoped TA path instead of raw cluster access.
| Component | Artifact | Runs on | Pillar |
|---|---|---|---|
CLI (zoa) |
zoa binary |
SRE laptop · boundary task | All — session lifecycle on the laptop; TA execution from inside the boundary |
| ZOA Boundary | zoa-boundary image |
ECS Fargate (per target VPC) | Boundary — audited operator environment; ECS Exec transcript to CloudWatch |
| Access Lambda | zoa-lambda image (HANDLER_MODE=access) |
Lambda (RC account, no VPC) | Boundary — session plane: start/terminate/list/history, targets; ecs:RunTask |
| API Lambda | zoa-lambda image (HANDLER_MODE=api) |
Lambda (per target VPC) | TAs + break-glass — zoa run, break-glass request/activate, audit; identity bridge (task ARN → session → operator) |
| Worker Lambda | zoa-lambda image (HANDLER_MODE=worker) |
Lambda (per target VPC) | Boundary + TAs + break-glass — reconciler, GC, async TA dispatch, session reaper, break-glass lifecycle reconcile + RBAC GC |
| Async runner | zoa-runner image |
K8s Job (target EKS) | TAs — long-running async TAs; uploads to S3 |
| Trusted Actions | Go packages (pkg/actions/, compiled into Lambda/runner/boundary) |
Lambda + runner + boundary catalog | TAs — ephemeral per-execution RBAC; invoked via zoa run from the boundary |
| Break-glass profiles | Go packages (pkg/breakglass/, compiled into Lambda/boundary) |
Lambda + boundary catalog | Time-boxed RBAC/IAM-scoped profiles for boundary kubectl/aws; data-plane use correlates as zoa-bg-<request-id> in CloudTrail / EKS audit (evidence) |
Three images from this repo: zoa-lambda (one binary, three HANDLER_MODEs), zoa-runner (async TAs in EKS Jobs), zoa-boundary (audited operator shell).
- Boundary-first operations — operators do not hold kubeconfig or cluster-admin on the laptop; they start a session, work in ECS Exec, then
zoa runor break-glass from inside the task - Dual audit — sessions (Access API + ECS Exec logs + DynamoDB session rows), TA runs (executions + audit log + optional S3 artifacts), and break-glass grants (requests + activate + audit); laptop
session history/auditfor fleet visibility - Reason on everything —
zoa session start --reason, everyzoa run(defaultZOA_REASONin boundary), and everyzoa breakglass request --reason - Identity bridge — API sees the ECS task role ARN; DynamoDB maps task id → session → operator for TA and break-glass audit attribution (
operatoron executions, break-glass rows, and audit) - Zero standing access — no persistent kubectl/aws credentials for fleet work; break-glass grants are time-boxed, task-bound, and provisioned only after explicit activate
- SRE muscle memory — CLI mirrors kubectl/aws-cli conventions (
-n,-o json,-A,--force) - Per-execution RBAC — each TA dispatch creates a scoped ServiceAccount + RoleBinding, destroyed on completion; each kube break-glass activate provisions per-request RBAC (
zoa-bg-<id>) torn down when the grant expires - Direct Lambda-to-EKS — API/Worker in the same VPC as the target EKS cluster
- Shared state (DynamoDB + S3) — sessions, executions, break-glass requests, and audit in RC (MC Lambdas assume cross-account); S3 for async output and long-term retention (365-day TTL on tables)
- Write cooldown / max concurrent — per target; bypassable with
--force - HCP namespace protection —
get_secretand similar rules block customercluster-*namespaces - FedRAMP-ready — KMS at rest, PITR, deletion protection on stateful resources
- Serverless execution plane — API/Worker/Access are Lambda; no always-on TA workers. Pay per invocation when operators run actions.
- Ephemeral boundary compute — ECS Fargate tasks exist only for the session window (reaper-enforced). Audited shell + tools (Claude,
jq) without granting the laptop cluster access. - Failure domain isolation — scoped per target VPC (API + Worker + boundary tasks for that EKS cluster) plus a central Access function for sessions; a failure in one MC/RC VPC does not take down another cluster's ZOA
- No capacity planning for Lambdas — concurrency and DynamoDB on-demand absorb bursts; boundary concurrency is bounded by ECS/Fargate quotas per account/VPC
Operator path (sessions + TAs):
| Component | Scope | On failure |
|---|---|---|
| Lambda | Central (RC account): Access — sessions, targets, RunTask. Per target VPC: API — sync zoa run; Worker — reconciler, GC, reaper, async dispatch (same zoa-lambda image, different HANDLER_MODE) |
Central: cannot start/join/list sessions or resolve targets from the laptop; running boundary tasks may still zoa run if that VPC's API is up. Per VPC: that cluster's TAs and scheduled worker work stop; other clusters unaffected |
| ECS Fargate (boundary) | Per target VPC | Cannot start or attach to a new session; in-flight Exec may disconnect; task keeps running until reaper or session terminate |
| DynamoDB | Regional (sessions, executions, audit) | Cannot record sessions or dispatch TAs; identity bridge unavailable |
| EKS API server | Per cluster | TA fails; API returns error + execution logs inline |
Sync (auto-approved) — the common case:
Output is returned inline in the HTTP response. S3 archival happens best-effort for long-term retention — if S3 is down, the operator still gets output immediately.
Async and manual-approval paths (adds to the above):
| Component | Required by | On failure |
|---|---|---|
| S3 + KMS | Async (runner uploads output) | Execution marked failed |
| EventBridge Scheduler | Async + manual-approval (triggers reconciler/GC/reaper) | Worker Lambda not invoked; approved TAs stuck; session reaper delayed |
Composite sync availability: ~99.95% (~22 min/month downtime budget, bottlenecked by Lambda + EKS in the target VPC). Session start additionally depends on Lambda (Access) and ECS. See storage for sessions and the reaper.
ZOA uses three Lambda deployments from one image (HANDLER_MODE) plus on-demand boundary ECS per target VPC:
| Plane | Where | Role |
|---|---|---|
| Access | RC account (no VPC) | Sessions, targets, RunTask, session audit APIs |
| API + Worker | Each RC/MC VPC (one EKS cluster each) | TA + break-glass execution, reconciler, GC, session reaper |
| Boundary | Same VPC as the session target | Operator shell; zoa run → API Lambda in that VPC |
- API Lambda — Function URL, IAM auth,
RESPONSE_STREAM. Serves the boundary task'szoaclient; sync TAs run in-process. - Worker Lambda — EventBridge (1m reconciler, 5m GC, 5m boundary reaper); async TA via self-invoke +
zoa-runnerJobs. - Access Lambda — Function URL, IAM auth; laptop
zoa session/zoa targets(deployments via Central SSM).
Separate functions because timeout, concurrency, and streaming vs buffered invoke differ per role.
---
config:
layout: dagre
---
graph TD
subgraph laptop["SRE Laptop"]
L["RH VPN → kinit<br/>rh-aws-saml-login (Central)"]
end
subgraph rc["RC Account"]
ACCESS["ZOA Access Lambda<br/>(Function URL, IAM)"]
STATE["ZOA state<br/><br/>DynamoDB · sessions, executions, break-glass, audit-log<br/>S3 · outputs"]
subgraph rc_vpc["Target RC VPC"]
BOUNDARY_RC["ZOA boundary<br/>ECS Fargate + ECS Exec"]
EB_RC["EventBridge Scheduler"]
API_RC["API Lambda<br/>(Function URL, streaming)"]
WORKER_RC["Worker Lambda<br/>(reconciler, GC, reaper)"]
EKS_RC["RC EKS"]
end
end
subgraph mc["Target MC Account"]
subgraph mc_vpc["Target MC VPC"]
BOUNDARY_MC["ZOA boundary<br/>ECS Fargate + ECS Exec"]
EB_MC["EventBridge Scheduler"]
API_MC["API Lambda<br/>(Function URL, streaming)"]
WORKER_MC["Worker Lambda<br/>(reconciler, GC, reaper)"]
EKS_MC["MC EKS"]
end
end
L -->|"zoa session start (SigV4)"| ACCESS
ACCESS -->|"sessions, RunTask"| STATE
ACCESS -->|"ecs:RunTask"| BOUNDARY_RC
ACCESS -->|"ecs:RunTask (cross-account)"| BOUNDARY_MC
L -.->|"ECS Exec (session-manager-plugin)"| BOUNDARY_RC
L -.->|"ECS Exec"| BOUNDARY_MC
BOUNDARY_RC -->|"zoa run (SigV4)"| API_RC
BOUNDARY_MC -->|"zoa run (SigV4)"| API_MC
BOUNDARY_RC -->|"break-glass activate"| API_RC
BOUNDARY_MC -->|"break-glass activate"| API_MC
BOUNDARY_RC -.->|"kubectl / aws (scoped creds)"| EKS_RC
BOUNDARY_MC -.->|"kubectl / aws (scoped creds)"| EKS_MC
EB_RC -->|"1m rec / 5m GC / 5m reaper"| WORKER_RC
EB_MC -->|"1m rec / 5m GC / 5m reaper"| WORKER_MC
API_RC --> EKS_RC
WORKER_RC --> EKS_RC
API_MC --> EKS_MC
WORKER_MC --> EKS_MC
API_RC -->|"read/write"| STATE
WORKER_RC --> STATE
API_MC -.->|"cross-account"| STATE
WORKER_MC -.->|"cross-account"| STATE
Operator path: RH VPN +
kinit+rh-aws-saml-login(Central account) →zoa deployments→zoa targets <deployment>→zoa session start <deployment> <target> --reason TICKET→ work inside boundary withzoa runby default, break-glass when no TA fits →zoa session terminate. See Operator workflow. Peer approval beyond catalogapproval: noneis designed in code but not operational yet — short-term epic (approval workflow).
All modes persist execution state in DynamoDB before dispatch.
| Mode | Approval | Flow |
|---|---|---|
| Sync, auto | None | Boundary zoa run → API Lambda → execute in-process → output inline in HTTP response |
| Async, auto | None | Boundary zoa run → API Lambda → K8s Job → reconciler polls → zoa output / S3 |
| Sync, manual | Required | Boundary → API → pending → approve → reconciler → inline · future |
| Async, manual | Required | Boundary → API → pending → approve → reconciler → Job · future |
Sync output delivery: the API response contains the TA output (on success) or execution logs (on failure) directly — no second HTTP call or S3 fetch required. S3 archival happens asynchronously for long-term retention.
Async output delivery: zoa-runner uploads output/logs to S3 after Job completion. The CLI fetches via GET /runs/{id}?include=output.
For per-mode dispatch, ephemeral K8s RBAC/Jobs, and output paths, see Trusted Actions — execution. API Function URL response streaming is in platform implementation — Response streaming.
Every zoa breakglass request requires --reason and runs through the shared approval workflow (shipped profiles use approval: none today). After activate, credentials are time-boxed (elevated profiles default to a 1h grant; read/write use longer catalog TTLs). AWS profiles assume a scoped IAM role via STS in the session account; kube profiles get ephemeral per-grant RBAC. Data-plane use is visible in EKS audit logs and CloudTrail, correlated as zoa-bg-<request-id> (evidence).
| Profile | Scope | Type | Credential after activate |
|---|---|---|---|
kube_read |
Kube | Read | Impersonated SA + read ClusterRole |
kube_write |
Kube | Write | Impersonated SA + write ClusterRole |
kube_elevated |
Kube | Elevated | Impersonated SA + elevated ClusterRole; secrets read + exec |
aws_read |
AWS | Read | STS → ReadOnlyAccess role |
aws_write |
AWS | Write | STS → ReadOnlyAccess role + infra reboot/stop |
aws_elevated |
AWS | Elevated | STS → PowerUser with ZOA immutability denies |
Operator guide, restrictions, and authoring: break-glass README, authoring.
| Image | Containerfile | Contents | Purpose |
|---|---|---|---|
zoa-lambda |
Containerfile |
zoa-lambda binary (UBI-minimal) |
Deployed as Lambda function (API + Worker + Access modes) |
zoa-runner |
Containerfile.runner |
zoa-runner + zoa CLI |
Runs inside K8s Jobs for async TA execution |
zoa-boundary |
Containerfile.boundary |
zoa CLI + aws/kubectl/jq + Claude Code |
ECS Fargate task for audited SRE sessions — see Boundary architecture |
See CLI Reference — Install for download instructions and checksum verification.
To build from source: make build (requires Go 1.26+).
make all # fmt → vet → lint → test → build
./bin/zoa version
make test-shell # boundary banner / entrypoint bats (optional)Operators use the installed zoa CLI and boundary sessions — see Operator workflow. API/CLI contract reference: docs/README.md.
High-level layout (see tree in-repo for full internal/ and pkg/ packages):
rosa-seaplane-zoa/
├── cmd/
│ ├── zoa/ CLI binary
│ ├── zoa-lambda/ Lambda entrypoint (access + api + worker)
│ └── zoa-runner/ Async Job runner (K8s Job entrypoint)
├── internal/ CLI, SigV4 client, ECS Exec, EKS auth, output, Access client, …
├── pkg/
│ ├── actions/ Trusted Action implementations + conformance tests
│ ├── breakglass/ Break-glass profile catalog + conformance tests
│ ├── api/ HTTP handlers (TA + break-glass + Access session plane)
│ ├── executor/ K8s SA/RBAC, sync + async execution, break-glass activate
│ ├── store/ DynamoDB (executions, sessions, break-glass, audit, targets)
│ ├── scheduler/ Reconciler, GC, session reaper, break-glass expiry
│ └── … config, metrics, handler, labels, reason, catalog, …
├── boundary/ zoa-boundary image: entrypoint, banner, home-sre skel, catalog assets
├── hack/ demo-cli.sh, boundary catalog generator, dev tools
├── tests/shell/ bats tests for boundary shell scripts
├── test/e2e/ E2E Ginkgo suite (deep + smoke)
├── ci/ CI scripts (lint, test, verify)
├── docs/ Documentation — start at docs/README.md
├── Containerfile zoa-lambda image (access + api + worker)
├── Containerfile.runner zoa-runner image
├── Containerfile.boundary zoa-boundary image (ECS Fargate)
└── Makefile
All docs: docs/README.md — operator workflow, TA authoring, API/CLI reference, shared platform/ runtime, boundary sessions.
make test # Unit tests with race detection
make test-e2e # Functional E2E (full), then monitoring E2E — needs ZOA_RC_API_URL / ZOA_MC_API_URL and RHOBS_API_URL
make test-e2e-smoke # Functional smoke (~2min), then monitoring E2E — same env varstest-e2e and test-e2e-smoke chain test/e2e-monitoring after functional tests. Other targets (test-e2e-zoa, test-e2e-monitoring, …): E2E testing.
Two conformance levels — unit on every PR (make test), E2E against live Lambdas (make test-e2e):
- Unit — break-glass (
pkg/breakglass/conformance_test.go): profile metadata, RBAC, naming, vocabulary (profiles doc). - Unit — Trusted Actions (
pkg/actions/conformance_test.go): metadata, RBAC, write safety, timeouts, parameters, per-TA unit tests, and that each TA has a matchingtest/e2e/ta_*file. - E2E — Trusted Actions (
test/e2e/conformance_test.go): live registry vsta_*specs; smoke covers kube and aws scopes. Break-glass E2E is not implemented yet.
ZOA infrastructure (Terraform) lives in rosa-seaplane. Wired from terraform/config/regional-cluster/ and terraform/config/management-cluster/:
| Module | Where used | What it deploys |
|---|---|---|
zoa |
RC | DynamoDB (executions, audit, boundary sessions, break-glass requests), S3 artifacts, KMS, ECR |
zoa-lambda |
Each RC and MC VPC | API + Worker Lambdas, boundary ECS, break-glass IAM roles (breakglass_iam.tf), EventBridge, EKS access; on RC only, Access Lambda shell (access-trust-role.tf) |
zoa-access |
RC only | Access Lambda (Function URL), invoker role, session-plane IAM (ecs:RunTask into per-VPC boundary, DynamoDB sessions + break-glass approve/reject, SSM targets) — does not run the boundary container |
MC stacks use zoa-lambda only and assume into RC for data; Access Lambda stays in the RC account. See module READMEs under terraform/modules/zoa-lambda/ and zoa-access/.
- ZOA Architecture ADR — platform context and integration