Loading
Draft: docs(specs): specify RPM hosted (S38)
Stacked MRs
| Part | MR | Scope | Reviewable LOC | Target |
|---|---|---|---|---|
| 1/2 | !3447 (merged) | Debian hosted (S36) and the namespace signing keys | 848 | main |
| 2/2 | this MR | RPM hosted (S38) | 757 | rbatnag/s36-debian-hosted-spec |
LOC is added plus removed lines, measured at aab6ab06c2 (!3447 (merged)) and bed60de7ef (this MR).
Merge order: !3447 (merged) first. S38 uses the signing-key resource that S36 defines, and both MRs edit the same lines in S01, S08, S09, S17 and S23. A dependency block stops this MR from merging into the Debian branch. Once !3447 (merged) merges, GitLab retargets this MR to main.
Summary
- Problem: Artifact Registry has no RPM format. Teams that ship
.rpmpackages stay on JFrog, Nexus or the monolith. - Impact: RHEL, Fedora and SUSE engineers cannot publish or install packages through Artifact Registry. Platform engineers cannot bring RPM under the same access model and audit trail.
- Change: this adds spec S38 for RPM hosted repositories and its index row. It also adds the RPM rows to S01 (routes), S08 (Basic auth), S09 (route permissions), S17 (format, settings, create rules) and S23 (usage events), and fixes two S36 sentences that said RPM comes later.
curlpublishes one package perPUT.- A background job rebuilds
repodata/and signsrepomd.xmlwith the namespace keys from S36. It never signs a package. dnfsees a new package within 60 seconds at the 99th percentile, in a repository of up to 10,000 live versions.
- Downsides:
- One
repodata/per repository, so a customer makes one repository per distribution release. - No
comps,updateinfoor module metadata. dnf5(Fedora) hosts of a private repository import the key by hand, and again at each rotation.- At a key switch, a host that runs
dnfwithout a terminal fails until it confirms the new key once. - Each rebuild reads the whole repository, so the lag grows past 10,000 live versions.
- One
Checklist
- Gaps: remote and virtual RPM get their own specs. Group,
updateinfoand module metadata wait for a Product answer (Open question 3).zypperandyum3 are not tested. Audit events wait for S21, and anonymous reads wait for public visibility. None of these blocks the hosted acceptance criteria in the work item. - Least sure: how a private repository serves its key (Open question 1).
- S38 keeps the key behind the read grant. RHEL 8, 9 and 10 all run
dnf4, which sends the repository credentials togpgkey=. - The lab in #1690 measured that on Rocky 8 and 9. I checked that Rocky 10 ships
dnf4.20. dnf5never sends credentials there. If Product wants Fedora hosts to rotate on their own, the other choice is an anonymous key path, which shows that a private repository exists.- The second one is the full rebuild (Open question 2). If real repositories pass the lag target, an incremental rebuild comes next.
- S38 keeps the key behind the read grant. RHEL 8, 9 and 10 all run
- Compatibility: nothing breaks. RPM is a new format. Monolith users move through a new repository URL and add its key, as Product decided for ADR-030 (P3).
- Agreement:
- ADR-030 (handbook!21615) must merge first. S38 answers its two RPM hand-offs. The key delivery is above. The rotation overlap lasts as long as the customer wants, because the customer runs each step.
- My two open threads on handbook!21615 feed S38. The headless prompt: S38 says each host confirms the new key once, with
-yorassumeyes=1. The bulk import into the rpm database: the snippet setsgpgcheck=0, and a publisher that signs packages imports its own key first. - Handbook ADR amendments, not opened yet: ADR-007 (format
7and the four RPM tables), ADR-009 (the RPM client API) and ADR-004 (the RPM limits). ADR-021 needs nothing, because the signing-key permissions come with S36. - Format value
7assumes Go (!3484 (merged), S37) keeps6. Whichever MR merges second renumbers. - The monolith UI and the Snowplow context schema need an
rpmvalue before launch. - AppSec: the
gpgcheck=0default in the snippet, and Open question 1.
- Simplicity: I rejected several
repodata/directories per repository, a staged multi-file upload, two signatures during a rotation (dnf5rejects them) and an anonymous key path. Onerepodata/and onePUTper package keep the API small.
Overlaps with open MRs
- !3484 (merged) (S37 Go) and !3427 (closed) (S35 generic) edit the same tables and format lists in README.md, S01, S08, S17 and S23. !3484 (merged) also edits S09. Whichever merges later rebases.
- !3440 (merged) adds a row to README.md, in the monolith table.
- !3380 (merged) and !3118 (merged) edit other parts of S17.
- !2944 (closed) retires S06. S38 links S06 as S36 does, so whichever lands second moves the link to
storage.md.
Checked locally
markdownlint-cli2, Vale,lycheeand the document word limit pass on every changed file. S17 is already over its limit, so its edits are worded to keep its count from growing.- The
rpmversion rule in Package identity, on Rocky 8, 9 and 10 (rpm4.14, 4.16, 4.19):1.0=1_0=1..0,1.0=1.00,1a=1.a, and1.0>1.
Related to gitlab-org/gitlab#605699