Follow the steps below to add a JFrog Artifactory Private registry to scan JFrog Artifactory repositories. The sensor uses the Artifactory Native API with AQL (Artifactory Query Language) for the listing phase of the registry scan to collect image metadata information for the repository provided in the registry scan schedule.
The AQL query used by the sensor has the following values:
If you are using JFrog Artifactory Private Registry and you want to scan an image from a remote repository, you need to add the full repository path with "-cache". When images are pulled from the remote repository REMOTE_REPO, it creates a new repository under the artifactory REMOTE_REPO-cache, and images are cached under this cache repo.
In AQL statements, to search for images, you need to use the cache repository name REMOTE_REPO-cache. Whereas to pull an image or login, you need to use the actual repository name REMOTE_REPO.
For example, if the actual repository name is csqualys, you need to use the repository name as csqualys-cache.
Follow these steps to add your registry:
You can generate the access token on the JFrog platform and use it here for the authentication. For more information about access tokens, see JFrog Official Documentation: Access Tokens.
After adding the registry information, click Next to specify scan settings. Similar to other registry types, you can choose to scan immediately (On Demand) or on a recurring basis (Automatic).
For information about scan settings, see Configure Scan Settings.