@backstage-community/plugin-mend
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

mend.io

This plugin integrates mend.io functionality seamlessly into your Backstage application.

Plugin Compatibility

The plugin has been successfully tested with Backstage v1.28. If you are using a newer version of Backstage, please file an issue, and we will provide guidance on the best integration practices for your specific version.

Features

This plugin provides views to display:

  • Collections of integrated projects
  • Collection of project security findings

Use these views to visualize your data.

Project Overview

This view showcases a project list along with statistics derived from these projects.

Project Overview

Findings Overview

This view presents the project's security findings and detailed statistics derived from these findings.

Findings Overview

Installation

From your Backstage root directory, run the following commands:

yarn --cwd packages/app add @backstage-community/plugin-mend
yarn --cwd packages/backend add @backstage-community/plugin-mend-backend

Dependencies

[!IMPORTANT] Please note that the frontend plugin will not function without the backend plugin.

Getting Started

Get mend.io Activation Key:

  1. Navigate to the "Settings" menu.

  2. Select "Integrations" from the available options.

  3. Click on the "Backstage" card.

  4. Click "Get Activation Key" to generate key.

Activation Key

Configure your mend.io Activation Key in your local app-config.yaml or production app-config.production.yaml file:

mend:
  baseUrl: ${API_URL_HERE}
  activationKey: ${YOUR_ACTIVATION_KEY_HERE}

Add the mend.io tab to your entity page:

In your packages/app/src/components/Catalog/EntityPage.tsx file:

// ... other imports here
import { MendTab } from '@backstage-community/plugin-mend';
// ... other components
const serviceEntityPage = (
  <EntityLayout>
    <EntityLayout.Route path="/" title="Overview">
      // ... other elements
      <EntityLayout.Route path="/mend" title="mend.io">
        <MendTab />
      </EntityLayout.Route>
      // ... other elements
    </EntityLayout.Route>
  </EntityLayout>
  // ...
);
// ...

Add the mend.io page to your routes:

In your packages/app/src/App.tsx file:

// ... other imports here
import { MendPage } from '@backstage-community/plugin-mend';
// ... other components
const routes = (
  <FlatRoutes>
    <Route path="/" element={<Navigate to="catalog" />} />
    <Route path="/catalog" element={<CatalogIndexPage />} />
    // ... other elements
    <Route path="/mend" element={<MendPage />} />
    // ... other elements
  </FlatRoutes>
  // ...
);
// ...

Add the mend.io sidebar button:

In your packages/app/src/components/Root/Root.tsx file:

// ... other imports here
import { MendSidebar } from '@backstage-community/plugin-mend';
// ... other components
export const Root = ({ children }: PropsWithChildren<{}>) => (
  <SidebarPage>
    <Sidebar>
      // ... other elements
      <MendSidebar />
      // ... other elements
    </Sidebar>
    {children}
  </SidebarPage>
  // ...
);
// ...

Add the mend.io backend plugin

See the mend backend plugin instructions.

Readme

Keywords

none

Package Sidebar

Install

npm i @backstage-community/plugin-mend

Homepage

backstage.io

Weekly Downloads

131

Version

0.3.0

License

Apache-2.0

Unpacked Size

232 kB

Total Files

84

Last publish

Collaborators

  • patriko