Skip to content

Arka Roadmap (v0.1 → v1.0) ​

This document defines the engineering milestones for Arka — a clean-room, cloud-native universal artifact registry engineered as a drop-in replacement for Sonatype Nexus Repository 3.

All future work MUST comply with the invariants and playbooks in AGENTS.md and the system boundaries in ARCHITECTURE.md.


Milestone Overview ​

VersionThemeStatusTarget Outcome
v0.1Clean-Room Micro-Kernel & Core ParityDone9 formats, RustFS/S3 storage, Nexus 3 migration, enterprise foundation, Linear Console, 9 archtest guardrails
v0.2Production Protocol Fidelity & PerformanceDoneReal CLI golden regression matrix (9/9), RustFS 302 presigned offloading, Range/ETag/304, smart proxy TTL, Prometheus & OTel
v0.3Cloud-Native Operations & Horizontal HADoneK8s Helm/Kustomize in deploy/, multi-replica advisory-locked jobs, multi-pool CRUD & quotas, async job center
v0.4Enterprise Supply Chain & Format Wave 3DoneVulnerability scanning hooks, SBOM/Cosign verification, Teams/LDAP RBAC, NuGet/APT/RPM/AI Model formats
v0.5–v0.9Cutover Fidelity, 26 Formats & Enterprise ParityDone26/26 official CLIs verified, generated SDK/CLI, Nexus 3 cutover workbench, Portable CSEL, outbound proxy, global search
v1.0.0-rc.1Unified Release, GA Ops Hardening & Offline VerificationDoneDual-arch GHCR images, OCI Helm Chart, standalone arkactl (Unix + Windows), Cosign keyless + air-gapped verification, Scanner two-stage DB rotation & DB metrics
v1.0.0General Availability (GA) Reliability & Scale HardeningDoneGeneration-isolated Blob GC & backend_identity, cross-replica O(1) hot index cache & batch policy, Azure Blob staging/GC/capabilities, Transactional Webhook Outbox, Proxy 304 CAS, API Token scope ceilings, 26-format CI release gate & Azurite live E2E
v1.1Enterprise Supply Chain, Keyless CI & Multi-Cloud ParityDoneSBOM License Gate, CI Workload OIDC token exchange (0032), OCI 1.1 Referrers & ORAS, GCS storage pools, Artifactory & Harbor v2.0 migration drivers, Custom Properties, Build Info & Immutable Build Promotion (0033), full Linear Console UI
v1.2+Multi-Region Distribution & Enterprise FederationPlannedOfficial Terraform Provider, cross-region replication & Edge nodes, SAML 2.0 / SCIM 2.0, cross-pool live migration

