Skip to content
Discussion options

You must be logged in to vote

Hi,

Good question. Here's how vuls.db works:

Is the database used only for reading?

After fetching, yes. The database (BoltDB) is always opened with ReadOnly: true. However, the fetch itself is a write operation — each instance independently checks whether to download based on the Downloaded and LastModified timestamps stored in the DB metadata. Specifically, shouldDownload() triggers a re-fetch if:

The DB file doesn't exist, or
The schema version doesn't match, or
More than 1 hour has passed since Downloaded, and more than 6 hours have passed since LastModified
With autoscaling, each new pod starts without the DB file (unless it's on a persistent volume), so every new instance will fetch…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants