You can configure two types of Artifactory Package Repository integrations:
- Publicly accessible instances protected by basic authentication
- Instances on a private network accessed via a broker
Brokered support is only available for Artifactory instances on private networks that do not require username & password authentication.
As the integration is per org, and the broker is per integration it is therefore not possible today to have an org with both Node & Maven Artifactory integration if a broker is needed.
Please use separate orgs for Artifactory with Broker and Maven direct integrations.
- Go to
Settings > Integrations > Package Repositories > Artifactory
- You should see this screen at the beginning.
If you do not see the “Publicly accessible” switch you do not have the necessary permissions and can only add a publicly accessible instance.
Contact firstname.lastname@example.org if you want to add a private registry
Set up publicly accessible instances
- Enter URL of your Artifactory instance, this must end with “/artifactory”
- Enter Username
- Enter Password
- Hit Save
Set up brokered instances
- Toggle Artifactory (Publicly accessible) switch, you should now see a form for generating an Artifactory Broker token.
- Click on Generate and Save button
- Copy the token that was generated for you, it will be needed to set up new Broker Client
- Set up a new Broker Client in your prod environment:
- Pull Broker Artifactory image from Dockerhub:
docker pull snyk/broker:artifactory
- Run docker image and provide environment variables
docker run --restart=always \ -p 8000:8000 \ -e BROKER_TOKEN=secret-broker-token \ -e ARTIFACTORY_URL=<yourdomain>.artifactory.com \ snyk/broker:artifactory
BROKER_TOKENis token you just generated in Integration > Artifactory form
ARTIFACTORY_URLis URL to your artifactory instance, including /artifactory at the end of URL
- Check connection status by refreshing Artifactory Integration Settings page, no connection error should be displayed