Menu

A cert that Puma saw and Gitaly didn't: HUPping Gitaly on trusted-certs changes
📰

A cert that Puma saw and Gitaly didn't: HUPping Gitaly on trusted-certs changes

DEV Community: ruby·Priyanshu Jha·about 11 hours ago
#9QKFIRxt
#devtoruby#devto#dev#gitaly#gitlab
Long article (750 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.