From 66aac2588d7b28b28694af48eac6d9b368098ba2 Mon Sep 17 00:00:00 2001 From: Noe Galea Date: Fri, 17 May 2024 20:27:24 +0100 Subject: [PATCH] manuals: document NVDCVE_API_KEY variable Add brief documentation of NVDCVE_API_KEY variable, that was added in 4.2.3, and emphasize that its use results in lower NVD API request times. (From yocto-docs rev: 9c7b452441bad2d7c929383d4665dfddb8f7ea72) Signed-off-by: Noe Galea Reviewed-by: Michael Opdenacker Reviewed-by: Andrew Murray Signed-off-by: Richard Purdie --- documentation/dev-manual/vulnerabilities.rst | 4 ++++ documentation/ref-manual/variables.rst | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/documentation/dev-manual/vulnerabilities.rst b/documentation/dev-manual/vulnerabilities.rst index 1bc2a85929..983d4ad3c6 100644 --- a/documentation/dev-manual/vulnerabilities.rst +++ b/documentation/dev-manual/vulnerabilities.rst @@ -57,6 +57,10 @@ applied and that the issue needs to be investigated. ``Ignored`` means that afte analysis, it has been deemed to ignore the issue as it for example affects the software component on a different operating system platform. +By default, no NVD API key is used to retrieve data from the CVE database, which +results in larger delays between NVD API requests. See the :term:`NVDCVE_API_KEY` +documentation on how to request and set a NVD API key. + After a build with CVE check enabled, reports for each compiled source recipe will be found in ``build/tmp/deploy/cve``. diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 3f37f42f21..6b5b5c0762 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -5585,6 +5585,21 @@ system and gives an overview of their function and contents. NON_MULTILIB_RECIPES = "grub grub-efi make-mod-scripts ovmf u-boot" + :term:`NVDCVE_API_KEY` + The NVD API key used to retrieve data from the CVE database when + using :ref:`ref-classes-cve-check`. + + By default, no API key is used, which results in larger delays between API + requests and limits the number of queries to the public rate limits posted + at the `NVD developer's page `__. + + NVD API keys can be requested through the + `Request an API Key `__ + page. You can set this variable to the NVD API key in your ``local.conf`` file. + Example:: + + NVDCVE_API_KEY = "fe753&7a2-1427-347d-23ff-b2e2b7ca5f3" + :term:`OBJCOPY` The minimal command and arguments to run ``objcopy``.