Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Nexus Container Registry

Integrate your Nexus on-premises account with OX to centralize security findings alongside container, pipeline, cloud, and runtime signals already in OX.

OX scans Nexus on a schedule and on demand, enriches findings with OX context (application mapping, workflows, and compliance), and presents a unified queue for investigation and reporting.

After you connect, Nexus scan results appear in the Active issues page (use the filter Source tool > Nexus).

What OX adds

  • Context and correlation: OX maps findings to applications, services, and teams to show impact and ownership.

  • Prioritization with severity factors: OX may reprioritize scanner severities when exploitability and environment context reduce risk (for example, Critical → High). Severity factors explain why the priority changed.

  • Evidence at a glance: When available, OX displays scanner evidence, file locations, and remediation guidance alongside OX analytics to speed triage.

Connection methods

OX connects to Nexus Container Registry using a Nexus user token. The token provides a user token name and passcode, which are entered in the User Name and Password fields in OX instead of the Nexus account login credentials.

Create a dedicated Nexus account with the required read permissions and generate a user token for that account. Do not enter your personal Nexus username or password in OX.

For general information about connection methods, see Connection methods.

Prerequisites

  • OX permission to configure connectors

  • Access to the Nexus on-premises instance you want to connect.

  • Nexus user tokens enabled in your Nexus Repository instance, and permission for the dedicated account to access its user token (nx-usertoken-current).

  • Add the OX Security IP address to Nexus's whitelist or your firewall rules.

  • The Docker-hosted repository in Nexus has either an HTTP or HTTPS port enabled.

Connect Nexus Container Registry to OX

Step 1: Create an OX role and local user [Nexus]

Create a dedicated Nexus user for OX. Use this account to generate the user token; do not enter its login password in OX.

The step has several parts.

Create role and permissions

  1. Verify that the prerequisites are in place.

  2. Log in to the Nexus repository.

  3. Select the Gear icon and select Roles from the menu pane.

  4. In Roles, select Create Role.

  5. Enter the details:

    • Role type: Nexus role

    • Role ID: A text identifier of your choice.

    • Role name: A descriptive name.

  6. Select the Modify Applied Privileges button.

  7. In Privileges Selection, select the privileges:

    • nx-repository-view -*-*- browse

    • nx-repository-view -*-*- read

    • nx-repository-view-docker -*- browse

    • nx-repository-view-docker -*- read

    • nx-search-read

    • nx-repository-admin-docker-*-read

  8. Select Confirm.

  9. To save the new role, scroll to the bottom of the screen and select Save.

Create user

  1. From the menu pane, select Users.

  2. Select the Create local user button.

  3. Complete the mandatory fields:

    • Username

    • First name

    • Last name

    • Email address to receive notifications.

    • Password and confirm it

    • Status: Active

  4. Scroll down to Roles and add the role to the Granted box.

  5. Select Create local user. A success message appears. If the verification fails, check the credentials.

Enable Docker-hosted repository port

  1. Select Repositories from the menu pane.

  2. Select the Docker-hosted repository.

  3. Enable either of the HTTP ports.

Step 2: Generate a Nexus user token [Nexus]

Generate a user token for the dedicated Nexus account created in Step 1. OX uses the token name and passcode to authenticate to Nexus Container Registry.

  1. Sign in to Nexus Repository using the dedicated OX account.

  2. Select your username in the upper-right corner.

  3. Select User Token.

  4. Select Access User Token. If a token has not been generated, generate one first.

  5. If prompted, enter your Nexus account credentials and select Authenticate.

  6. Copy the user token name (name code) and user token passcode (pass code). Use these values when configuring the connector in OX.

Note: Store the token credentials securely. Do not enter the Nexus account password in OX. For more information, see Sonatype User Tokens.

Step 3: Connect OX to Nexus [OX]

  1. Verify that the prerequisites are in place.

  2. In OX, go to Connectors > Registry > Nexus Container Registry to open the connector configuration dialog.

  1. In Configure your Nexus Container Registry credentials, enter the following parameters.

Parameter
Description

Nexus Container Registry Host URL

Enter the URL of your Nexus Container Registry instance.

User Name

Enter the Nexus user token name (name code) generated in Step 2. Do not enter the Nexus account username.

Password

Enter the Nexus user token passcode (pass code) generated in Step 2. Do not enter the Nexus account password.

Connection Name

The name is generated automatically by OX. You can change it at any time.

OX Broker

Enable to connect through an OX Broker. Use this option when Nexus Container Registry is accessible only through an internal network or when your organization requires all connector traffic to be routed through an OX Broker.

Bypass SSL Verification (not recommended)

Enable this option if your environment lacks a proper certificate or uses a self-signed certificate

  1. Select CONNECT. OX validates the credentials.

Optional configurations

  • To change the images OX scans and monitors, see the section Change the locations OX scans.

  • To connect more Nexus accounts to the same organization in the OX platform, repeat the process.

Change the locations OX scans

By default, OX scans everything if you did not make a specific selection. Once you have a connection, you can change the locations that OX scans and monitors.

  1. Use the Gear icon at the bottom of the Configuration screen.

  2. OX displays the locations or objects that OX scans and monitors.

  3. Change the selection as needed.

  4. Select SAVE.

Last updated