Skip to content

fix: show OCSP stapling as informational, not pass/fail#307

Merged
lissy93 merged 1 commit into
lissy93:masterfrom
maximillions-dev:fix/ocsp-stapling-display
May 18, 2026
Merged

fix: show OCSP stapling as informational, not pass/fail#307
lissy93 merged 1 commit into
lissy93:masterfrom
maximillions-dev:fix/ocsp-stapling-display

Conversation

@maximillions-dev
Copy link
Copy Markdown

The TLS Connection card showed ❌ No when OCSP stapling wasn't enabled, which makes it look like a security failure. OCSP stapling is a performance optimization β€” absence isn't an issue.

Changed the card display from:

Before: ❌ No βœ… Yes
After: Not enabled Yes

No emoji, no red cross. Just factual.

The analysis rule already uses severity: 'info' for this check, so the advisory panel was correct β€” only the card display was misleading.

Verified with tsc and prettier, both clean.

The OCSP Stapling row in the TLS Connection card used the yesNo()
helper, rendering '❌ No' when the server doesn't staple OCSP
responses. Since OCSP stapling is a performance optimization rather
than a security requirement, displaying it as a failure is misleading.

Replaced with a neutral ocspStatus() that shows 'Yes' or 'Not enabled'
without emoji icons. The analysis rule (tls-connection.ts) already
uses severity 'info' for this check, so the Advisory panel was
correct; only the card display was wrong.

Closes lissy93#299
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

βœ… Deploy Preview for web-check ready!

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit 59a6c70
πŸ” Latest deploy log https://app.netlify.com/projects/web-check/deploys/6a0b01f72eab1900082f06ac
😎 Deploy Preview https://deploy-preview-307--web-check.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
πŸ€– Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

<Row lbl="Forward Secrecy" val={yesNo(!!d.forwardSecrecy)} />
<Row lbl="Session Resumption" val={yesNo(!!d.sessionResumption)} />
<Row lbl="OCSP Stapling" val={yesNo(!!d.ocspStapled)} />
<Row lbl="OCSP Stapling" val={ocspStatus(!!d.ocspStapled)} />
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

If that's only used in one place, can probably just be done inline, instead of a seperate function.

@lissy93 lissy93 merged commit e724160 into lissy93:master May 18, 2026
11 of 12 checks passed
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.

3 participants