cloudivisiondocs
cloudivision documentation

Purpose

This plan turns the v0.2 roadmap and prioritized backlog into an executable release sequence. v0.2 is a focused reliability increment: prove one production-shaped path from an authenticated GitHub event to an immutable registry digest and an observable GitOps deployment.

Work is delivered as complete vertical slices. An item is complete only when its CRD/API contract, runtime behavior, tests, documentation, and user-facing diagnostics agree.

Goals

  1. Reliable image build: rootless BuildKit validates inputs, reports bounded failures, and remains optional for non-image pipelines.
  2. Registry push with digest capture: private-registry credentials remain secret and a successful BuildRun records the pushed digest.
  3. Production-ready GitHub webhooks: signed push and pull-request events are filtered, replay-resistant, and idempotent across API restarts.
  4. GitOps release MVP: a Release updates an allowed Helm values path with an immutable image and reports Argo CD convergence or a bounded failure.
  5. Better Angular debugging UX: source, build, push, policy, GitOps, and deployment stages are visible without reading controller logs.
  6. Security baseline enforcement: least-privilege RBAC, safe Pod defaults, redaction, OIDC authorization, and documented egress are release gates.

Delivery rules

Epic 1 — Image build and registry

Problem and user value

v0.1 did not prove rootless BuildKit against an authenticated registry. Tags alone are mutable and incomplete push status cannot identify the artifact to deploy. This epic lets a team configure one scoped credential and produce an auditable immutable digest.

Technical approach

Work items

  1. IMG-01 — BuildKit adapter hardening: validation, command generation, optional settings, metadata digest parsing, and clear failure reasons.
  2. IMG-02 — Registry provider and credentials: provider contract, secret parsing/projection, health reporting, and redaction.
  3. IMG-03 — Tag and immutability policy: templates, sanitization, latest policy, digest status, and production digest enforcement.
  4. IMG-04 — Registry integration fixture: authenticated rootless push, transient failure recovery, and remote digest verification.

Required CRD and API changes

Test plan and acceptance criteria

Risks and dependencies

Rootless snapshotters vary, so availability must fail early with documented supported modes. Multi-platform output may be an index digest; tests must pin the recorded meaning. Retries use the same content identity so an existing digest is success. IMG-01 precedes IMG-02/03; all precede IMG-04 and digest-based GitOps work.

Epic 2 — Webhooks

Problem and user value

Signature checks exist, but payload bounds, event normalization, branch policy, durable delivery claims, and restart behavior are not production-proven. This epic ensures one valid GitHub event creates at most one correctly attributed BuildRun and rejected events create none.

Technical approach

Work items

  1. WH-01 — HTTP security boundary: signature, body limit, stable responses, safe logging, ping, and parser error mapping.
  2. WH-02 — Event filtering: push/PR metadata, branch and event filters, and explicit ignored responses.
  3. WH-03 — Durable delivery claims: atomic interface, PostgreSQL storage and migration, TTL cleanup, and restart test.
  4. WH-04 — Audit and conformance: required events, bounded metrics, fixtures, redelivery tests, and exact GitHub setup documentation.

Required CRD and API changes

Test plan and acceptance criteria

Risks and dependencies

Fail closed if durable idempotency is configured but unavailable. Return a stable ignored reason for surprising filters. Size delivery retention from documented redelivery behavior. WH-01 precedes the epic; WH-02 and WH-03 may run in parallel; both precede WH-04.

Epic 3 — GitOps release

Problem and user value

v0.1 did not commit an immutable image to a real writable GitOps repository or observe real Argo CD health. This epic lets users promote one exact digest and distinguish commit, synchronization, health, and timeout failures.

Technical approach

Work items

  1. GITOPS-01 — Digest-only Helm values update: allowed file/key, one image mutation, and commit checkpoint.
  2. GITOPS-02 — Idempotent conflict handling: reuse commits and report actionable conflicts.
  3. GITOPS-03 — Argo CD health reader: read-only discovery, state mapping, deadline, provider errors, and least-privilege RBAC.
  4. GITOPS-04 — External conformance: writable repository plus Argo CD success, degraded, unavailable, and timeout scenarios.

Required CRD and API changes

Test plan and acceptance criteria

Risks and dependencies

Limit YAML mutation to configured paths/keys. Treat provider state monotonically and preserve observations. Resolve uncertain Git outcomes before another commit. GITOPS-01 requires Epic 1; GITOPS-02 builds on it; GITOPS-04 requires all three implementation items.

Epic 4 — Runner reliability

Problem and user value

The runner coordinates untrusted code, BuildKit, credentials, cancellation, timeouts, and status. Users need bounded, diagnosable failure and safe transient recovery without making non-image pipelines fragile.

Technical approach

Work items

  1. RUN-01 — Stage/error contract: stable reasons, conditions, deadlines, and redaction boundaries.
  2. RUN-02 — Cancellation and bounded retries: context propagation and tested Git/registry retry policy.
  3. RUN-03 — Workspace lifecycle: safe paths, clean context and cleanup, with optional isolated cache only.
  4. RUN-04 — Reliability conformance: timeout, cancellation, pod loss, transient push, status conflict, and optional BuildKit.

Required CRD and API changes

Test plan and acceptance criteria

Risks and dependencies

Multiple retry layers can multiply work, so attempt ownership is tested. Typed errors separate sanitized public messages from wrapped causes. Persist bounded evidence before cleanup. RUN-01 precedes runner-facing Epics 1 and 5; RUN-02 uses the Git/registry error taxonomy; RUN-04 closes after Epics 1 and 2.

