> [!NOTE]
> Premium and Enterprise (Deprecated) [service tiers](https://docs.cloud.google.com/security-command-center/docs/service-tiers.md.txt) (requires [organization-level activation](https://docs.cloud.google.com/security-command-center/docs/activate-scc-overview.md.txt#overview_of_organization-level_activation))

> [!CAUTION]
> The Security Command Center Enterprise service tier will shut down on May 21, 2027. If your organization uses the Enterprise service tier, then the organization will automatically move to the Premium service tier on or after May 21, 2027. Contact your account representative or a [Google Cloud sales specialist](https://cloud.google.com/contact) if you have questions.

To access and download Assured Open Source Software (Assured OSS) packages, you can set up a
JFrog Artifactory or Sonatype Nexus remote repository. This configuration
lets you proxy and download Assured OSS packages through your
existing artifact manager. For more information about repository options, see
[Assured OSS repository
options](https://docs.cloud.google.com/assured-open-source-software/docs/overview#aoss-repository-options).

This document applies to the [Assured OSS premium
tier](https://docs.cloud.google.com/assured-open-source-software/docs/overview) only. For the free tier, see
[Download Assured OSS packages using a remote
repository](https://docs.cloud.google.com/assured-open-source-software/docs/remote-repository-access).

## Before you begin

1. [Integrate Assured OSS with
   Security Command Center](https://docs.cloud.google.com/security-command-center/docs/integrate-aoss-with-scc).

2. [Validate connectivity](https://docs.cloud.google.com/assured-open-source-software/docs/validate-connection.md.txt)
   to Security Command Center for the requested service accounts.

## Set up a remote repository using JFrog Artifactory

1. Sign in to the JFrog Artifactory repository manager. Ensure that you have the required privileges to create a new remote repository.
2. Select the option to create a new remote repository in your repository manager.
3. Select the appropriate repository type (for example, select `Maven` for Java, `PyPi` for Python, `npm` for JavaScript, or `Go` for Go).
4. Optionally, test the connection to the repository
   using the following steps:

   1. In the **Repository Key** field, enter a unique name or identifier for the remote repository.
   2. In the **URL** field, enter one of the following:

      - Java:

        ```
        https://LOCATION-maven.pkg.dev
        ```
      - Python:

        ```
        https://LOCATION-python.pkg.dev
        ```
      - JavaScript (NPM):

        ```
        https://LOCATION-npm.pkg.dev
        ```
      - Go:

        ```
        https://LOCATION-go.pkg.dev
        ```

      Replace `LOCATION` with a [supported region](https://docs.cloud.google.com/security-command-center/docs/integrate-aoss-with-scc.md.txt#supported-regions).

      Don't enter the complete domain name because this action might return an
      HTTP `404` or HTTP `405` status code.
   3. Leave the remaining fields blank.

   4. Click **Test**.
      The connection is successful when you see the following output:

      `Successfully connected to server`
5. To create a new remote repository, enter the following information:

   1. In the **Repository Key** field, enter a unique name or identifier for the remote repository. For example, `assured-oss-java-repo`.
   2. In the **URL** field, enter one of the following:

      - Java:

        ```
        https://LOCATION-maven.pkg.dev/PROJECT_ID/assuredoss-java
        ```
      - Python:

        ```
        https://LOCATION-python.pkg.dev/PROJECT_ID/assuredoss-python
        ```
      - JavaScript (NPM):

        ```
        https://LOCATION-npm.pkg.dev/PROJECT_ID/assuredoss-javascript
        ```
      - Go:

        ```
        https://LOCATION-go.pkg.dev/PROJECT_ID/assuredoss-go
        ```

      Replace the following:
      - `PROJECT_ID`: the ID of the project that
        you selected when you set up Assured OSS.

      - `LOCATION`: a [supported
        region](https://docs.cloud.google.com/security-command-center/docs/integrate-aoss-with-scc#supported-regions).

   3. In the **User Name** field, enter `_json_key_base64`.

   4. In the **Password** field, provide the base64-encoded string of the
      service account JSON key file. Use the entire base64-encoded string
      in a single line as the password. To get the base64-encoded string, run the
      command `cat key-filename.json | base64 -w 0`.

   5. For Python only, in the **Registry URL** field, enter the following:

      ```
      https://LOCATION-python.pkg.dev/PROJECT_ID/assuredoss-python
      ```

      <br />

6. For Go only, in the **Advanced Settings** tab, select **Bypass HEAD
   Requests**.

7. Click **Create Remote Repository**.

   For Python packages, append the obtained URL with `/simple`. Use the URL as
   the `index-url` in the `pip install` command to download the required Python
   packages. For example, if the obtained URL of the repository is
   `https://a0a87smb7hcda.jfrog.io/artifactory/api/pypi/assured-oss-python-repo`,
   then the corresponding `index-url` is
   `https://a0a87smb7hcda.jfrog.io/artifactory/api/pypi/assured-oss-python-repo/simple`.

After the new remote repository is set up, configure your build tools (for
example, Apache Maven, Gradle Build Tool, or pip) to use this new remote
repository.

### Known issues

Testing the connection using the **Test** button can return an error even if the
connection is configured correctly. We recommend that you create the remote
repository irrespective of the test button behavior. For another way of
confirming a connection, see [Validate your connection](https://docs.cloud.google.com/assured-open-source-software/docs/validate-connection.md.txt).

## Set up a remote repository using Sonatype Nexus

1. Sign in to your Sonatype Nexus repository manager. Ensure that you have the required privileges to create a new remote repository.
2. Select the option to create a new repository.
3. Select the appropriate repository type (for example, select `Maven` for Java, `PyPi` for Python, `npm` for JavaScript, or `Go` for Go).
4. Enter the following details for the new repository:

   1. In the **Name** field, enter a unique name or identifier for the remote repository.
   2. In the **Remote Storage** field, choose from the following:

      - Java:

        ```
        https://LOCATION-maven.pkg.dev/PROJECT_ID/assuredoss-java
        ```

        <br />

      - Python:

        ```
        https://LOCATION-python.pkg.dev/PROJECT_ID/assuredoss-python
        ```

        <br />

      - JavaScript (NPM):

        ```
        https://LOCATION-npm.pkg.dev/PROJECT_ID/assuredoss-javascript
        ```

        <br />

      - Go:

        ```
        https://LOCATION-go.pkg.dev/PROJECT_ID/assuredoss-go
        ```

        <br />

      Replace the following:
      - `PROJECT_ID`: the ID of the project that
        you selected when you set up Assured OSS.

      - `LOCATION`: a [supported
        region](https://docs.cloud.google.com/security-command-center/docs/integrate-aoss-with-scc#supported-regions).

5. Under **HTTP** , select **Authentication**.

6. Specify the following:

   1. In the **Authentication type** field, enter `Username`.
   2. In the **Username** field, enter `_json_key_base64`.
   3. In the **Password** field, provide the base64-encoded string of the service account JSON key file. Use the entire base64 encoded-string in a single line as the password. To get the base64-encoded string, run the command `cat key-filename.json | base64`.
7. Click **Create Repository**.

After the new remote repository is set up, point your build tools (for example,
Apache Maven, Gradle Build Tool, or pip) to use this new remote repository.

## What's next

- [Download Go packages using direct repository access](https://docs.cloud.google.com/security-command-center/docs/aoss-download-go-packages.md.txt)
- [Download Java packages using direct repository access](https://docs.cloud.google.com/security-command-center/docs/aoss-download-java-packages.md.txt)
- [Download NPM packages using direct repository access](https://docs.cloud.google.com/security-command-center/docs/aoss-download-npm-packages.md.txt)
- [Download Python packages using direct repository access](https://docs.cloud.google.com/security-command-center/docs/aoss-download-python-packages.md.txt)