You add a CA to /etc/gitlab/trusted-certs and run gitlab-ctl reconfigure. Puma, GitLab Pages, and Workhorse pick up the new certificate. Gitaly does not. Internal API calls signed by that CA keep failing with x509: certificate signed by unknown authority until someone restarts Gitaly by hand.
This is the story of omnibus-gitlab!10082, one extra notification in a recipe that already knew how to restart everyone else, and a review that asked what happens on a node where Gitaly is not running at all.
The issue: a process that reads the pool once
The issue was omnibus-gitlab#10225, opened by Adam Mulvany. When a certificate is added to /etc/gitlab/trusted-certs, gitlab-ctl reconfigure links it into /opt/gitlab/embedded/ssl/certs/ and restarts Puma, GitLab Pages, and Workhorse. Gitaly was not on that list.
Gitaly reads its certificate pool at startup. A new CA in that directory is not enough. Until a restart, Gitaly keeps using the pool it already loaded, so calls to an endpoint signed by the new CA fail.
The fix: the same guard, a gentler action
The production change is one line in add_trusted_certs.rb, next to the three existing notifications:
notifies :restart, "runit_service[puma]" if omnibus_helper.should_notify?("puma") notifies :restart, "runit_service[gitlab-pages]" if omnibus_helper.should_notify?("gitlab-pages") notifies :restart, "runit_service[gitlab-workhorse]" if omnibus_helper.should_notify?("gitlab-workhorse") notifies :hup, "runit_service[gitaly]" if omnibus_helper.should_notify?("gitaly") The action is hup, not restart. That matches how Gitaly already reloads when config.toml changes: a graceful HUP, bounded by graceful_restart_timeout (1 minute by default). The should_notify? guard is the same one the other three services use, so a node with Gitaly disabled does not get a notification for a service that is not there.
What review added
Lucas Li approved the approach and asked for a ChefSpec context where Gitaly is disabled, asserting there is no notification. The first fixture stubbed should_notify? to true for every service, so that path was untested. The new examples use a small fixture cookbook that registers dummy runit_service targets, so the recipe can notify them in ChefSpec without converging each service recipe. When Gitaly is not in the notify list, the block must not notify runit_service[gitaly], and it must still restart Puma.
Hossein Pursultani raised two edge cases that did not block the merge, but belonged in the description.
Repeated HUPs when rehashing fails. If openssl rehash / c_rehash fails (the warning about FIPS hosts), link_certificates returns before it stores a new hash. new_certificate_added? stays true, and the ruby_block fires on every reconfigure. Puma, Pages, and Workhorse were already being restarted on every run in that state. This MR means Gitaly is also HUPed on every run. A graceful restart is milder than a hard restart, so it was accepted, and it is now written down.
hup then restart in the same run. add_trusted_certs runs before gitaly::enable. Delayed notifications are queued in order. A reconfigure that both adds a cert and changes gitaly['env'] or a secret therefore queues hup and then restart. I did not have a live Omnibus node to confirm that a restart arriving while the graceful drain is still in progress leaves Gitaly healthy, and I said so on the MR. The ordering is documented rather than hidden.
Praefect looks like it has the same gap. That was left as a follow-up.
What I took away
1. "We already restart the web stack" is not the same as restarting every process that holds a TLS pool. Gitaly is an obvious consumer of /opt/gitlab/embedded/ssl/certs/. It was just missing from the list.
2. Match the service's own reload. Gitaly already HUPs on config changes. A hard restart would have worked and would have been the wrong copy-paste from Puma.
3. Always test the disabled-service path. should_notify? is the guard. If the fixture forces it to true, you have not tested it.
4. Write the edge cases down even when you cannot reproduce them. Repeated HUPs on a failed rehash, and hup followed by restart, are now in the description so the next person is not surprised.
The MR merged on 24 November 2026.
Links
- Issue: omnibus-gitlab#10225
- Merge request: omnibus-gitlab!10082
Thanks to Adam Mulvany for the issue, to Lucas Li for the disabled-node spec and the approval, and to Hossein Pursultani for the rehash and ordering questions.
If you've been thinking about contributing to GitLab, the community issues are a great place to start: contributors.gitlab.com.



