NuGet - Private packages
For Aikido to update dependencies that include private packages, it needs access to your private NuGet registries so it can generate accurate lockfile updates.
Aikido supports 2 ways of configuring connections with your private NuGet registry:
Via a
nuget.configfileVia credentials for the dotnet cli
1. Configuration via nuget.config file
Prerequisites
For private NuGet packages, Aikido uses a nuget.config file to authenticate with the private registry. This file will overwrite the nuget.config in the root of the repository. It is possible to configure multiple private registries in this file.
Example nuget.config for accessing private packages on GitHub's NuGet registry:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="github" value="https://nuget.pkg.github.com/AikidoSec/index.json" />
</packageSources>
<packageSourceCredentials>
<github>
<add key="Username" value="AikidoSec" />
<add key="ClearTextPassword" value="ghp_ABC123...XYZ" />
</github>
</packageSourceCredentials>
</configuration>Take a look at the following docs for more information on authenticating with private NuGet registries.
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:
Go to your account's settings page for the Autofix in Aikido, here.
Click on "Connect Registry", the private registry modal will now be shown

Select "Nuget" as package manager and select the
nuget.configoption

Fill in your
nuget.configwith authentication information. Aikido securely encrypts your configuration file until just before they are used.Click "Connect Registry" to save the configuration
2. Configuration via .NET's nuget CLI
For the CLI config, Aikido needs to have the registry's URL, username and password which can be used to authenticate with the private registry. Once you have this information, you can configure it following the steps below:
Go to your account's settings page for the Autofix in Aikido, here.
Click on "Connect Registry", the configuration modal will now be shown
Select "Nuget" as package manager and then select the "NuGet CLI Registry" option

Enter the details in the input fields and click on "Connect Registry" to save the configuration
Last updated
Was this helpful?