@ssun3/backstage-plugin-jfrog-artifactory-oss
v1.0.1
Published
JFrog Artifactory plugin for Backstage with REST API support for OSS version
Readme
JFrog Artifactory Plugin with OSS Support
This is a fork of the official Backstage JFrog Artifactory plugin that adds REST API support for JFrog Artifactory OSS (free version).
Changes from Original
- ✅ Added REST API support for JFrog OSS compatibility
- ✅ Auto-detection of API mode (GraphQL vs REST)
- ✅ Works with both Enterprise and OSS versions
- ✅ Graceful fallback when GraphQL is not available
The Jfrog Artifactory plugin displays information about your container images within the Jfrog Artifactory registry.
For administrators
Installation and configuration
Procedure
Run the following command to install the Jfrog Artifactory plugin:
yarn workspace app add @ssun3/backstage-plugin-jfrog-artifactory-ossSet the proxy to the desired Artifactory server in the
app-config.yamlfile as follows:proxy: endpoints: '/jfrog-artifactory/api': target: 'http://<hostname>:8082' # or https://<customer>.jfrog.io headers: # Authorization: 'Bearer <YOUR TOKEN>' # Change to "false" in case of using self hosted artifactory instance with a self-signed certificate secure: true # Optional: Configure API mode (GraphQL vs REST) jfrogArtifactory: # API mode: 'graphql' | 'rest' | 'auto' (default: 'auto') # - 'graphql': Use GraphQL API (requires JFrog Enterprise license) # - 'rest': Use REST API (works with JFrog OSS/free version) # - 'auto': Try GraphQL first, fallback to REST if unavailable apiMode: 'auto'
If you have multiple instances of artifactory supported, you can set up multiple proxy target paths as follows:
proxy:
endpoints:
'/jfrog-instance1': # This is a local alias for the proxy endpoint, not the actual Artifactory hostname
target: 'https://<hostname1>'
# Rest of the config for hostname1
'/jfrog-instance2':
target: 'https://<hostname2>'Enable the JFROG ARTIFACTORY tab on the entity view page in
packages/app/src/components/catalog/EntityPage.tsx:/* highlight-add-start */ import { isJfrogArtifactoryAvailable, JfrogArtifactoryPage, } from '@ssun3/backstage-plugin-jfrog-artifactory-oss'; /* highlight-add-end */ const serviceEntityPage = ( <EntityLayout> // ... {/* highlight-add-start */} <EntityLayout.Route if={isJfrogArtifactoryAvailable} path="/jfrog-artifactory" title="Jfrog Artifactory" > <JfrogArtifactoryPage /> </EntityLayout.Route> {/* highlight-add-end */} </EntityLayout> );Annotate your entity with the following annotations:
metadata: annotations: 'jfrog-artifactory/image-name': '<IMAGE-NAME>' # if your app supports multiple artifactory instances, # you'll need to specify the instance proxy target path your image belongs to 'jfrog-artifactory/target-proxy': '/<PROXY-TARGET>' # e.g. `/jfrog-instance1` from the example above
JFrog Artifactory OSS Compatibility
This plugin supports both JFrog Artifactory Enterprise (with GraphQL API) and JFrog Artifactory OSS (free version with REST API).
Features by Edition:
| Feature | Enterprise (GraphQL) | OSS (REST API) | |---------|---------------------|----------------| | View container images | ✅ | ✅ | | View image tags | ✅ | ✅ | | View image size | ✅ | ✅ | | View modification dates | ✅ | ✅ | | View repositories | ✅ | ✅ | | View download statistics | ✅ | ✅* | | View vulnerabilities | ✅ | ❌ | | View licenses | ✅ | ❌ |
*Download statistics in OSS may be limited depending on your configuration.
To use with JFrog Artifactory OSS, set the API mode to 'rest':
jfrogArtifactory:
apiMode: 'rest'For users
Using the Jfrog Artifactory plugin in Backstage
Jfrog Artifactory is a front-end plugin that enables you to view the information about the container images that are available in your Jfrog Artifactory registry.
Prerequisites
- Your Backstage application is installed and running.
- You have installed the Jfrog Artifactory plugin. For installation and configuration steps, see Installation and configuration.
Procedure
Open your Backstage application and select a component from the Catalog page.
Go to the JFROG ARTIFACTORY tab.

The JFROG ARTIFACTORY tab contains a list of container images and related information, such as VERSION, REPOSITORIES, MANIFEST, MODIFIED, and SIZE.
