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
@@ -85,6 +85,7 @@ To learn more about active deprecations, we recommend checking [GitHub Discussio
85
85
86
86
### Fixes
87
87
88
+
-**General**: Rebuild CA cert pool from scratch on each rotation to prevent monotonic memory growth ([#7691](https://github.com/kedacore/keda/issues/7691))
88
89
-**General**: Check updated status for Fallback condition instead of ScaledObject ([#7488](https://github.com/kedacore/keda/issues/7488))
89
90
-**General**: Fix int64 overflow in milli-quantity conversion for very large metric values ([#7441](https://github.com/kedacore/keda/issues/7441))
90
91
-**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))
0 commit comments