Socket
Book a DemoInstallSign in
Socket

@jkilzi/backstage-plugin-orchestrator-swf-editor-envelope

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@jkilzi/backstage-plugin-orchestrator-swf-editor-envelope

Serverless workflow editor envelope for the Orchestrator plugin

unpublished
latest
Source
npmnpm
Version
1.0.0-rc.2
Version published
Maintainers
1
Created
Source

@janus-idp/backstage-plugin-orchestrator-swf-editor-envelope

Description

This package includes assets that are meant to be served as a single page application.
This package has no entrypoint, therefore it is not suitable to be consumed as a library. The Orchestrator plugin uses these assets when it renders the Serverless Workflow editor by injecting an iframe that loads this application.

Instructions

  • Serve the files inside this package's dist directory using the @janus-idp/backstage-plugin-orchestrator-backend static files endpoint (files under plugins/orchestrator-backend/static/* are served statically) or, for testing purposes, you can also serve the files directly with:

    yarn dlx serve \
        --port 8080 \
        --cors \
        --debug \
        node_modules/@janus-idp/backstage-plugin-orchestrator-swf-editor-envelope/dist
    
  • Add this configuration to the app-config.yaml:

    backend:
      csp:
        frame-ancestors: ['http://localhost:3000', 'http://localhost:7007']
        script-src: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
        script-src-elem: ["'self'", "'unsafe-inline'", "'unsafe-eval'"]
        connect-src: ["'self'", 'http:', 'https:', 'data:']
    orchestrator:
      editor:
        path: http://localhost:7007/api/orchestrator/static/generated/envelope
    

    Here we assume the app and backend packages are running on the default address and port during local development.

Keywords

backstage

FAQs

Package last updated on 15 Apr 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