Skip to content

Throttle OCSP cert-status error instead of logging on every handshake#13312

Open
ezelkow1 wants to merge 1 commit into
apache:masterfrom
ezelkow1:err-to-dbg
Open

Throttle OCSP cert-status error instead of logging on every handshake#13312
ezelkow1 wants to merge 1 commit into
apache:masterfrom
ezelkow1:err-to-dbg

Conversation

@ezelkow1

@ezelkow1 ezelkow1 commented Jun 23, 2026

Copy link
Copy Markdown
Member

This message can get a bit spammy

PR #12951 Changed it from Debug to Error

@ezelkow1 ezelkow1 added this to the 11.0.0 milestone Jun 23, 2026
@ezelkow1 ezelkow1 self-assigned this Jun 23, 2026
Copilot AI review requested due to automatic review settings June 23, 2026 02:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts OCSP stapling logging in the TLS handshake path to reduce noisy error logs when OCSP status is unavailable/expired, aligning this message with other OCSP debug-level diagnostics in the same module.

Changes:

  • Downgrade the “failed to get certificate status” log in ssl_callback_ocsp_stapling() from Error() to Dbg(dbg_ctl_ssl_ocsp, ...).

JosiahWI
JosiahWI previously approved these changes Jun 23, 2026
Comment thread src/iocore/net/OCSPStapling.cc Outdated
ssl_callback_ocsp_stapling() emitted an Error on every TLS handshake when
a cert's OCSP response was missing or expired, which could flood error.log.
Use SiteThrottledError so ops are still alerted at Error severity but the
message is rate-limited per call site (default 60s) with a suppressed-count.
@ezelkow1 ezelkow1 requested a review from bneradt June 25, 2026 15:24
@bneradt bneradt changed the title Change ocsp error log back to debug Throttle OCSP cert-status error instead of logging on every handshake Jun 25, 2026
@ezelkow1

Copy link
Copy Markdown
Member Author

[approve ci fedora]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants