Links

Nexus Repository Manager setup

Feature availability This feature is available with Enterprise plans. See pricing plans for more details.
Supported Projects ****The Nexus Repository Manager integration currently supports Node.js (npm and Yarn) and Maven projects. Gradle projects are not currently supported.
Connecting Nexus Repository Manager enables Snyk to resolve all direct and transitive dependencies of packages hosted on the Nexus registry and calculate a more complete, accurate dependency graph and related vulnerabilities.
You can configure these types of Nexus Repository Manager:
  • Publicly accessible instances protected by basic authentication
  • Instances on a private network accessed through Snyk Broker (with or without basic authentication).
Versions supported
  • Nexus Repository Manager version 3.x is fully supported.
  • Nexus Repository Manager version 2.15+ is in Beta
These instructions apply to configuring publicly accessible instances. For instructions on configuring a brokered instance see Set up Snyk Broker with Nexus Repository Manager.

Obtain Broker token for Nexus integration

  1. 1.
    Go to settings
    Settings icon
    > Integrations > Package Repositories > Nexus
  2. 2.
    Verify that you see the screen to configure Nexus.
Configure Nexus
Configure Nexus
If you do not see the Snyk Broker switch, you do not have the necessary permissions and can only add a publicly accessible instance.
Submit a request to Snyk Support if you want to add a private registry.
When you have permissions to add a private registry, continue with the instructions on Set up Snyk Broker with Nexus Repository Manager.

Set up publicly accessible instances

On the page to configure Nexus, enter the information for the version you are using.
Nexus 3
Nexus 2
  • Enter the URL of your Nexus instance; this must end with /repository
  • Enter Username
  • Enter Password
  • Click Save
  • Enter URL of your Nexus instance, this must end with /nexus/content
  • Enter Username
  • Enter Password
  • Click Save

Nexus behind reverse proxy

If your Nexus server is running behind a reverse proxy, for example, Nginx, the URL might not end with the default /repository for Nexus 3 or /nexus/content for Nexus 2, depending on what routes have been configured in the reverse proxy. If this is the case, make sure to use the URL configured in the reverse proxy.
Example: for Nexus 3: if http://nexus.company.io/repository is mapped to http://nexus.company.io/my-company/my-repository, use http://nexus.company.io/my-company/my-repository.
Example: for Nexus 2: if http://nexus.company.io/nexus/content is mapped to http://nexus.company.io/my-nexus-content, use http://nexus.company.io/my-nexus-content.
A green success message appears if Snyk can contact your repository.
If you see a yellow warning message, check your URL and credentials and try again.

Nexus user permissions

The Nexus user needs the following privileges, either as part of Role or added individually:
Nexus 3
Nexus 2
  • nx-metrics-all (for the system status check endpoint)
  • nx-repository-view-[*-* | <ecosystem-repo-name>]-read
  • nx-repository-view-[*-* | <ecosystem-repo-name>]-browse
  • Status - Read
  • All [<ecosystem>] Repositories - (read)
  • [All Repositories | <repoName>] - (view)
© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.