feat(addon_host_quadlet): add Track 2, the add-on host on rootless Podman Quadlet

Adds Track 2: the GitLab add-ons (Orbit, OpenBao for Secrets Manager, the AI Gateway) on one plain RHEL-family host, beside an Omnibus GitLab. There is no cluster. Systemd runs each add-on as a rootless Podman Quadlet unit, and every image loads from an archive, so the host needs no registry access. It exists to answer one question: can you ship the add-ons to a site that has no internet and no Kubernetes? Track 2 is experimental, as its runbook page says: a test bed with no support and no roadmap.

flowchart LR
  subgraph O["Omnibus host"]
    GL["GitLab (Rails, Sidekiq)"]
    PG[("PostgreSQL")]
    NG["GitLab NGINX"]
  end
  subgraph A["Add-on host (one Podman network)"]
    SI["Siphon"]
    CH[("ClickHouse")]
    NA["NATS"]
    GK["GKG services"]
    OB["OpenBao"]
    AI["AI Gateway"]
    ST["Stub model (opt-in)"]
    RU["Runner"]
  end
  PG -- "logical replication" --> SI
  SI --> NA --> GK
  SI --> CH
  GK --> CH
  GL -- "queries" --> CH
  NG -- "proxies" --> OB
  OB -- "storage and JWT issuer" --> PG
  GL -- "Duo requests" --> AI
  AI -- "completion" --> ST
  AI -- "signing keys" --> GL
  RU -- "jobs" --> GL

What changed

  • ansible/roles/addon_host_quadlet and ansible/track2.yml run the add-on units on the host: OpenBao, ClickHouse, NATS, the four GKG services, the three Siphon services and the AI Gateway.
  • New ansible/roles/addon_wiring holds the settings the Omnibus host needs for any add-on host: the gitlab.rb fragment, the Siphon and OpenBao database roles, and the ClickHouse connection and migration. gitlab_omnibus now includes it, so Track 1 takes the same path with no change in behaviour.
  • OpenBao starts unsealed through a static seal and creates its own JWT auth from initialize blocks. GitLab is the issuer, and the state lives in the Omnibus PostgreSQL.
  • A Runner unit takes its token from the Omnibus host, so Secrets Manager pipelines can run on the add-on host.
  • An opt-in stub model unit answers the Gateway when no real model is reachable.
  • The role builds the patched Siphon tables image on the host. Every image from registry.gitlab.com is pinned by digest in versions.yml, and scripts/resolve_versions.py --check confirms each digest exists.
  • Two settings must agree with GitLab's external_url: addon_host_gitlab_url and addon_host_openbao_oidc_url. The runbook page says how.

What is left out

The Gateway TLS sidecar (aigw_tls_mode: nginx on Track 1) is not in this change. No host ran it, so it was reverted in this branch and is listed under "Not ported or not verified" in the runbook page. It will come in its own merge request after a host has run it. Track 2 runs the Gateway in plaintext only.

Checklist

  • Verified on a deployment, or the reason it was not: see below.
  • Runbook and README updated if a step, variable or default changed: docs/runbook/tracks/quadlet.md, the role READMEs, docs/runbook/README.md and the root README.md.
  • No secrets, hostnames or account IDs committed; certs stay in the git-ignored certs/.
  • Release and service image pins changed in ansible/group_vars/all/versions.yml; other pins edited where they sit: digests for the five registry.gitlab.com images and the Runner image, and nats_image_ref.

Verified on a deployment

Two AlmaLinux 9 hosts ran GitLab 19.6.0-ee.0 (Omnibus) and the add-on host, with outbound internet access blocked on both. The first run was not blocked: the cloud resolver still answered public names, so the resolver on both hosts now points at loopback. The checks then proved the block first: internet targets refused, the add-on host's own ClickHouse mirror still reachable. A second run of the plays changed nothing on either host, and all five capabilities passed. Four of them also ran a check that must come out the other way, listed below.

  • The lab GitLab served HTTP only, because the instance builder has no HTTPS virtual host. The TLS paths between the hosts did not run.
  • Duo ran against a stub model inside the blocked network. This proves the request path, the authentication and the Gateway. It says nothing about the output of a real model.
  • Main now pins GitLab 19.6.1. The run used 19.6.0 images. The 19.6.1 digests for OpenBao and the Siphon tables image are checked to exist but have not run on a host.
  • yamllint --strict and ansible-lint pass over ansible/, and the 24 tests in scripts/test_resolve_versions.py pass. resolve_versions.py --check did not run on my machine (the certificate store refused the registry), so the pins:lint job covers it.
Results by capability
Capability Result Check that must come out the other way
Core Pass The block was proven before the other checks ran.
Orbit Pass A seeded project returns one row. A project in a group that is not enabled for Orbit returns none.
Secrets Manager Pass A pipeline job reads a secret and succeeds. The same job fails for a secret scoped to another branch.
Duo Agent Platform Pass The Gateway returns a completion from the stub model. The same request with the model endpoint closed returns a 500 and no completion.
Backup and restore Pass Backup and restore complete, and core, Orbit and Secrets Manager pass afterwards. Restoring a missing backup id exits 1.

Fixes the runs found, all in this branch: the OpenBao certificate leaf in scripts/gen_lab_ca.sh, the orbit_pg_client_cidr default, the loaded-digest check for multi-arch images, a duplicate /tmp mount on the GKG code indexer, the OpenBao and GKG start commands, GitLab's ClickHouse connection, the address GitLab uses to reach OpenBao, a source digest for converted manifest lists, and the Gateway and Runner GitLab URLs.

An AI coding assistant wrote this change and ran the checks above on test VMs.

Merge request reports

Loading
Loading