docs(plans): plan Debian hosted repositories
Summary
- Change: the implementation plan for the December 15 part of hosted Debian repositories, as S36 defines them:
curluploads, signed archives thataptreads, the background rebuild that signs each suite, signing-key create and reads from ADR-030, and Debian package and version reads and deletes. It has 56 steps, one MR each. The rest of S36 waits for a new plan in #2058. The RPM plan (2026-11-06-s38-rpm-hosted.md) builds the shared signing code, the fenced successor and the key-route handler, so this plan builds only Debian's parts on top. - Why: see the spec.
- Downsides: Debian becomes creatable only at Step 53, and only while the
debian-hostedflag is on for the namespace, so nothing is usable until most of the stack lands. Step 56 removes the flag. The429quota check waits on #260, audit events wait for S21, no step removes signing keys when a namespace goes, becausemainhas no namespace purge, and namespace re-enable refuses while a Debian repository exists (S36's open question 3). Debian sits on the test-only pending list until Step 52.
Stacked on the S36 spec branch. This MR targets rbatnag/s36-debian-hosted-spec so the plan's spec links resolve and the link check passes. Retarget it to main once !3447 (merged) merges. ADR-030 has merged.
Estimate. The estimate draft sized the 76-step plan at about 70K added Go lines against Maven and npm code, so the average step sits close to the 1,000-line gate. Expect about 68 MRs: 56 steps, this plan, the close-out, and roughly 10 amendments and follow-ups. #1904 commits to them for December 15 with three engineers at 1 MR per engineer-day. The longest dependency chain is 10 steps (1 → 12 → 13 → 33 → 34 → 40 → 41 → 51 → 53 → 54), so the team's throughput sets the duration, not the chain. Not counted: the monolith work, and the two Staff+ approvals each guardrail MR needs.
Checklist
- Risk first: Debian's signatures (Step 4) carry the most risk. Step 4 waits on S38's signing FIPS gate step. The
aptmatrix for two signatures moves with rotation to the new plan. Step 8 starts once Step 5 merges, and Steps 9 and 10 after it. - Conflicts: the Go hosted plan (!3585 (merged)) shares the depguard configuration, the pending list, the format check and the per-format maps; whichever plan lands those steps second rebases. Go takes format value
5, and Step 8 confirms6againstmain. The RPM plan is landing the shared signing package, the FIPS gate and the key-route handler; Steps 4 and 7 name those RPM steps as outside dependencies, and if a Debian step is ready first it builds the shared piece as the RPM plan describes it. Inside the plan, the Shared seams list gives each shared file one owner. - Reach: the monolith (format enum, AR client, repository forms, key fingerprint, setup snippets and handling of
422 invalid_signing_key, opened by Step 42); the feature-flags repository (thedebian-hostedflag, Step 53); Snowplow (confirm the context acceptsdebian); AppSec (go-crypto, signing and the upload parsers); the S04-B owners (credential-table registration). None of them has been told yet; I will ping each once this plan is reviewed. - Coverage: every S36 behavior has a step except the
429quota check (#260), the rate limit (S05-B wires it into the hosted formats), audit events (S21), signing-key removal at namespace purge (no namespace purge scope exists), how a namespace removes its Debian repositories before re-enable (S36's open question 3; Step 21 ships the refusal S36 sets meanwhile), and the behavior the new plan in #2058 takes:dput, key rotation and key changes, bulk delete, repository settings and suite reads. Remote and virtual Debian are out of scope in S36 itself. - Least sure: Steps 30 and 31, the rebuild body and its signing. They join the counters, retention, signing and failure modes under the 60-second p99 publish target. Step 54 measures it: a changed pair holding 50 MB of
Packagesmust rebuild in under 25 seconds on each storage driver, and a miss would change the rebuild cap or the retention defaults. - Deferred: no step closes a deferral's safe path in S36. Step 5 keeps the
origincolumn, so customer key import needs no backfill. No step adds a route that returns a private key, so export stays a later route. Steps 4 and 31 sign through the signer seam, so a KMS signer can replace the stored key with no schema change. The rate limit and anonymous reads touch no Debian step: S05-B mounts its limiter on the handler, and public visibility opens the read grant.
The plan has no open questions left.
Related to gitlab-org/gitlab#605698