Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhel: mapping updater only attempts once per day #1209

Open
RTann opened this issue Jan 12, 2024 · 1 comment
Open

rhel: mapping updater only attempts once per day #1209

RTann opened this issue Jan 12, 2024 · 1 comment
Assignees
Labels
triaged The maintainers have seen this issue

Comments

@RTann
Copy link
Contributor

RTann commented Jan 12, 2024

The repo-2cpe mapping file and the container-name mapping file only update once per day (I think), so it makes sense to only bother fetching it once per day. However, ClairCore only attempts this once per day. If the URL happens to be down for that tiny period of time while ClairCore attempts to fetch the data, then it fails and won't be tried again until the next day.

This is not ideal, but is passable as ClairCore can still fallback on previous data and most (if not all) RHEL-based images can still be indexed correctly. However, if the URL happens to be down for the very first attempt, and there was no initial mapping file embedded in the image running ClairCore, then no RHEL indexing will occur.

@hdonnay hdonnay self-assigned this Jan 17, 2024
@hdonnay
Copy link
Member

hdonnay commented Jan 17, 2024

Can probably hack this into the current stuff; the real fix is a system-wide data store for this sort of garbage.

@hdonnay hdonnay added the triaged The maintainers have seen this issue label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged The maintainers have seen this issue
Development

No branches or pull requests

2 participants