Amend AR ADR-009 for RPM packages

Summary

  • Problem: the RPM hosted spec (S38, gitlab-org/ops/artifact-registry!3497 (merged)) defines a client API that ADR-009 does not describe: six routes under /{slug}/rpm/{repository_name}/, and an RPM arm of the management artifact routes. ADR-009 lists every other format and stops at Go.
  • Decision: add an RPM section to the client APIs, an **RPM-specific:** note to the management artifact routes, and rpm to the :format note.

Checklist

What changes

Section Change
:format note rpm joins docker, oci, maven, npm and go.
Format-Specific Artifact APIs A new **RPM-specific:** note, in the shape of the existing Go one. RPM reuses the Maven and npm package and version routes with rpm as :format; a package is a name, a version is one NEVRA, and a version holds one file, so RPM has no file routes. Version listings filter by architecture. The repository settings object carries signing_key_id and secondary_signing_key_id, and a non-hosted rpm create returns 422.
Artifact Management Client APIs A new #### RPM section after #### Go. The six routes, Basic auth with a token as the password, hosted only, 403 on any other method, and no protocol DELETE. States that repomd.xml lists primary, filelists and other and nothing else, and that RPM adds no key route of its own.

The section calls the metadata layout what it is: the behavior of createrepo_c, dnf, yum and zypper rather than a normative specification. There isn't one to cite.

Two links are deliberately not links. ADR-030 is named in prose because 030_repository_signing_keys.md does not exist on main yet, and the ADR-007 reference points at the file rather than #rpm-repositories, which does not exist until Amend AR ADR-007 for RPM packages (!21741 - closed) merges. hugolint linkcheck refuses both, so the anchors go in when the dependencies land.

ADR-009 is already over the 5,000-word ADR limit, so this adds 353 words it should not. Most of it is the route list, which is what this ADR is for.

Edited by Sahil Sharma

Merge request reports

Loading
Loading