Epic 5 — UI/UX

Problem and user value

Existing pages expose resources but not the complete authenticated source-to- deployment path. A user must be able to validate setup, run a build, copy its digest, follow the Release, and diagnose stage-specific failure in Angular.

Technical approach

Work items

  1. UI-01 — Shared stage model: map backend conditions without guessing.
  2. UI-02 — BuildRun detail: tag/digest, stage errors, bounded logs, correlation IDs, and safe actions.
  3. UI-03 — Release detail: BuildRun/Git links, provider state, deadline, and deployment failure.
  4. UI-04 — Onboarding readiness: webhook and registry checks with forbidden and degraded handling.

Required CRD and API changes

No UI-only CRD fields. Consume Epics 1–4 status/error contracts. Add narrow, authorized, redacted readiness endpoints only when existing provider-health APIs cannot serve the flow. Require pagination and explicit log limits.

Test plan and acceptance criteria

Risks and dependencies

Render only persisted state. Authorize/rate-limit readiness checks so they are not credential probes. Use backoff and stop terminal polling. UI-01 waits for the shared condition contract; UI-02 needs digest status; UI-03 needs Release provider status; UI-04 needs registry and webhook health.

Epic 6 — Security

Problem and user value

Safe defaults exist, but production OIDC, provider egress, credential redaction, used-verb RBAC, and dependency findings are not proven as one baseline. Operators need a defensible install and exact minimum permissions.

Technical approach

Work items

  1. SEC-01 — Secret/redaction conformance across registry, webhook, Git, OIDC, API, audit, logs, status, events, and metrics.
  2. SEC-02 — RBAC used-verb review proving namespace scope and no broad Secret or target-workload access.
  3. SEC-03 — OIDC conformance for valid, forbidden, cross-project, expired, and invalid tokens.
  4. SEC-04 — NetworkPolicy baseline for required and denied egress.
  5. SEC-05 — Dependency triage with remediation and exception records.

Required CRD and API changes

Use namespaced Secret references instead of secret-valued CRD fields. Validate ownership/scope for each reference. Structured denials may name the cause but must not echo tokens, headers, Docker config, credential-bearing URLs, or payloads.

Test plan and acceptance criteria

Risks and dependencies

Provider destinations change, so network examples are topology-specific. Used-verb tests protect RBAC reductions. Findings are classified by shipped exposure with owner and expiry. SEC-01 participates in every credential epic; SEC-02 follows final API calls; SEC-03/04 share conformance infrastructure; SEC-05 starts early and closes at release.

Epic 7 — Docs and release

Problem and user value

The release is incomplete until installation, upgrade, operations, security, limitations, artifacts, and clean-cluster evidence describe the same supported path. Operators must be able to reproduce it and assess known risk.

Technical approach

Work items

  1. REL-01 — Feature documentation: rootless build, registry credentials, image tagging, webhook setup/security, GitOps, UI, and failure runbooks.
  2. REL-02 — v0.1-to-v0.2 upgrade: preserve CRs and prove pre/post-upgrade reconciliation with rollback guidance.
  3. REL-03 — External conformance: all required providers and security paths.
  4. REL-04 — Scale record: terminal counts, p50/p95 API/log latency, and resource use for 10 and 100 BuildRuns.
  5. REL-05 — Release gate/package: evidence, artifacts, notes, and ship/no-ship decision.

Required CRD and API changes

Document every added/defaulted/deprecated field and stable error/condition in the API reference and OpenAPI. Include behavioral migration notes even while v1alpha1 remains the storage version. Do not add hidden release-only state.

Test plan and acceptance criteria

Risks and dependencies

Pin external fixtures and retain diagnostics to separate flake from product failure. Run upgrade smoke continuously, not only at freeze. Test doc links and examples. REL-01 is continuous; REL-02 follows schema stabilization; REL-03 needs Epics 1–3 and 6; REL-04 needs stable runtime; REL-05 needs all must-have criteria.

Dependency order and milestone exits

  1. Contract baseline: RUN-01, IMG-01, WH-01, and SEC-01 define stage, error, credential, and webhook boundaries.
  2. Trusted input and artifact: IMG-02/03 and WH-02/03 produce authenticated, filtered, idempotent inputs and immutable output.
  3. Milestone 1: IMG-04 and WH-04 prove that a signed filtered delivery creates at most one BuildRun and a remotely verified digest.
  4. GitOps core: GITOPS-01/02 consume the digest and GITOPS-03 observes deployment state.
  5. Milestone 2: GITOPS-04 proves one digest-only change reaches a terminal Release based on real Argo CD health; UI-01/02/03 can then stabilize.
  6. Production workflow: UI-04, RUN-02/03/04, and SEC-02/03/04/05 close onboarding, runtime, and security gaps.
  7. Milestone 3/release: REL-02/03/04/05 pass clean-cluster, OIDC, network, upgrade, external integration, dependency, and 100-BuildRun gates.

Explicitly excluded from v0.2

Provider skeletons may reserve future interfaces, but they are not supported v0.2 providers and must not delay the critical path.

Definition of done

An issue or epic is done only when its acceptance criteria pass; CRDs, generated manifests, Helm CRDs, OpenAPI, API DTOs, and UI agree; named unit, reconciliation, security, and integration tests pass; secret and untrusted-code handling matches the threat model; documentation is updated; and limitations or deferrals appear in the release notes or backlog.

Start typing to search the documentation.