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: handle transient API errors and improve TLS profile fallback
Two fixes to the TLS profile integration:
1. NewTLSConfigFromProfile was only called in the success branch of
the TLS profile fetch. On error paths (non-OpenShift, not found),
no TLS config was applied, leaving Go's bare defaults. Now it
always runs with an explicit Intermediate fallback on all error
paths.
2. Transient API errors (ServiceUnavailable, Timeout, ServerTimeout,
TooManyRequests, DeadlineExceeded) crashed the operator. Now they
fall back to Intermediate defaults and set tlsProfileFetched=true
so the SecurityProfileWatcher self-heals when the API recovers.
Also adds context.WithTimeout (10s) to both TLS profile and adherence
policy fetches, and simplifies adherence error handling since the
watcher will retry on its own.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Ugo Giordano <ugiordan@redhat.com>
0 commit comments