Skip to content

fix: show certificate expiry on status page for TCP monitors#6984

Merged
CommanderStorm merged 2 commits intolouislam:masterfrom
mixelburg:fix/tcp-cert-expiry-status-page
Feb 19, 2026
Merged

fix: show certificate expiry on status page for TCP monitors#6984
CommanderStorm merged 2 commits intolouislam:masterfrom
mixelburg:fix/tcp-cert-expiry-status-page

Conversation

@mixelburg
Copy link
Contributor

The certificate expiry indicator on status pages was only shown for HTTP-based monitors (http, keyword, json-query with HTTPS). TCP port monitors using SSL/TLS also store TLS certificate info via handleTlsInfo, but the status page didn't display it because toPublicJSON filtered by monitor type.

This removes the type restriction so getCertExpiry is called for any monitor when certificate expiry display is enabled. Monitors without TLS info simply return empty data (validCert: false), so there's no functional change for non-TLS monitors.

Fixes #6958

The certificate expiry indicator on status pages was only shown for
HTTP-based monitors (http, keyword, json-query with https). TCP port
monitors using SSL/TLS also store TLS certificate info via
handleTlsInfo, but the status page didn't display it because
toPublicJSON filtered by monitor type.

Remove the type check so getCertExpiry is called for any monitor when
certificate expiry display is enabled. Monitors without TLS info
simply return empty data.

Fixes louislam#6958
Copilot AI review requested due to automatic review settings February 19, 2026 07:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an issue where TCP port monitors with SSL/TLS connections were not displaying certificate expiry indicators on status pages, even though they store certificate information in the database.

Changes:

  • Removed the monitor type restriction in toPublicJSON that prevented non-HTTP monitors from displaying certificate expiry information on status pages

@CommanderStorm CommanderStorm enabled auto-merge (squash) February 19, 2026 12:47
@CommanderStorm CommanderStorm merged commit c90a7f3 into louislam:master Feb 19, 2026
24 checks passed
@CommanderStorm CommanderStorm added this to the 2.2.0 milestone Feb 26, 2026
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.

Certificate Expiry indicator for TCP Port monitors not shown on status page

3 participants