Draft: docs(specs): specify generic hosted (S35)

Summary

  • Problem: Artifact Registry has no generic format. The GitLab project and group package registry does, and it's one of its most-used formats. A team moving to Artifact Registry would lose it.
  • Impact: CI jobs and engineers that publish binaries, installers, firmware and archives have nowhere to put them in Artifact Registry.
  • Change: this adds spec S35 for a hosted-only generic format. Clients PUT, GET and HEAD files at /{slug}/generic/{repo}/{package}/{version}/{file_path...} with a token from the token exchange. It also adds the generic rows to S08 (auth routes), S17 (management API) and S23 (usage data), and the README index.
  • Downsides: no direct PAT, job token or deploy token, so curl needs a token exchange first. No resumable upload, so one PUT is capped at 5 GB. Free-tier extras (status=hidden, select=package_file, protection rules, anonymous read, the Allow duplicates setting) are left out for GA and listed as migration gaps.

Checklist

  • Gaps: no CLI beyond glab artifact-registry get-token plus curl, no resumable upload, and no free-tier extras listed above. Each is a migration gap the user docs will name. None blocks moving a typical CI release job.
  • Least sure: the redirect download filename. A signed 307 URL carries no Content-Disposition, so browsers save the storage key. The spec accepts that for GA, because curl --output and CI jobs name the file. Browser-heavy use would change my mind.
  • Compatibility: nothing breaks. Generic is a new format. The package name and version grammar accepts every name and version the free-tier generic registry accepts, so existing packages migrate without renaming.
  • Agreement: the 200 on a byte-identical re-upload, the 1,000 files-per-version cap and the ADR-009 Generic section need gitlab-com/content-sites/handbook!21610 (closed) to merge. The UI and GraphQL (monolith) and the iglu artifact_registry_context schema need a generic value before launch; the plan MR will sequence those.
  • Simplicity: I rejected a duplicates-allowed setting, protocol DELETE, and a resumable upload API. Fixed re-upload rules and one PUT path keep the format thin; the management API already handles deletes.

Related to gitlab-org/gitlab#627200

Triage plan: gitlab-org/gitlab#627200 (comment 4044693383)

🤖 Generated with Claude Code

Merge request reports

Loading
Loading