New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@get-dx/backstage-backend-plugin

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@get-dx/backstage-backend-plugin

Backstage backend plugin for DX! https://getdx.com

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
174
decreased by-34.34%
Maintainers
0
Weekly downloads
 
Created
Source

DX Backstage Backend Plugin

DX Backstage plugin to automatically sync your Backstage data to DX Data Cloud.

Setup

v2 of this plugin supports the new backend system first, and deprecates support for the old backend system which will be removed in a future.

  1. Install this plugin in your backstage backend —
yarn add @get-dx/backstage-backend-plugin
  1. Configure a proxy endpoint with the DX host and token found at https://app.getdx.com/datacloud/api_keys
# app-config.yaml
proxy:
  endpoints:
    "/dx":
      target: ${DX_API_HOST_URL}
      headers:
        Authorization: Bearer ${DX_API_TOKEN}
  1. In your packages/backend/src/index.ts file, make the following changes:
  import { createBackend } from '@backstage/backend-defaults';

  const backend = createBackend();

  // ... other feature additions

+ backend.add(import('@get-dx/backstage-backend-plugin'));

  backend.start();
  1. Deploy your backend!

Configuration

Entity Filter

Optionally set catalogSyncAllowedKinds to only send specific kinds of entities to DX.

# app-config.yaml
dx:
  catalogSyncAllowedKinds: [API, Component, User, Group]

Schedule

You may optionally configure a schedule for the task that matches a TaskScheduleDefinition, only each key is optional —

# app-config.yaml
dx:
  schedule:
    frequency:
      minutes: 45

The default schedule in TaskScheduleDefinition format is —

PropertyValue
frequency{ hours: 1 }
timeout{ minutes: 2 }
initialDelay{ seconds: 3 }
scope'global'

Application Id

Optionally set appId to distinguish multiple instances of backstage within DX. Can be any string as long as it's unique within your DX account.

# app-config.yaml
dx:
  appId: staging

Disable Catalog Sync

Optionally set disableCatalogSync to disable running the software catalog sync scheduled task.

This can be helpful for local development or when running multiple environments of backstage, such as dev, staging, prod.

# app-config.yaml
dx:
  disableCatalogSync: true

FAQs

Package last updated on 23 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc