Loading
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, andrpmto the:formatnote.
Checklist
- Reach: the RPM hosted spec now. The client section is also where the key-delivery constraint lands:
dnf5sends no credentials togpgkey=, sorepomd.xml.keyhas to sit on the registry host, and the.repoexample is the place a reader sees that. - Least sure: two things. The spec has RPM generate a
defaultkey when a repository is created in a namespace that has none, and Amend AR ADR-004, ADR-007, ADR-009 and ADR-021 ... (!21653 - closed) has Debian return422in the same situation and never generate. Those are different answers to the same question, and I have left the generate behavior out of this MR rather than write a contradiction into the document. Whoever reviews both should pick one. Second, there is no.repoclient configuration example, where Container, Maven and npm each have one. I cut it for the word limit, keeping the one fact it carried: a client's ownmetadata_expiredecides when it sees a new package, and its default is hours, so the publish target bounds only the server side. - Agreement:
- The Engineering Lead, or a Staff+ cover, approves. Nobody is asked yet.
- Merge after Add Artifact Registry ADR 030: Repository Signi... (!21615 - closed) and Amend AR ADR-004, ADR-007, ADR-009 and ADR-021 ... (!21653 - closed): this section links to ADR-030, and Amend AR ADR-004, ADR-007, ADR-009 and ADR-021 ... (!21653 - closed) is what adds the namespace signing-key routes that the RPM text says it reuses.
- !21610 (closed) edits the same client-API insertion point. Whichever merges second rebases.
- Merge after Amend AR ADR-007 for RPM packages (!21741 - closed) (the ADR-007 RPM amendment), or accept one dangling anchor until it lands: the
**RPM-specific:**note links007_database_schema.md#rpm-repositories. The third of the set is Amend AR ADR-004 for RPM packages (!21739 - closed) (ADR-004). - Merge before gitlab-org/ops/artifact-registry!3497 (merged), because S38 cites this amendment.
- Durability: remote or virtual RPM repositories, source RPMs, or
comps,updateinfoand module metadata at GA. Each adds routes this section does not have.
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