You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
142682: security: cache certificate expiration metrics as pointers r=angles-n-daemons a=angles-n-daemons
security: cache certificate expiration metrics as pointers
Changes in #130110 were added to add labelled ttl metrics to client certificates. It achieved this by changing the system which cached certificate expiries to cache on a composite struct of two metrics, rather than just an expiration metric.
The struct itself housed the metrics as inline values, rather than pointers, so updates were registered in the cached values only, and not the registry in which they were reporting. This means that updates to client certificate expirations would not be reflected by the ttl or expiration metrics.
This ticket modifies those elements so that they are not copied when they are pulled from the cache.
Fixes: #142681
Epic: CRDB-40209
Release note (bug fix): Fixes bug in client certificate expiration metrics.
Co-authored-by: Brian Dillmann <[email protected]>
0 commit comments