> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.endorlabs.com/feedback

```json
{
  "path": "/risk-remediation/endor-patches/configure-jfrog-artifactory/index",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Configure JFrog Artifactory to use Endor Patches

> Learn how to configure your JFrog Artifactory setup to use Endor Patches.

Configure JFrog Artifactory to ensure that the patched dependencies from Endor Labs are fetched and used correctly. The following procedures use Maven as the repository type, you can select the repository type based on your requirements.

## Create a remote repository for Endor Patching

Create a remote repository to fetch artifacts from the Endor Patch repository.

1. Log in to the JFrog Platform as an administrator.
2. In the **Administration** module, select **Repositories**.
3. Select **Create a Repository** and click **Remote**.
4. Select **Maven** from the list of repository types.
5. In **Repository Key**, enter a name such as `endor-patch`.
6. Create an API Key in Endor Labs to authenticate to the Endor Patch repository with "Read-Only" permissions. See [creating an API key](/platform-administration/api-keys) for more detail. Keep these details handy.
7. In **URL**, enter the Endor Patch repository URL, `https://factory.endorlabs.com/v1/namespaces/$NAMESPACE/maven2`.
   Replace `$NAMESPACE` with your Endor Labs tenant name.
8. Enter your Endor Labs API Key ID as the **User Name** and your Endor Labs API Key secret as the **password** for your new remote repository.
9. Click **Test** to ensure you are able to successfully connect to the remote repository.
   <img src="https://mintcdn.com/endorlabs-b4795f4f/2CFeZIRm7eKUPEq0/images/risk-remediation/endor-patches/remoterepoartifactory.webp?fit=max&auto=format&n=2CFeZIRm7eKUPEq0&q=85&s=df3dbfb9e143a501df85271d728fdc68" alt="Artifactory Remote Repository" width="2748" height="1280" data-path="images/risk-remediation/endor-patches/remoterepoartifactory.webp" />
10. Click **Advanced** and select **Priority Resolution** to ensure that the Endor patch repository is prioritized over other remote repositories.
    <img src="https://mintcdn.com/endorlabs-b4795f4f/2CFeZIRm7eKUPEq0/images/risk-remediation/endor-patches/remoterepoartifactoryadvanced.webp?fit=max&auto=format&n=2CFeZIRm7eKUPEq0&q=85&s=6001ed5dc3fc37dcb0a1c57d10470be3" alt="Artifactory Remote Repository Advanced" width="2900" height="1354" data-path="images/risk-remediation/endor-patches/remoterepoartifactoryadvanced.webp" />
11. Click **Create Remote Repository**.

## Create a virtual repository for Endor Patching

Create a virtual repository to simply access to Endor patch repositories and other remote repositories.

1. Log in to the JFrog Platform.
2. In the **Administration** module, select **Repositories**.
3. Select **Create a Repository** and click **Virtual**.
4. Select **Maven** from the list of repository types.
5. In **Repository Key**, enter a name such as `endor-patch`.
6. Add the `endor-patch` remote repository to this virtual repository along with other required remote repositories.
7. Ensure `endor-patch` repository is at the top of the list to prioritize it if you are using auto patching. See [the auto patching documentation for more details](/risk-remediation/endor-patches/auto-patching)
   <img src="https://mintcdn.com/endorlabs-b4795f4f/2CFeZIRm7eKUPEq0/images/risk-remediation/endor-patches/virtualrepositoryartifactory.webp?fit=max&auto=format&n=2CFeZIRm7eKUPEq0&q=85&s=b283c5aa6bd941ec047cdc48bb329c38" alt="Artifactory Virtual Repository" width="2560" height="1264" data-path="images/risk-remediation/endor-patches/virtualrepositoryartifactory.webp" />
8. Click **Create Virtual Repository**.

## Edit an existing virtual repository

Edit an existing virtual repository to access the Endor Patch repositories and other remote repositories.

1. Log in to the JFrog Platform.
2. In the **Administration** module, select **Repositories**.
3. Select the **Virtual** tab and click into the existing virtual repository you'd like to edit.
4. Under **Repositories** move the `endor-patch` remote repository to the selected repositories.
5. Ensure `endor-patch` repository is at the top of the list of selected repositories to prioritize it if you are using auto patching. See [the auto patching documentation](/risk-remediation/endor-patches/auto-patching) for more information.
6. Click **Save**.
