]> git.ipfire.org Git - thirdparty/suricata-update.git/commit
sources: give each filename from a source a unique filename 341/head
authorJason Ish <jason.ish@oisf.net>
Tue, 5 Mar 2024 23:12:55 +0000 (17:12 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 5 Mar 2024 23:12:55 +0000 (17:12 -0600)
commit8725e565a78caffae79584c6ec48670ca71d6618
tree4b1afff9e93b60cbaf6bd5544b4e64ad41ff29a5
parent935d361c669343d9fd76f45b159e682f285eb4fc
sources: give each filename from a source a unique filename

To prevent dataset files from difference sources from overwriting each
other, give each file downloaded and extracted a prefix based on the
URL (a hash). This ensures unique filenames across all rulesets.

This mostly matters for datasets, as when datasets are processed we
are working with a merged set of filenames, unlike rules which are
parsed much earlier when we still have a list of files.

Not the most elegant solution, but saves a rather large refactor.

Bug: #6833
CHANGELOG.md
suricata/update/main.py