✅ v0.1 — Clean-Room Foundation (Completed) ​

  • [x] Format-Agnostic Micro-Kernel: Hosted / Proxy / Group repository engine, SHA-256 content-addressed deduplication, singleflight upstream proxy, in-process EventBus.
  • [x] Code-First Single-Version API (/api/v1): Huma v2 over net/http, OpenAPI 3.1 SSOT, shared pkg/api & pkg/client, arkactl CLI, generated TypeScript SDK + Zod schemas.
  • [x] 9 Format Plugins (internal/formats/*): raw, maven (with maven-metadata.xml synthesis & Group merge), npm (with /-/ping, /-/whoami, /-/v1/search, dist-tags), pypi, oci (with /v2/token Bearer handshake), go, cargo, helm, conan.
  • [x] Storage & Persistence: PostgreSQL-only (pgx/v5) with advisory-locked migrations (0001_init.sql, 0002_enterprise.sql); production-ready RustFS / S3 SigV4 BlobStore (auto-bucket, Path/Virtual-Hosted style, dedup, Multipart Upload, PresignGet) + local FS driver.
  • [x] Nexus 3 Migration Engine: Discovery, batch provisioning, resumable checksum-verified sync, pull-through Proxy → Hosted zero-downtime cutover.
  • [x] Enterprise Foundation: Signed Webhooks, Retention policies + race-safe two-phase Blob GC, OIDC PKCE SSO, RBAC grants, Anonymous Public Portal.
  • [x] Console & Governance: Linear Precision Minimalism React 19 UI (Light/Dark/System, zh-CN/en-US, ⌘K, Radix/custom inputs, simple-icons), 3-stage Distroless Dockerfile, GitHub Actions CI, AGENTS.md, and 9 automated internal/archtest guardrails.

✅ v0.2 — Production Protocol Fidelity & Performance Hardening (Completed) ​

Goal: Close the gap between unit-tested handlers and real-world CI/CD clients under high load.

1. Real Package Manager CLI Golden Matrix (CI) ​

  • [x] Added containerized & native integration harness (scripts/cli-matrix.sh, scripts/cli-matrix.Dockerfile, .github/workflows/cli-matrix.yml, make test-cli-matrix) verified 9/9 against a live arka + PostgreSQL 16 + RustFS 1.0.4 stack:
    • [x] curl (Raw upload/download, -L 302 presign redirect, -r Range 206, If-None-Match 304)
    • [x] mvn deploy & mvn dependency:get (SNAPSHOT + Release + Group)
    • [x] npm publish, npm install, npm dist-tag, npm search
    • [x] twine upload & pip install --index-url
    • [x] crane push/pull (multi-layer OCI image + /v2/token + 302 presign pull)
    • [x] go via GOPROXY
    • [x] cargo publish & cargo fetch (Sparse Index + native arkat_* token auth)
    • [x] helm package / upload / helm repo add & helm pull
    • [x] conan create, conan upload, conan install (v2 + session token auth + 0-byte S3 PUT fix)

2. RustFS / S3 302 Presigned Download Offloading ​

  • [x] Wired ARKA_STORAGE_PRESIGN_REDIRECT, ARKA_STORAGE_PRESIGN_TTL, ARKA_STORAGE_PRESIGN_MIN_BYTES, and ARKA_S3_PUBLIC_ENDPOINT into spi.AssetServerRuntime (Kernel.ServeAsset).
  • [x] Enabled per-format opt-in for binary/package blobs while preserving fail-closed RBAC checks, asset.download.presign audit events, and Prometheus counters before issuing 302 Found.
  • [x] Verified end-to-end against live RustFS with curl -L, crane, and internal/e2e/v02_performance_e2e_test.go.

3. HTTP Caching, Range & Smart Proxy TTL ​

  • [x] Implemented HTTP Range / 206 Partial Content / 416 (Accept-Ranges: bytes, If-Range, storage-native RangeBlobStore.OpenRange) and conditional If-None-Match / 304 Not Modified across all 9 format drivers.
  • [x] Added configurable Proxy cache policies (internal/core/proxy_cache.go, pkg/api, Console Settings & Create Dialog):
    • [x] Singleflight coalescing and stale-if-error fallback.
    • [x] Negative caching (negativeCacheTtlSeconds for upstream 404/410).
    • [x] Split metadata vs. artifact TTL (metadataCacheTtlSeconds vs. cacheTtlSeconds) with conditional upstream If-None-Match 304 revalidation.

4. Observability Baseline ​

  • [x] Exposed zero-dependency Prometheus /metrics (with optional ARKA_METRICS_LISTEN_ADDR and ARKA_METRICS_AUTH_TOKEN) covering HTTP request/latency histograms by format & repo type, proxy cache outcomes & upstream latency, BlobStore ops/errors, 302 presign / 206 Range / 304 counters, live per-repository & pool storage gauges, and Blob GC reclaimed bytes.
  • [x] Added zero-dependency W3C traceparent propagation & optional async OTLP/HTTP JSON tracing (OTEL_EXPORTER_OTLP_ENDPOINT) with WaitGroup-tracked graceful shutdown.
  • [x] Added GET /api/v1/observability/status, arkactl observability, and Console Platform Observability panel.

✅ v0.3 — Cloud-Native Operations & Horizontal HA (Completed) ​

Goal: Make Arka effortless to deploy, scale horizontally, and operate in production Kubernetes clusters.

1. Kubernetes & Helm Delivery (deploy/) ​

  • [x] Populated deploy/helm/arka/, deploy/kustomize/, deploy/README.md, and scripts/verify-deploy.sh (make verify-deploy):
    • [x] Stateless multi-replica Deployment + PodDisruptionBudget + HorizontalPodAutoscaler (autoscaling/v2) + Downward API ARKA_REPLICA_ID
    • [x] arka migrate pre-upgrade Helm Hook (migration.mode: hook) and InitContainer (migration.mode: initContainer)
    • [x] External PostgreSQL & RustFS/S3 Secret wiring (existingSecret or chart-managed) + values-dev.yaml bundled dev dependencies profile
    • [x] Liveness (/api/v1/health) and live dependency Readiness (/api/v1/ready: PostgreSQL + default BlobStore) probes, Prometheus ServiceMonitor, and large-upload Ingress annotations (proxy-body-size: "0", proxy-request-buffering: "off").

2. Multi-Replica Distributed Job Coordination ​

  • [x] Added PostgreSQL 0003_operations_ha.sql (async_jobs + scheduler_leases) and tracked worker pool (internal/jobs/worker.go):
    • [x] Retention & Blob GC protected by PostgreSQL session advisory locks (pg_try_advisory_lock) and cluster scheduler leases (scheduler_leases) so N stateless replicas never duplicate maintenance sweeps.
    • [x] Webhook delivery, Nexus migration sync, and maintenance jobs claimed via SELECT ... FOR UPDATE SKIP LOCKED with lease heartbeats, expired-lease recovery, exponential backoff, dead-letter queue visibility, and manual retry/cancel.

3. Multi-Storage-Pool Management & Quotas ​

  • [x] Added /api/v1/storage-pools full CRUD (GET/POST/PATCH/DELETE/POST .../test) with secret redaction & preservation on patch, cross-replica hot-reload, default pool switching, usage stats, arkactl pools, and Console Storage Pools page (/storage-pools).
  • [x] Added per-repository soft warning (quotaWarnPercent) and atomic hard capacity quotas (quotaBytes) enforced transactionally on upload (HTTP 507 quota_exceeded) with audit events and Console quota bars/settings.

4. Async Job & Maintenance Center ​

  • [x] Added /api/v1/jobs (list/get/enqueue/retry/cancel), arkactl jobs, spi.ReindexableFormat (implemented for Maven maven-metadata.xml and Helm index.yaml), and Console Jobs & Maintenance Center (/jobs).

✅ v0.4 — Enterprise Supply Chain & Format Wave 3 (Completed) ​

Goal: Enterprise security governance and broader ecosystem coverage without complicating the micro-kernel.

1. Software Supply Chain Security & Signing (Playbook E) ✅ Completed ​

  • [x] Event-driven Vulnerability Scanning & Download Quarantine (0005_supply_chain_security.sql, internal/security/, internal/jobs/worker.go):
    • [x] Subscribes to spi.EventBus (asset.published) to enqueue durable vulnerability_scan jobs (builtin, trivy, and grype adapters) and persists structured CVE findings in PostgreSQL.
    • [x] Enforces fail-closed spi.DownloadGuard before GET/HEAD/Range/304 and RustFS 302 presign redirects (HTTP 403 quarantined) with severity thresholds, blockUnscanned, requireSignature, and auditable break-glass quarantine_allowlists.
  • [x] SBOM & Provenance: Validates and stores SPDX / CycloneDX SBOM documents (asset_sboms) and verifies Cosign SimpleSigning / in-toto DSSE / PGP signatures (asset_signatures).
  • [x] Pure-Go OpenPGP Repository Signing: Zero-dep RFC 4880 v4 RSA-SHA256 signing (internal/signing/) wired via spi.MetadataSigner for APT (InRelease, Release.gpg, key.gpg) and RPM (repomd.xml.asc, repomd.xml.key), with arkactl security CLI and Console Security / Signing Keys UI.

2. Enterprise Identity & Organization RBAC ✅ Completed ​

  • [x] Added Teams / Groups (0004_enterprise_rbac_ldap.sql, /api/v1/teams, arkactl teams, Console Access page) with live role inheritance (immediate privilege updates on membership changes) and automatic OIDC / LDAP external group synchronization that preserves manual team memberships.
  • [x] Added pure-Go RFC 4511 LDAP / Active Directory authentication provider (internal/ldapclient/, internal/auth/ldap.go, /api/v1/auth/ldap/providers, arkactl ldap, Console Platform page) supporting ldap://, StartTLS, ldaps://, RFC 4515 filter escaping, service bind + user DN re-bind, memberOf & groupBaseDn lookup, bind-password redaction/preservation, anti-hijack protection for local accounts, and live connectivity tests.
  • [x] Added fine-grained prefix / coordinate-scoped grants (repository_grants user/team mutually exclusive grants + path_prefix enforced fail-closed across all 15 formats via micro-kernel scope matching, arkactl grants, and Console Repository Settings).

3. Format Plugins Wave 3 (Playbook A — Zero Kernel Changes) ✅ Completed ​

  • [x] Implemented all 6 Wave 3 formats strictly as self-contained internal/formats/<name> plugins (zero new go.mod dependencies, full Hosted/Proxy/Group, RustFS 302 presign offloading, Range/ETag, official simple-icons marks, and live PostgreSQL + RustFS E2E verification):
    • [x] NuGet v3 (internal/formats/nuget/, X-NuGet-ApiKey auth, .nupkg/.nuspec parsing, flatcontainer/registration/search, ReindexRepository)
    • [x] APT (Debian/Ubuntu) (internal/formats/apt/, pure-Go .deb ar + gzip/uncompressed control.tar parser, Packages/Packages.gz/Release with 404 on unsigned InRelease, ReindexRepository; GPG clearsigning tracked with supply-chain signing)
    • [x] RPM (YUM/DNF) (internal/formats/rpm/, pure-Go RPM v3/v4 binary header parser, repomd.xml/primary/filelists/other.xml.gz, ReindexRepository; GPG repomd.xml.asc signing tracked with supply-chain signing)
    • [x] Composer (internal/formats/composer/, Packagist v2 packages.json & p2/{vendor}/{pkg}.json, same-origin dist caching + cross-origin 302, ReindexRepository)
    • [x] RubyGems (internal/formats/rubygems/, Compact Index versions/info/{name} + Ruby Marshal 4.8 specs.4.8.gz & Hosted/Group quick/Marshal.4.8/*.gemspec.rz, ReindexRepository)
    • [x] AI Model / HuggingFace Hub (internal/formats/huggingface/, streaming PUT upload, hf download, api/models search proxy + tree + whoami-v2, Git LFS Batch, commit-pinned immutable caching vs branch revalidation, RustFS 302 presign & Range 206 resume).

✅ v0.5 — Cutover Parity, Scale Benchmarks & Operations Foundation (Completed) ​

  • [x] Scale & Performance Verification: Published reproducible benchmark suite (scripts/bench.sh, internal/e2e/v10_ga_scale_cutover_e2e_test.go) & tuning guide (docs/PERFORMANCE.md) verified at 1,000 repositories on real PostgreSQL 16 + RustFS (admin list 60.6ms, lookup 0.21ms, 16-concurrency protocol throughput 652 ops/s, scoped RBAC 33,042 ops/s).
  • [x] Zero-Downtime Cutover Toolkit: Added POST /api/v1/migrations/sources/{id}/verify, arkactl migration verify --shadow-read N --json (CI exit-code gating), and Console Verify Parity cutover audit panel (MigrationsPage.tsx) for checksum parity auditing + live byte-stream shadow-read validation and documented instant rollback.
  • [x] Operations Handbook & /api/v1 Contract Gate: Published docs/OPERATIONS.md (automated scripts/backup-drill.sh PostgreSQL + RustFS restore drill, secret rotation SOP, Nexus 3 cutover/rollback playbook) and docs/API_STABILITY.md enforced by automated OpenAPI contract guardrails (internal/archtest/openapi_compat_test.go).

✅ v0.6–v0.9 — Pre-GA Closure Program (Completed) ​

  • [x] v0.6 · Zero-Drift Contract-Generated SDK & Rebuilt arkactl CLI: Auto-generated Go /api/v1 SDK (internal/apigen/, cmd/arkagen/, pkg/client/openapi_gen.go + operations_gen.go) covering 100% of OpenAPI operations (zero hand-written /api/v1/* routes), rebuilt Cobra CLI (internal/cli/) covering 100% of non-browser management APIs with multi-profile ~/.config/arka/config.json, arkactl api list|call, 4 shell completions, and strict CI guardrails (internal/archtest/cli_contract_test.go).
  • [x] v0.7 · Nexus 3 Multi-Format Migration Fidelity & Real-Layout E2E Matrix: Added micro-kernel spi.MigrationImportPlanner and spi.MigrationPreflightDriver, fixed OCI v2/ path translation, APT/RPM/NuGet/Helm/PyPI/Composer/RubyGems metadata skipping, canonical checksum dedupe & strict cutover parity, added POST /api/v1/migrations/sources/{id}/preflight + preserve_topology provisioning, and verified all 15+ formats end-to-end on real PostgreSQL 16 + RustFS (internal/e2e/migration_formats_e2e_test.go).
  • [x] v0.8 · Format Wave 4 & Wave 5 (26 Self-Contained Formats): Added 11 zero-new-dependency plugins — Wave 4: alpine (APK), conda, terraform (Provider & Module Registry), ohpm (OpenHarmony), gitlfs, pub (Dart/Flutter v2); Wave 5: swift (SE-0292), cocoapods (CDN Trunk), cran (R), ansible (Galaxy v3), hex (Elixir/Erlang) — all with official simple-icons brand marks and live PostgreSQL 16 + RustFS E2E (internal/e2e/formats_wave4_e2e_test.go, internal/e2e/formats_wave5_e2e_test.go).
  • [x] v0.9 · Enterprise Parity: Added pure-Go per-repository outbound HTTP/HTTPS/SOCKS5/SOCKS5h proxy (internal/core/outbound_proxy.go), RBAC-filtered cross-repository global search (GET /api/v1/search, arkactl search, Console /search page), RE2 regex & minimum-size retention rules (0006_enterprise_parity.sql), and production Grafana dashboard (deploy/grafana/arka-dashboard.json).

✅ v1.0.0 — General Availability (Completed) ​

  • [x] Unified Release & Air-Gap Verification: Dual-arch ghcr.io/ccsert/arka & arka-scanner images (v1.0.0 promoted to :latest), OCI Helm Chart (oci://ghcr.io/ccsert/charts/arka), standalone Unix + Windows arkactl archives, Cosign Keyless OIDC signatures + release-manifest.json, and air-gapped offline verification (scripts/verify-release-offline.sh).
  • [x] Storage Reliability, Generation-Isolated GC & Azure Parity (0022–0025, 0027): Immutable blob generation keys, PostgreSQL write-intent leases, cross-pool backend_identity isolation across S3/Azure/FS, full Azure Blob chunked upload staging & paginated generation sweep, and explicit StoragePool.Capabilities (uploadStaging, generationCleanup, presignedDownload).
  • [x] Cross-Replica Hot Index Cache, Proxy 304 CAS & Transactional Outbox (0026, 0028–0031): O(1) catalog revision cache + batch download-policy evaluation for APT/RPM/PyPI, singleflight Proxy 304 CAS with final upstream URL SHA-256 fingerprinting, transactional Webhook Outbox with stable event/attempt IDs, and bounded phased shutdown with /api/v1/health/live + fail-closed ARKA_METRICS_REQUIRE_AUTH.
  • [x] Supply Chain, Security & Protocol Hardening: Two-stage scanner.dbUpdater CronJob rotation + 96h DB freshness gauges, SBOM License Compliance Gate (off/audit/enforce, pure-Go SPDX 2.3, expiring exemptions), API Token scope ceilings (read/write/admin), OCI anonymous cold pulls & host-mapped registry routes, APT control.tar.xz/control.tar.zst, and dynamic 26-format Go + Console TypeScript AST guardrails.
  • [x] CI 26-Format Release Gate & Live Azurite Verification: PR Fast 9 + path-sharded suites, full 26-format release matrix with four-state reporting (passed/failed/skipped/missing_tool), live Azurite 3.38.0 E2E in CI, and traceable mixed-upload/hot-index benchmarks.

Working on a Roadmap Item (Agent Checklist) ​

  1. Pick one cohesive vertical slice from the current milestone (do not mix unrelated milestones in a single PR).
  2. Follow the matching Playbook (A–E) in AGENTS.md.
  3. Update checkboxes in this file once the slice is verified and merged.
  4. Run make verify (plus make test-e2e / make test-s3 when touching persistence, protocols, or storage) before committing.

Released under the Apache 2.0 License.