Add the Track 2 Gateway TLS proxy and restart failed units
Track 2 now has the AI Gateway TLS sidecar that was reverted out of the add-on host change, and the role restarts a unit that failed earlier and has not changed since. Both ran on a sealed pair of hosts on GitLab 19.6.1, and the check passes for every capability.
The Gateway speaks plain HTTP and gRPC on its own. Where traffic between the hosts must be encrypted, two nginx units now stand in front of it and the Gateway publishes no port itself.
sequenceDiagram
participant C as Client (GitLab host)
participant P as aigw-tls-rest (nginx, 5052)
participant G as AI Gateway (container network only)
C->>P: TLS handshake, leaf signed by the internal CA
P-->>C: certificate chain
C->>P: POST /v2/completions
P->>G: same request over plain HTTP, inside the add-on network
G-->>P: completion
P-->>C: completion
Note over C,P: plain HTTP to 5052 gets a 400, and a client without the CA fails to verifyWhat changed
aigw_tls_mode: nginxadds two units,aigw-tls-reston 5052 andaigw-tls-grpcon 50052. The leaf comes from theaddon-aigw-tls-crtandaddon-aigw-tls-keyPodman secrets, and the Gateway unit drops itsPublishPortlines in that mode. The default staysplaintext.- The role resets and restarts any of its container units that are failed after the configuration restart. Before, a unit that failed on a first run (OpenBao before the Omnibus database wiring existed, for example) stayed failed until someone ran
systemctl --user reset-failedby hand. - The proxy image variable used the bare
nginx_image_ref, which has no registry prefix, so it never matched the image archive. It now usesnginx_image, the same name the other roles use. offline_checkdecoded the Cloud Connector claims with two extra padding characters. That raises when the payload length is already a multiple of four, which depends on the Gateway URL, and thehttpsURL hit it. The Duo probe never got its headers. The padding is gone, sinceurlsafe_decode64adds what it needs.- The OpenBao and Siphon tables pins for GitLab 19.6.1 were already on main. This is the first run that used them.
- Runbook and role READMEs describe the sidecar and the restart.
results/19.6.1-ee.0-track2.jsonrecords the run.
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,ansible/roles/addon_host_quadlet/README.mdandansible/roles/offline_check/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: none changed here.
Verified on a deployment
Two AlmaLinux 9 hosts ran GitLab 19.6.1-ee.0 (Omnibus) and the add-on host, with outbound internet access blocked on both and the resolver on both pointed at loopback. Duo ran against the stub model inside the blocked network. That proves the request path, the authentication and the Gateway, and says nothing about the output of a real model.
The lab used HTTPS. The Omnibus got a certificate from the instance builder's private CA, with a name the add-on host can reach, and that CA is trusted on the add-on host and by the Runner and OpenBao containers. The Gateway leaf comes from the internal lab CA. The host that runs offline-check.yml needs that CA in its system trust store, because GitLab's trusted-certs directory serves Rails and not the host's own tools. Without it the Duo probe reports -1. The offline_check README says so.
The Gateway proxy:
https://<gateway>:5052/monitoring/healthzreturns 200 with the internal CA.- Plain HTTP to 5052 returns 400, so the TLS port does not serve plaintext.
- A client with no CA fails verification (
unable to get local issuer certificate). - The gRPC port completes a TLS handshake and negotiates
h2.
The restart:
- Four units that failed on the Postgres wiring (OpenBao and three GKG services) stayed failed after a run on the previous behaviour, with
changed=0. - With this change, the same run reset and restarted all four. None is failed afterwards.
- A second run on the converged host changes nothing.
Checks that do not run on a host: yamllint and ansible-lint pass over the touched roles, and the tests for scripts/results_matrix.py pass with the new results file.
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, over TLS. The same request with the model endpoint closed returns a 500 and no completion. |
| Backup and restore | Pass | Backup and restore complete, and the capabilities above pass afterwards. Restoring a missing backup id exits 1. |
The runs also needed three settings that are off by default: the Runner (addon_host_runner_enabled), the stub model (addon_host_model_stub_enabled) and aigw_tls_mode, which is set in group_vars/all/vars.yml and is not read from local.yml.
An AI coding assistant wrote this change and ran the checks above on test VMs.