Skip to main content
Scanning Practices
Vulnerability scanning on private packages - Maven

Vulnerability scanning on private packages - Maven

When letting Aikido scan your dependencies in repositories with private maven packages, Aikido would need to also have access to the private packages. You can now provide private Maven settings.xml configuration in Aikido for this.

Prerequisites

Prepare settings.xml

For private Maven packages, Aikido uses a settings.xml file to authenticate with the private registry.

Example settings.xml for accessing private packages on mvnrepository registry:

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>your-repository-id</id>
      <username>your-username</username> <!-- Optional, you can leave this as a dummy value -->
      <password>ACCESS_TOKEN</password>
    </server>
  </servers>
</settings>

Configuration in Aikido

Once the prerequisites are fulfilled, you can configure Aikido to authenticate with your private NuGet registry when updating the dependencies by following the steps below:

  1. Go to your account's Settings > Repositories page in Aikido.

  2. Click Actions > Private Registry Connections.

  3. Select the Maven tab, and paste your settings.xml contents here.

  4. Click Apply Changes to save the configuration.

  5. In the next scans, this settings.xml will be used by Aikido.