docs(dev): rewrite the self-managed install guide as one runbook
What does this MR do?
Rewrites docs/dev/self-managed-install.md as one linear SRE runbook for the self-managed closed beta. It acts on the findings from @WarheadsSE and @mbruemmer in the SM CNG Go/No-Go.
@WarheadsSE, this is the place for your detailed findings. Please add them as threads on the diff.
How each finding is handled
| Finding | Raised by | What changed |
|---|---|---|
| Not one linear procedure | Both | Eight stages in Jason's order: Plan → Provision → Create Secrets → Install IAM → Install AR → Configure GitLab → Enable and hand off → Verify. Each stage ends with a check. |
| Multiple versions | Both | One pinned set in a ## Versions table. Removed the "older GitLab charts" path and the >= 19.2.0-pre and 1.35.0 onward notes. |
| Issue references in steps | Martin | Removed from the steps. They now live in the limitations doc. |
| Raw secrets in Helm values | Jason | IAM now uses CONFIG_FILE_PATH (ConfigMap) plus SECRETS_FILE_PATH (Secret) in place of inline CONFIG_TOML. No values file or ConfigMap holds a credential. |
| Secrets on the command line | Jason | Secrets are created with --from-file from a umask 077 directory, which is deleted at the end of the stage. |
| One secrets table | Jason | Stage 3 has one table with name, namespace, keys, and reader. It also shows which copies must match. |
| IAM config split | Jason | Done, as above. |
| One GitLab reconfiguration | Jason | The IAM token is created up front in <release>-iam-data-access-secret, so GitLab is changed once, in stage 6. Before, it was changed in steps 3 and 14. |
| Hand-written K8s manifests | Jason | The appendix now points to CloudNativePG and maintained charts. The Deployments with plaintext env are gone. |
| Accepted risks stated | Martin | New ## Accepted risks for the closed beta table in self-managed-limitations.md, with each risk's tracking issue. |
| Test/staging only | Martin | Stated in the header table. |
What I checked, and what I did not
Checked:
- IAM config paths:
CONFIG_FILE_PATHandSECRETS_FILE_PATHexist iniamv1.56.0andv1.80.2(pkg/config/loader.go). The secrets file is merged last. The entrypoint refusesCONFIG_TOMLandCONFIG_FILE_PATHtogether. - IAM chart: the
iam-data-accesschart1.56.0supportsconfigMapVolumesandsecretVolumes, and itsenvironmentkeys acceptCONFIG_FILE_PATH. GET /v2/: an unauthenticated call gets a Bearer challenge (internal/auth/dispatch.go), so the stage 5401check holds.- Lint:
markdownlint-cli2andvalepass with no errors, andlychee --offlinefinds no broken anchors.
Confirmed by @WarheadsSE in review:
- IAM secrets file: a pod with
secretVolumesandSECRETS_FILE_PATHmigrated, loaded the JWKS, and accepted only the token from the file. The effective mode is0440(root:65533), and IAM runs as uid 100 in group 65533. - Pre-created token: GitLab chart 10.4.0 and 10.5.0's
generate_secret_if_neededkeeps an existing Secret.
Not walked on a cluster:
- Version pin: the 19.5 set (GitLab 19.5.0, chart 10.5.0, AR
2.149.0, GLAZv10.3.0, IAM1.80.2) ran end to end in @WarheadsSE's k3d lab, stages 1–8 and the upgrade path. A cold-context run by someone outside the teams is still open.
Martin's cold run (todo #4 (closed)) is the walk that settles these.
Open questions
Version set: resolved. Option B with an exact pin for every component (@jdrpereira). The guide pins the GitLab 19.5.0 set. For GA, the pins track the release manifest (@mbruemmer).- Appendix: Jason, do you have preferred Valkey and S3-compatible charts? I did not name specific ones, so the guide makes no claims I haven't checked.
Separate IAM guide: resolved. It stays a stage here, per iam!416. gitlab#632290 will move it to the YAML config.: resolved. gitlab-org/charts/gitlab!5452 (merged) merged on 2026-10-08. The chart docs now mark it Beta on GitLab.com and GitLab Self-Managed, so the accepted risk is removed.iamDataAccessServicematurity
Not in this MR
- Cold run on a clean cluster by someone outside the team (Martin's todo #4 (closed)).
- Final version pins: a follow-up MR at the GitLab 19.5 self-managed cut-off sets the frozen set and the GitLab version, then the cold run uses it.
- Owners for every gap (Martin's todo #3 (closed)). Rows marked "None filed" in
self-managed-limitations.mdstill need an issue and an owner: accepted risk 5 (partly), gap 11, and lifts 1, 3, and 5. - A CI job that tests the beta set (Jason's suggestion 2): #1547.
- PREP review by @cjwilburn once the content settles.
- The Artifact Central rename. That is planned for GA.
Heads-up for plan authors
The stages are renumbered. docs/plans/2026-09-28-s04a-required-encryption-block.md names "the guide's steps 9, 10 and 12". Those are now stages 3 and 5. The S34 plan expects an Open items bullet in this guide. That section now lives only in self-managed-limitations.md.
Size
About 570 added and 860 removed lines, all in one runbook plus its companion doc. A split would not help, because the change is a reorder of one procedure. Reviewing half of it would leave the order unreviewable.
Checklist
- e2e scenarios: none affected. Docs only, no behavior change.
docs/user/: none affected. This guide is underdocs/dev/.
Related to https://gitlab.com/gitlab-org/gitlab/-/work_items/631766