Sonatype Nexus Repository

Route your registry traffic through Aikido's registry proxy by configuring Nexus Repository as an intermediary. Nexus pulls packages from Aikido instead of the public registries, so every package your team installs is checked for malware, age restrictions, and known vulnerabilities.

1

Get your Aikido proxy URL

Go to Settings > Registry Proxy, select NPM or PyPI and copy the upstream proxy URL

2

Create a Proxy Repository in Nexus

  1. In Nexus, go to Settings > Repository > Repositories.

  2. Click Create Repository and select npm (proxy) or pypi (proxy).

  3. Give the repository a name, for example aikido-npm or aikido-pypi.

  4. Under Remote Storage, paste your Aikido proxy URL from step 1.

  5. Save the repository.

3

(Optional) Create a Group Repository

If you also have internal packages in a hosted Nexus repository, create a Group Repository to expose both under a single URL:

  1. Go to Settings > Repository > Repositories > Create Repository and select npm (group) or pypi (group).

  2. Add your hosted repository and the proxy repository as members.

  3. Point your package manager at the group repository URL instead.

Group repositories are read-only in Nexus Community Edition. To publish packages, always push directly to the hosted repository.

4

Configure Developer Machines to use Nexus

Point each developer's package manager at the Nexus repository. See Sonatype's documentation for the exact steps, including authentication setup:

5

(Optional) Block the public registry with Device Protection

Once Nexus is in place, developers can still bypass it by pointing their package manager directly at the public registry. Deploy Aikido Device Protection to enforce that all traffic goes through your private registry.

Block Public Package Registries

Last updated

Was this helpful?