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
We are running a pretty default starboard but continuously see errors triggered by the unavailability of secrets in our logs.
This seems to only happen for our gitlab CI jobs that are very shortlived, secrets are being auto-deleted accordingly.
What did you expect to happen:
No errors / no repeated errors on short-lived pods / deleted secrets.
Thank you for the feedback @timbuchwaldt I think this might be related to #808 , which makes me thinking about few solutions:
As suggested in Reconciler fast workload issue. #808, we could check if a Job runs for some time, but still chances are it will get deleted right after we checked its age.
Don't scan Jobs at all, but if you have long running Jobs you probably want to check them for vulnerabilities anyway.
Add exclusion logic based on label selectors:
In 0.15 we added new environment variable to exclude certain namespaces, i.e. OPERATOR_EXCLUDE_NAMESPACES, but maybe we need more granularity to exclude GitLab Jobs and similar workloads.
Yeah that is for sure not as stable, but could be better.
I think I'd want some jobs scanned, altough most are short-lived, too
Excluded namespaces sounds feasible for now, yeah! Those live in very specific namespaces without other things.
In general a more lenient failure-handling seems approriate to me, generally all pods could die before the scans are done/in between, so I think the operator should stop retrying after some time or if the pod or secrets or the like are gone.
What steps did you take and what happened:
We are running a pretty default starboard but continuously see errors triggered by the unavailability of secrets in our logs.
This seems to only happen for our gitlab CI jobs that are very shortlived, secrets are being auto-deleted accordingly.
What did you expect to happen:
No errors / no repeated errors on short-lived pods / deleted secrets.
Anything else you would like to add:
We see the following log repeat:
Environment:
starboard version
): 0.15.1kubectl version
): 1.22.5The text was updated successfully, but these errors were encountered: