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
fix: rebuild CA cert pool on rotation to prevent monotonic growth
Previously, LoadGrpcTLSCredentials created a single x509.CertPool at
startup and called AppendCertsFromPEM on the same pool for every
fsnotify rotation event. Because x509.CertPool only ever grows, this
caused unbounded memory growth over the lifetime of the operator pod.
This commit introduces buildCertPool() which constructs a fresh pool
from scratch on every call. On rotation, the new pool atomically
replaces the old one under the existing certMutex. GetConfigForClient
is used so each TLS handshake reads the current pool rather than the
one pinned at startup.
Fixes#7691
Signed-off-by: ManvithaP-hub <62259625+ManvithaP-hub@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ To learn more about active deprecations, we recommend checking [GitHub Discussio
88
88
-**General**: Check updated status for Fallback condition instead of ScaledObject ([#7488](https://github.com/kedacore/keda/issues/7488))
89
89
-**General**: Fix int64 overflow in milli-quantity conversion for very large metric values ([#7441](https://github.com/kedacore/keda/issues/7441))
90
90
-**General**: Fix ScaledObject admission webhook to return validation error from `verifyReplicaCount`, preventing invalid ScaledObjects from being created ([#5954](https://github.com/kedacore/keda/issues/5954))
91
+
-**General**: Rebuild CA cert pool from scratch on each rotation to prevent monotonic memory growth ([#7691](https://github.com/kedacore/keda/issues/7691))
91
92
-**Azure Data Explorer Scaler**: Remove clientSecretFromEnv support ([#7554](https://github.com/kedacore/keda/pull/7554))
92
93
-**Cron Scaler**: Fix metric name generation so cron expressions with comma-separated values no longer produce invalid metric names ([#7448](https://github.com/kedacore/keda/issues/7448))
0 commit comments