crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

Improvement/Refresh frequency for data sources

Open buixor opened this issue 4 years ago • 0 comments

When scenarios/parsers are using data:source_url directives, it would be nice to be able to specify a "refresh" period (ie. "24h", "30d" etc.)

cscli hub upgrade (and similar sub-commands) would then check the file timestamp against a given refresh period.

if the refresh period is reached, it would then automatically re-download the resource, allowing users running cscli hub upgrade on a regular basis to ensure that they keep up-to-date resources.

buixor avatar Jul 28 '21 10:07 buixor