Skip to content

push: Verify site CA on registration - #22

Merged
relrod merged 2 commits into
masterfrom
push-reg-verify
Jul 28, 2026
Merged

push: Verify site CA on registration#22
relrod merged 2 commits into
masterfrom
push-reg-verify

Conversation

@relrod

@relrod relrod commented Jul 27, 2026

Copy link
Copy Markdown
Member

metrics-cache previously accepted any server certificate (pure Trust On First Use) when registering to the push-agent receiver. This meant the one-time token was vulnerable to MITM who could register as the cluster.

The registration/bootstrap now verifies the receiver against a site CA certificate supplied via push.siteCaCertificate before sending the token.

This only affects the registration step; the receiver then returns the site CA again which is stored for doing actual pushes.

There is an explicit opt-out of verification via
push.insecureSkipSiteCAVerification, which defaults to false but allows for the dev environment to spin up without someone having to pass in a certificate (only a token).

@relrod
relrod requested review from Copilot and racicLuka and removed request for Copilot July 28, 2026 09:39
relrod added 2 commits July 28, 2026 12:00
metrics-cache previously accepted any server certificate (pure Trust On
First Use) when registering to the push-agent receiver. This meant the
one-time token was vulnerable to MITM who could register as the cluster.

The registration/bootstrap now verifies the receiver against a site CA
certificate supplied via push.siteCaCertificate before sending the
token.

This only affects the registration step; the receiver then returns the
site CA again which is stored for doing actual pushes.

There is an explicit opt-out of verification via
push.insecureSkipSiteCAVerification, which defaults to false but allows
for the dev environment to spin up without someone having to pass in a
certificate (only a token).
@relrod
relrod force-pushed the push-reg-verify branch from 3c94bf1 to e4e1f44 Compare July 28, 2026 10:26
Comment thread metrics-cache/src/push/register.rs

@racicLuka racicLuka left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

With this, history has been written!

@relrod
relrod merged commit c39a71d into master Jul 28, 2026
8 checks passed
@relrod
relrod deleted the push-reg-verify branch July 28, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants