Skip to main content

JFrog Artifactory Setup

The Sonatype Repository Firewall for JFrogArtifactory solution protects your development environment from risky or undesirable components. The plugin uses policies configured in the IQ Server to prevent proxy repositories from serving unwanted components.


  • Sonatype IQ Server version 119 or higher

  • Plugin version 2.2 or later

  • A service account in IQ Server configured with the "Component Evaluator" role

  • A license for Repository Firewall for JFrogArtifactory

Unsupported JFrogArtifactory versions

  • jFrog Artifactory SaaS is not supported

  • unsupported because of a cluster synchronization bug: 7.49.3 |7.49.5 |7.49.8 |7.55.2

  • reached the "Artifactory end of life" date


  1. Stop the JFrog Artifactory server

  2. Download the latest version of the Firewall for Artifactory plugin

  3. Extract the plugin zip file into JFrog Artifactory's /plugins directory

    1. The archive includes an example configuration and necessary files

  4. Rename to

  5. Configure and enable your repositories in the firewall.propertiesfile

    1. The Configuration API may be used to update and reload configuration

  6. Start the JFrogArtifactory server

After restart:

  1. JFrog Artifactory reads the configuration file and connects it to IQ Sever.

  2. Configured repositories are displayed in 'Repositories' under 'Organization and Policies' in IQ Server.

  3. Components already existing in proxy repositories can be downloaded from the proxy repository.

  4. When in Quarantine mode

    1. Components downloaded after enabling Firewall's quarantine feature will be blocked.

    2. Firewall prevents new components that violate policy from being served from the remote repository.

  5. When in Audit mode

    1. New components added to remote repositories are evaluated against IQ policy and available in the repository results.

High Availability

  1. Install the plugin zip and the in the primary node of your JFrogArtifactory high-availability system

  2. JFrogArtifactory HA will automatically synchronize the plugin and its configuration to the remaining nodes

  3. Update the plugin configuration for JFrog Artifactory HA

Folder Configuration

The final folder structure should resemble:

JFrog Artifactory 7.x


JFrogArtifactory 6.x



  1. To upgrade the plugin, repeat the installation steps

  2. Overwrite the following files

    1. nexusFirewallForArtifactoryPlugin.groovy

    2. lib/nexus-iq-artifactory-plugin.jar

  3. The sample configuration file, is not required

1.x to 2.0 Migration

Repository Firewall for JFrog Artifactory 2.0 fixes an issue in the 1.x series where the 'repository manager' column in the 'Repositories' view in IQ displayed a hash value instead of the repository name.

1.x plugin


2.0 plugin


Do the following to complete the migration and display the repository identifier:

  1. Install Sonatype IQ Server

  2. Install the Repository Firewall for JFrog Artifactory plugin

  3. Update the file and configure the property

The migration will automatically begin on JFrog Artifactory startup after completing the above steps.

Omitting a step will result in the repository manager identifier displayed as a hash value.


All plugin configuration is managed by the file.

# These properties are to configure the connection to the IQ server.
# The values below are example values and should be updated with your own.

# This identifies this JFrog Artifactory instance in the IQ 'Repositories' view

# The URL that users will use to connect to the IQ Server.
# This URL will be prepended to the Repository Results view URI.
# For example, a complete Repository Results view URL:

# Define if fail open mode should be enabled (Default value is disabled).
# When IQ server is not reachable, new components can be downloaded without evaluation.

# Define repositories with a 'firewall.repo.' prefix.
# Possible options are 'quarantine', 'audit', 'policyCompliantComponentSelection', 'proprietary' and 'disabled'.
# 'policyCompliantComponentSelection' implies 'quarantine'.
# 'proprietary' can only be set on repositories of type 'local'.
# If quarantine is enabled and later disabled, all quarantined components will be made available
# in the repository; those components cannot be re-quarantined.
# Note that commenting out a repository configuration will not disable it,
# instead if you want to disable a repository configuration including
# 'quarantine', 'audit', or 'policyCompliantComponentSelection'
# then you must explicitly set it to be 'disabled'
# firewall.repo.<example-repository-name>=quarantine
# firewall.repo.<other-example-repository-name>=audit
# firewall.repo.<another-example-repository-name>=disabled
# firewall.repo.<example-local-repository-name>=proprietary

# Define http proxy settings if applicable
  • This plugin supports the 'remote' repository type

  • The 'virtual' repository type is indirectly supported

  • Firewall may be configured to a virtual repository when they include a remote repository with Firewall enabled.

  • 'local' repositories can be configured as 'proprietary' to prevent Namespace Confusion attacks.


  • Removing the with the plugin installed will cause all download requests to be denied until the file is restored and JFrogArtifactory is restarted.

  • If quarantine is enabled and later disabled, all currently quarantined components will be made available in the repository. Those components cannot be re-quarantined.

  • Commenting out a repository configuration will not disable it, instead if you want to disable a repository configuration including 'quarantine', 'audit', or 'policyCompliantComponentSelection' then you must explicitly set it to disabled.

  • Nexus Firewall for Artifactory will not work when the "store artifacts locally" advanced setting is disabled.

Using an HTTP Proxy for Outbound Traffic

Use the following configuration options if your JFrogArtifactory instance needs to reach the IQ Server via an HTTP proxy server.

# The host running the proxy server.

# The port on which the proxy server listens.

# The username used to access the proxy server (if necessary).

# The password used to access the proxy server (if necessary).


Configure the domain and workstation if your proxy server uses NT LAN Manager (NTLM) authentication.

# The Windows domain used for authentication
# The name of the local computer running JFrog Artifactory

High Availability Cache Strategy

Firewall for JFrog Artifactory HA requires a different internal cache strategy and can be configured with the following:

For versions 2.2 and 2.4.2 only. This configuration setting was removed in 2.4.3.

# Disable local memory cache (default: MEMORY_THEN_STORAGE )

It is safe to switch between different cache strategies. Restart JFrog Artifactory for the changes to take effect.

2.4.8 Configuration REST API Endpoints

In the following examples, the calls are made to your JFrog Artifactory server by substituting an admin username and password as well as your JFrog Artifactory URL.

Sensitive configuration properties will have their values obfuscated in returned API requests.

Get Configuration Properties

The getFirewallProperties endpoint returns all configuration properties.

curl -u username:password ""

Specific configuration properties may be requested using the same endpoint; both keys and values.

curl -u username:password ",k2"

Add or Update Configuration Properties

This sets key k1 to value v1 and key k2 to value v2.

curl -u username:password -X PUT ""

Remove a Configuration Property

This API endpoint removes the k1 and k2 configuration properties.

curl -u username:password -X DELETE ",k2"

Set the Configuration File Content

This endpoint sets the entire configuration file content to that of the given file. Note the following before using this endpoint:

  • This endpoint requires the submitted file encoding to be ISO 8859-1.

  • All configuration file properties will be overridden using this endpoint.

curl -u username:password -X PUT --data-binary ""


This endpoint will reload the plugin.

curl -u username:password -X POST ""

There are two other ways for the plugin to be reloaded:

  1. Automatically when updates to the file are detected.

  2. Manually by calling the JFrog reload plugins endpoint, however this only works if the plugin has been modified since the last user plugins reload.

Whereas this reload endpoint can be called at any time.

Check IQ Server Connection

This endpoint will check the IQ Server connection.

  • When the connection is successful a 200 status code is returned.

  • A different status code is returned by the IQ Server connection attempt.

The returned body will contain the non-sensitive IQ Server connection properties for review.

curl -u username:password -X POST ""

Reviewing Results

Every repository with the Repository Firewall enabled receives its own Application Composition Report URL. Make the following call to the JFrog Artifactory server to get the URL.

curl -u username:password ""

Substitute your username, password, JFrog Artifactory URL, and proxy repository name in the example above.

This returns a JSON with details on the repository:


The reportUrl can be opened in a browser. This forwards you to the static policy report URL which can be bookmarked for future access.

The property firewall.iqRepositoryUrl links to the same Application Composition report URL and is unique to each repository.

IQ Repository URL property for a repository with Firewall enabled:


About Timestamps

The Firewall for JFrog Artifactory plugin will only process new components from when the plugin was enabled. Previously downloaded components will continue to be allowed to prevent existing builds from breaking.


The Sonatype Repository Firewall for JFrog Artifactory plugin ships with some basic informative logging by default. Additional logs are available for debugging if necessary. Per component blocking is not logged by default to prevent excessive log entries.

JFrog Artifactory uses the Logback library for logging. To understand JFrog Artifactory logging and modify logged information, see the JFrog documentation

Add this section to the logback.xml file to increase logging for the plugin:

<logger name="">
    <level value="debug"/>


  1. Stop the JFrog Artifactory server

  2. Remove the nexusFirewallForArtifactoryPlugin.groovy file from the plugins directory to disable the Repository Firewall for JFrog Artifactory plugin.

    JFrog Artifactory 7.x

    JFrog Artifactory 6.x

  3. Clean up files that are no longer used (optional).

    1. Remove backup files created by JFrogArtifactory: nexusFirewallForArtifactoryPlugin.groov?~ and firewall.propertie?~

      (where the ? is a character used to indicate the version of the config file)

    2. Remove the lib/nexus-iq-artifactory-plugin.jar

  4. Start the JFrog Artifactory server

  5. Attributes on repository objects created by Nexus Firewall for JFrog Artifactory are safe to delete. All attributes the Firewall for JFrog Artifactory plugin creates use the prefix firewall. The screenshot below shows a typical example of firewall repository attributes in JFrog Artifactory:


Release Notes




September 14, 2023


  • Added REST API endpoints to allow admin users to change the configuration, reload the plugin, and to check the IQ Server connection

  • Fixed an issue with incorrect MODE selection

  • Fixed an issue when using cargo sparse indexes

  • Requires Sonatype IQ Server release 168.

    • Firewall Guided Setup can now be used to configure Artifactory repositories.

July 17, 2023


  • Adding Fail Open Mode to enable users to ALLOW or DENY access to quarantined objects while IQ connection failures

June 1, 2023


  • Fixed an issue where new component audit/quarantine notifications were not sent

April 6, 2023


  • Added support for Policy Compliant Component Selection for npm

  • Added support for Namespace Confusion Protection

  • Improved logging during plugin initialization

October 19, 2022


  • Fixed an issue with the retrieval of version number for JFrogArtifactory

  • Fixed an issue with high availability cache strategy. The firewall.cache.quarantine.strategy configuration settings is deprecated and will now be ignored

August 19, 2022


  • Fixed issue with API incompatibility with JFrogArtifactory 7.38+

October 8, 2021


  • Added High-Availablity sections

February 8, 2021


  • Fixed issue with 'Repository Manager' name in the 'Repositories' view in Sonatype IQ Server. See the "1.x to 2.0 Migration" for more information.

October 6, 2020


  • Ability to re-quarantine a component

May 8, 2019


  • Fixed CSRF issue with IQ URL

April 1, 2019


  • Audit the entire repository when enabled

  • Improved how to access the IQ policy report URL

  • Improved IQ connection handling

  • More graceful handling if the configuration file goes missing

  • Fixed issue when using a web application path

March 18, 2019


  • Added support for proxies

  • Improved IQ summary report URL

  • Allow readers to access the Evaluation Summary

March 1, 2019


  • Initial release