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
| Version | Theme | Status | Target Outcome |
|---|---|---|---|
| v0.1 | Clean-Room Micro-Kernel & Core Parity | Done | 9 formats, RustFS/S3 storage, Nexus 3 migration, enterprise foundation, Linear Console, 9 archtest guardrails |
| v0.2 | Production Protocol Fidelity & Performance | Done | Real CLI golden regression matrix (9/9), RustFS 302 presigned offloading, Range/ETag/304, smart proxy TTL, Prometheus & OTel |
| v0.3 | Cloud-Native Operations & Horizontal HA | Done | K8s Helm/Kustomize in deploy/, multi-replica advisory-locked jobs, multi-pool CRUD & quotas, async job center |
| v0.4 | Enterprise Supply Chain & Format Wave 3 | Done | Vulnerability scanning hooks, SBOM/Cosign verification, Teams/LDAP RBAC, NuGet/APT/RPM/AI Model formats |
| v0.5–v0.9 | Cutover Fidelity, 26 Formats & Enterprise Parity | Done | 26/26 official CLIs verified, generated SDK/CLI, Nexus 3 cutover workbench, Portable CSEL, outbound proxy, global search |
| v1.0.0-rc.1 | Unified Release, GA Ops Hardening & Offline Verification | Done | Dual-arch GHCR images, OCI Helm Chart, standalone arkactl (Unix + Windows), Cosign keyless + air-gapped verification, Scanner two-stage DB rotation & DB metrics |
| v1.0.0 | General Availability (GA) Reliability & Scale Hardening | Done | Generation-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.1 | Enterprise Supply Chain, Keyless CI & Multi-Cloud Parity | Done | SBOM 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 Federation | Planned | Official 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 overnet/http, OpenAPI 3.1 SSOT, sharedpkg/api&pkg/client,arkactlCLI, generated TypeScript SDK + Zod schemas. - [x] 9 Format Plugins (
internal/formats/*):raw,maven(withmaven-metadata.xmlsynthesis & Group merge),npm(with/-/ping,/-/whoami,/-/v1/search,dist-tags),pypi,oci(with/v2/tokenBearer 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 DistrolessDockerfile, GitHub Actions CI,AGENTS.md, and 9 automatedinternal/archtestguardrails.
✅ 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 livearka+ PostgreSQL 16 + RustFS 1.0.4 stack:- [x]
curl(Raw upload/download,-L302 presign redirect,-rRange 206,If-None-Match304) - [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]
goviaGOPROXY - [x]
cargo publish&cargo fetch(Sparse Index + nativearkat_*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)
- [x]
2. RustFS / S3 302 Presigned Download Offloading
- [x] Wired
ARKA_STORAGE_PRESIGN_REDIRECT,ARKA_STORAGE_PRESIGN_TTL,ARKA_STORAGE_PRESIGN_MIN_BYTES, andARKA_S3_PUBLIC_ENDPOINTintospi.AssetServerRuntime(Kernel.ServeAsset). - [x] Enabled per-format opt-in for binary/package blobs while preserving fail-closed RBAC checks,
asset.download.presignaudit events, and Prometheus counters before issuing302 Found. - [x] Verified end-to-end against live RustFS with
curl -L,crane, andinternal/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-nativeRangeBlobStore.OpenRange) and conditionalIf-None-Match/304 Not Modifiedacross 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 (
negativeCacheTtlSecondsfor upstream404/410). - [x] Split metadata vs. artifact TTL (
metadataCacheTtlSecondsvs.cacheTtlSeconds) with conditional upstreamIf-None-Match304revalidation.
4. Observability Baseline
- [x] Exposed zero-dependency Prometheus
/metrics(with optionalARKA_METRICS_LISTEN_ADDRandARKA_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
traceparentpropagation & 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, andscripts/verify-deploy.sh(make verify-deploy):- [x] Stateless multi-replica
Deployment+PodDisruptionBudget+HorizontalPodAutoscaler(autoscaling/v2) + Downward APIARKA_REPLICA_ID - [x]
arka migratepre-upgrade Helm Hook (migration.mode: hook) and InitContainer (migration.mode: initContainer) - [x] External PostgreSQL & RustFS/S3 Secret wiring (
existingSecretor chart-managed) +values-dev.yamlbundled dev dependencies profile - [x] Liveness (
/api/v1/health) and live dependency Readiness (/api/v1/ready: PostgreSQL + default BlobStore) probes, PrometheusServiceMonitor, and large-upload Ingress annotations (proxy-body-size: "0",proxy-request-buffering: "off").
- [x] Stateless multi-replica
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 LOCKEDwith lease heartbeats, expired-lease recovery, exponential backoff, dead-letter queue visibility, and manual retry/cancel.
- [x] Retention & Blob GC protected by PostgreSQL session advisory locks (
3. Multi-Storage-Pool Management & Quotas
- [x] Added
/api/v1/storage-poolsfull 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 Mavenmaven-metadata.xmland Helmindex.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 durablevulnerability_scanjobs (builtin,trivy, andgrypeadapters) and persists structured CVE findings in PostgreSQL. - [x] Enforces fail-closed
spi.DownloadGuardbefore GET/HEAD/Range/304 and RustFS 302 presign redirects (HTTP 403 quarantined) with severity thresholds,blockUnscanned,requireSignature, and auditable break-glassquarantine_allowlists.
- [x] Subscribes to
- [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 viaspi.MetadataSignerfor APT (InRelease,Release.gpg,key.gpg) and RPM (repomd.xml.asc,repomd.xml.key), witharkactl securityCLI 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) supportingldap://, StartTLS,ldaps://, RFC 4515 filter escaping, service bind + user DN re-bind,memberOf&groupBaseDnlookup, bind-password redaction/preservation, anti-hijack protection for local accounts, and live connectivity tests. - [x] Added fine-grained prefix / coordinate-scoped grants (
repository_grantsuser/team mutually exclusive grants +path_prefixenforced 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 newgo.moddependencies, full Hosted/Proxy/Group, RustFS 302 presign offloading, Range/ETag, officialsimple-iconsmarks, and live PostgreSQL + RustFS E2E verification):- [x] NuGet v3 (
internal/formats/nuget/,X-NuGet-ApiKeyauth,.nupkg/.nuspecparsing, flatcontainer/registration/search,ReindexRepository) - [x] APT (Debian/Ubuntu) (
internal/formats/apt/, pure-Go.debar+ gzip/uncompressedcontrol.tarparser,Packages/Packages.gz/Releasewith404on unsignedInRelease,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; GPGrepomd.xml.ascsigning tracked with supply-chain signing) - [x] Composer (
internal/formats/composer/, Packagist v2packages.json&p2/{vendor}/{pkg}.json, same-origin dist caching + cross-origin 302,ReindexRepository) - [x] RubyGems (
internal/formats/rubygems/, Compact Indexversions/info/{name}+ Ruby Marshal 4.8specs.4.8.gz& Hosted/Groupquick/Marshal.4.8/*.gemspec.rz,ReindexRepository) - [x] AI Model / HuggingFace Hub (
internal/formats/huggingface/, streamingPUTupload,hf download,api/modelssearch proxy +tree+whoami-v2, Git LFS Batch, commit-pinned immutable caching vs branch revalidation, RustFS 302 presign & Range 206 resume).
- [x] NuGet v3 (
✅ 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 list60.6ms, lookup0.21ms, 16-concurrency protocol throughput652 ops/s, scoped RBAC33,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/v1Contract Gate: Published docs/OPERATIONS.md (automatedscripts/backup-drill.shPostgreSQL + 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
arkactlCLI: Auto-generated Go/api/v1SDK (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.MigrationImportPlannerandspi.MigrationPreflightDriver, fixed OCIv2/path translation, APT/RPM/NuGet/Helm/PyPI/Composer/RubyGems metadata skipping, canonical checksum dedupe & strict cutover parity, addedPOST /api/v1/migrations/sources/{id}/preflight+preserve_topologyprovisioning, 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 officialsimple-iconsbrand 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/searchpage), 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-scannerimages (v1.0.0promoted to:latest), OCI Helm Chart (oci://ghcr.io/ccsert/charts/arka), standalone Unix + Windowsarkactlarchives, 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-poolbackend_identityisolation across S3/Azure/FS, full Azure Blob chunked upload staging & paginated generation sweep, and explicitStoragePool.Capabilities(uploadStaging,generationCleanup,presignedDownload). - [x] Cross-Replica Hot Index Cache, Proxy
304CAS & Transactional Outbox (0026,0028–0031): O(1) catalog revision cache + batch download-policy evaluation for APT/RPM/PyPI, singleflight Proxy304CAS 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-closedARKA_METRICS_REQUIRE_AUTH. - [x] Supply Chain, Security & Protocol Hardening: Two-stage
scanner.dbUpdaterCronJob 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, APTcontrol.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 traceablemixed-upload/hot-indexbenchmarks.
Working on a Roadmap Item (Agent Checklist)
- Pick one cohesive vertical slice from the current milestone (do not mix unrelated milestones in a single PR).
- Follow the matching Playbook (
A–E) in AGENTS.md. - Update checkboxes in this file once the slice is verified and merged.
- Run
make verify(plusmake test-e2e/make test-s3when touching persistence, protocols, or storage) before committing.