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 .rpm packages 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.
    • curl publishes one package per PUT.
    • A background job rebuilds repodata/ and signs repomd.xml with the namespace keys from S36. It never signs a package.
    • dnf sees 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, updateinfo or 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 dnf without 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.

Checklist

  • Gaps: remote and virtual RPM get their own specs. Group, updateinfo and module metadata wait for a Product answer (Open question 3). zypper and yum 3 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 to gpgkey=.
    • The lab in #1690 measured that on Rocky 8 and 9. I checked that Rocky 10 ships dnf 4.20.
    • dnf5 never 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.
  • 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 -y or assumeyes=1. The bulk import into the rpm database: the snippet sets gpgcheck=0, and a publisher that signs packages imports its own key first.
    • Handbook ADR amendments, not opened yet: ADR-007 (format 7 and 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 7 assumes Go (!3484 (merged), S37) keeps 6. Whichever MR merges second renumbers.
    • The monolith UI and the Snowplow context schema need an rpm value before launch.
    • AppSec: the gpgcheck=0 default 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 (dnf5 rejects them) and an anonymous key path. One repodata/ and one PUT per package keep the API small.

Overlaps with open MRs

Checked locally

  • markdownlint-cli2, Vale, lychee and 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 rpm version rule in Package identity, on Rocky 8, 9 and 10 (rpm 4.14, 4.16, 4.19): 1.0 = 1_0 = 1..0, 1.0 = 1.00, 1a = 1.a, and 1.0 > 1.

Related to gitlab-org/gitlab#605699

Merge request reports

Loading
Loading