Skip to content

Monitor truststore certificates in SslMeterBinder#49641

Open
bbbbooo wants to merge 2 commits intospring-projects:mainfrom
bbbbooo:monitor-truststore-certificates
Open

Monitor truststore certificates in SslMeterBinder#49641
bbbbooo wants to merge 2 commits intospring-projects:mainfrom
bbbbooo:monitor-truststore-certificates

Conversation

@bbbbooo
Copy link
Contributor

@bbbbooo bbbbooo commented Mar 18, 2026

Problem

SslMeterBinder currently publishes expiry metrics only for certificate chains from the key store.

As a result, trust store certificate chains are not included in ssl.chain.expiry metrics and their expiry cannot be monitored.

When the same chain alias exists in both the key store and trust store, the metrics also need a way to distinguish their source.

Changes

Update SslMeterBinder to publish expiry metrics for trust store certificate chains in addition to key store chains.

Add a store tag with values key and trust so that key store and trust store metrics can be distinguished.

Update the reference documentation for ssl.chain.expiry to describe trust store coverage and the new tag.

Tests

Added/updated tests to cover.

  • trust store-only bundle registration
  • key store and trust store metrics with the same chain aliases
  • trust store metric updates when bundles are registered and updated after binder construction

Fixes #49325

Signed-off-by: bbbbooo <hyeons1213@gmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 18, 2026
Signed-off-by: bbbbooo <hyeons1213@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monitor certificates from truststore in SslMeterBinder

3 participants