Comments (5)
Update: ok maybe I don't understand the logic. After running for a while with --ignore-annotations
, it seems to have populated my repo, and now it's showing Skip image
for everything
from sbom-operator.
Hi @samcornwell,
to populate a new repo you have to run the operator with --ignore-annotation
until all your sboms are created again, then you can remove the flag again. The purpose of the flag is just to force a one-time re-scan of all images. When they are scanned (and the operator did not restart) they are skipped again, when the image did not change, it uses an in-memory cache with the sha256's.
Of course it would be possible to instead always check the repo and check if the expected file is already there, but this would be much slower, this is the reason why I implemented it this way.
Does this solve your question?
from sbom-operator.
Edit: Disregard, I did not read the message closely enough.
Thank you. That's exactly what I tried doing, and it seemed like it was working. It seemed to scan everything. Then later I looked at my logs and saw that the most recent scans are skipping again, even though I still haven't removed the --ignore-annotations
flag yet. I expected that it would just scan over and over until I removed the flag, because that's what it appeared to be doing at first. Is there some other check that can cause skipping?
from sbom-operator.
Edit: Disregard, I did not read the message closely enough.
Update: I think I see what's going on. It appears there is a map in memory that tracks whether a particular image has been scanned before in the lifespan of the sbom-operator process, and it's being skipped based on that map.
If that's right, consider it resolved. Thank you
from sbom-operator.
Doh, I did not read your message close enough, apologies. Thank you.
from sbom-operator.
Related Issues (20)
- Clone fails with status 400 when trying to clone a private Azure DevOps repo HOT 6
- Feature request: Map k8s pod labels as project tags HOT 5
- Cloning with git-fallback-clone seems to fail HOT 12
- Deleting project from DependencyTrack fails when deleting pod HOT 4
- Adding pod label as tags fails because ctx.Pod.Labels is always empty HOT 1
- default cron job time ? HOT 1
- Mirror configuration for registries HOT 5
- Use with proxy registry may lead to "weird" behavior HOT 3
- Dependency Track project names HOT 2
- [FEATURE] Add more providers / other orchestrators HOT 10
- dtrack Base-URL HOT 3
- [FEATURE] - Image Name as Project Name in DTrack Integration HOT 2
- [Question] - Exclude certain images from scanning HOT 2
- The clusterrole is missing a confimag rule HOT 1
- New patch release HOT 2
- Private registry authentication error HOT 12
- Cleanup /tmp during realtime scanning HOT 2
- A cluster behind a http proxy: "connect: connection timed out" when getting the image HOT 2
- [FEATURE] Allow include/exclude of Labels that should be converted to Tags as a regular expression HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbom-operator.