This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Private package manager integration for NuGet

Learn how to configure Endor Labs to access private NuGet repositories for dependency resolution and security scanning.

This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Learn how to configure Endor Labs to access private NuGet repositories for dependency resolution and security scanning.

Configure Endor Labs to integrate with private NuGet repositories to access proprietary dependencies during security scanning and analysis. When your .NET projects depend on packages hosted in private or corporate repositories, Endor Labs requires authentication credentials to resolve these dependencies and generate a complete bill of materials.

This integration enables Endor Labs to:

  • Access private NuGet packages during dependency resolution
  • Generate comprehensive security analysis including private dependencies
  • Maintain complete visibility into your software supply chain

Endor Labs integrates with your self-hosted package repositories and source control systems to give you visibility into your environment. Package manager integrations allow users to simplify scanning using custom repositories.

Endor Labs generally respects package authentication and configuration settings and a package manager integration is usually not required to scan private packages successfully.

  • Use package manager integrations to simplify scanning when authentication to private repositories is not part of standard manifest or settings files.

  • Package manager integrations allow you to set custom repositories for each package ecosystem and the priority of each repository for scanning.

To set up a package manager integration:

  1. Sign in to Endor Labs and select Integrations from the left sidebar.

  2. Click Manage in the package manager configuration you want to customize.

  3. Select Add Package Manager.

  4. Enter the name of the package manager.

  5. Select either Basic or AWS Code Artifactory as Authentication Type.

    See AWS authentication for more information.

To connect to private repositories of NuGet enter the package manager URL and the package registry credentials such as username and password.

Basic Authentication for package manager integrations

  1. Select Integrations from the left sidebar.
  2. Click Manage in the package manager configuration you want to customize.
  3. Click the vertical three dots of the package manager configured and select Test Connection.
Note
The integration does not perform authentication or authorization checks on the package manager repository.

Use endorctl to create a package manager resource through an API call and configure authentication for accessing private repositories during scans.

Run the following command to create a package manager resource and authenticate to private repository.

Replace:

  • username with your package registry username
  • xxxx with your package registry password
  • namespace with your namespace.
endorctl api create  -r PackageManager -n <namespace> -d '
{
    "meta": {
        "name": "test",
        "description": "test"
    },
    "spec": {
        "nuget": {
            "priority": 1,
            "url": "package manager url",
            "user": "username",
            "password": "xxxx"
        }
    },
    "propagate": true
} '