Loading
docs(plans): plan RPM hosted repositories
Summary
- Change: this plan builds hosted RPM repositories as S38 defines them, in 59 steps:
- the OpenPGP signing package that Debian uses too;
- the RPM tables;
- a bounded header parser and the metadata renderer;
- the background rebuild that merges and signs
repodata/; - the
dnfandcurlroutes; - key, package and version management;
- creation behind the
rpm-hostedflag.
- Why: see the spec (!3497 (merged), amended in !3863 (merged)).
- Downsides:
- It is a long stack. The schema, parser, rebuild, protocol and management tracks run side by side to shorten it.
- RPM writes its own problem envelope,
ETagandRangehandling, as every format does, and its own counter dispatcher until #1847 lands. - The
429 quota_exceededcheck waits for #260, and audit events wait for S21, as S38 says.
Checklist
- Risk first:
- Step 19 runs
dnfon RHEL 8, 9 and 10 and current Fedora, also under theFIPScrypto policy, against a static repository that the shared package signs, before any RPM code relies on it. - Step 17 benchmarks the renderer's time and memory by repository size before any job or table uses it. Step 57 then finds the largest repository a full rebuild keeps within 60 seconds.
- The schema (Steps 7 to 9) starts in the first wave. It waits only for the Go plan's pending list.
- Step 19 runs
- Conflicts:
- The Debian plan (!3798 (merged)) lists the same shared pieces: the signing guardrails, the fenced successor, OpenPGP keys and signatures, and the FIPS gate. This plan builds them in Steps 1 to 5, so RPM waits on no Debian step. Whichever plan's step merges first builds the piece, and the other adds only its own format's part or closes.
- Step 44 builds one key-route handler that takes a format's key store and the permissions it checks, so Debian can mount it.
- The depguard configuration and the pending list are shared with the Go plan (!3585 (merged)) and the Debian plan. Whichever lands second rebases. The Go plan's Step 31 deletes the list, so it needs one change: while another format is on the list, that step removes only Go's entries, and the last format to leave deletes it.
- !3585 (merged), !3798 (merged), !3878, !3922 (merged) and !3981 (merged) also edit the index in
docs/plans/README.md. Whichever merges later rebases.
- Reach:
- glaz: nothing. S38's key routes and key selection check
read_repositoryandcreate_repositoryon the namespace, so RPM needs no glaz release. - Monolith: Step 46 opens the issue for the format enum, the client, the forms, the key fingerprint and the setup snippets. Step 54 merges only after the monolith accepts
rpmand the Snowplow context is confirmed. - Neither team has been asked yet. The authors of those steps start the threads.
- glaz: nothing. S38's key routes and key selection check
- Coverage:
- S38's Deferred section (!3863 (merged)) leaves out the incremental merge, a slower
filelists, bulk delete, the in-processrepomd.xmlcache, the rate limit, signing-key permissions of their own, and group,updateinfoand module metadata. No step builds them, and each has its trigger in S38. The rate limit waits for the S05-B limiter, which is on hold while the team checks LabKit'sratelimitpackage (#1181). 429 quota_exceededwaits for #260, and audit events wait for S21.- With
storage.max_concurrent_upload_sessionsset to 1 by hand, every RPM upload answers413, because the cap holds no slot for its header besides the session's own. The derived value is never below 2. Refusing 1 at startup would change a key every format shares, so no step does it.
- S38's Deferred section (!3863 (merged)) leaves out the incremental merge, a slower
- Least sure: how large a repository a full rebuild keeps within 60 seconds (Steps 17 and 57). Every rebuild renders every version, so its time grows with the repository. If the size is too small for real repositories, the merge in S38's Deferred section is the next step, then a slower
filelists. - Deferred: no step closes a deferral's way back. Step 7 keeps
packages_digestandrender_versionon the repository row, Steps 16 and 17 write one fixed layout per file type, and Step 18 reads it, so the deferred merge can read today's files with no backfill. A step that changes any of these is a plan amendment.
Merge order
- This plan can merge before ADR-030 (!3768 (merged)) and the S38 amendment (!3863 (merged)). Only the signing track waits for them: Steps 3 and 20 start once ADR-030 merges, and Step 44 once !3863 (merged) merges too. Every step that signs, serves a key or selects one descends from those three.
- The other steps start once this plan merges. Some build rules that only !3863 (merged) states, such as the slot rules, format
7and the rebuild writing one file at a time. A change to either document is a plan amendment. - Nothing reaches users before both merge: no RPM repository can exist before Step 54, which descends from the signing track.
- No step MR opens before this plan merges.
Related to gitlab-org/gitlab#605699
Edited by Dzmitry (Dima) Meshcharakou