Skip to content

[Backport 8.x] Update ca_last_update/crl_last_update on HTTP 304#526

Merged
OpenVoxProjectBot merged 1 commit into
8.xfrom
backport-524-to-8.x
Jul 6, 2026
Merged

[Backport 8.x] Update ca_last_update/crl_last_update on HTTP 304#526
OpenVoxProjectBot merged 1 commit into
8.xfrom
backport-524-to-8.x

Conversation

@OpenVoxProjectBot

Copy link
Copy Markdown
Contributor

Description

Backport of #524 to 8.x.

A 304 Not Modified response confirms the local CA certificate or CRL
is current, so the refresh-interval TTL should be reset. Previously
ca_last_update (backed by ca.pem's mtime) never advanced past the
initial download in steady state, so every agent run saw a stale
mtime and re-issued the conditional GET regardless of
ca_refresh_interval.

The CRL path had the same structural issue but was latent because CRL
endpoints typically respond 200 often enough that save_crls bumps the
mtime naturally. Fix it for symmetry.

Fixes #435

Signed-off-by: SAY-5 <say.apm35@gmail.com>
(cherry picked from commit b262f75)
@bastelfreak bastelfreak added the bug Something isn't working label Jul 6, 2026
@bastelfreak bastelfreak mentioned this pull request Jul 6, 2026
@OpenVoxProjectBot OpenVoxProjectBot merged commit 0c8ed8a into 8.x Jul 6, 2026
20 checks passed
@OpenVoxProjectBot OpenVoxProjectBot deleted the backport-524-to-8.x branch July 6, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants