]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cve-update-nvd2-native: faster requests with API keys
authorDhairya Nagodra <dnagodra@cisco.com>
Mon, 11 Dec 2023 10:04:59 +0000 (02:04 -0800)
committerSteve Sakoman <steve@sakoman.com>
Thu, 4 Jan 2024 17:23:57 +0000 (07:23 -1000)
commiteb5ab00be33a503205401541e88c32ba9da1d75c
tree237fd695e9c858db52ff927f8cabc91d5e114f59
parentee2a6ade703317d09f7df60ef7ce300d8f868f54
cve-update-nvd2-native: faster requests with API keys

As per NVD, the public rate limit is 5 requests in 30s (6s delay).
Using an API key increases the limit to 50 requests in 30s (0.6s delay).
However, NVD still recommends sleeping for several seconds so that the
other legitimate requests are serviced without denial or interruption.
Keeping the default sleep at 6 seconds and 2 seconds with an API key.

For failures, the wait time is unchanged (6 seconds).

Reference: https://nvd.nist.gov/developers/start-here#RateLimits

Signed-off-by: Dhairya Nagodra <dnagodra@cisco.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 5c32e2941d1dc3d04a799a1b7cbd275c1ccc9e79)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/meta/cve-update-nvd2-native.bb