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

Return to the regular view of this page.

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 for more detail. Keep these details handy.
  7. In URL, enter the Endor Patch repository URL. Make sure to replace $NAMESPACE with your Endor Labs tenant name: https://factory.endorlabs.com/v1/namespaces/$NAMESPACE/maven2.
  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. Artifactory Remote Repository
  10. Click Advanced and select Priority Resolution to ensure that the Endor patch repository is prioritized over other remote repositories. Artifactory Remote Repository Advanced
  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 Artifactory Virtual Repository
  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 Repositotires 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 for more details
  6. Click Save.