Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harnessio/backstage-plugin-harness-ccm

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harnessio/backstage-plugin-harness-ccm

Website: [https://harness.io/](https://harness.io/)

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Harness Cloud Cost Management Plugin

Website: https://harness.io/

Welcome to the Harness CCM plugin for Backstage!

Screenshots

Getting started

Setup steps

  1. Open terminal and navigate to the root of your Backstage app. Then run
yarn add --cwd packages/app @harnessio/backstage-plugin-harness-ccm

yarn install

If you are looking to get started with Backstage, check out backstage.io/docs.

For testing purposes, you can also clone this repository to try out the plugin. It contains an example Backstage app setup which is pre-installed with Harness plugins. However, you must create a new Backstage app if you are looking to get started with Backstage.

  1. Configure proxy for harness in your app-config.yaml under the proxy config. Add your Harness Personal Access Token or Service Account Token for x-api-key. See the Harness docs for generating an API Key.
# In app-config.yaml

proxy:
  # ... existing proxy settings
  '/harness/prod':
    target: 'https://app.harness.io/'
    headers:
      'x-api-key': '<YOUR PAT/SAT>'
# ...

Notes:

  • Plugin uses token configured here to make Harness API calls. Make sure the user creating this API token has necessary permissions, which has perspective view permission and same applies for service accounts as well it must have a role assigned that has the roles with adequate permissions as described before.

  • Set the value of target to your on-prem URL if you are using the Harness on-prem offering

  1. Inside your Backstage's EntityPage.tsx, import the EntityCcmContent and isHarnessCcmAvailable from @harnessio/backstage-plugin-harness-ccm and add <EntityHarnessCcmContent />. Something like this -
// In packages/app/src/components/catalog/EntityPage.tsx

import {
  isHarnessCcmAvailable,
  EntityCcmContent,
} from '@harnessio/backstage-plugin-harness-ccm';

const ccmContent = (
  // ...
  <EntitySwitch.Case if={isHarnessCcmAvailable}>
    <EntityHarnessCcmContent />
  </EntitySwitch.Case>
  // ...
);
  1. Add required harness specific annotations to your software component's respective catalog-info.yaml file.

Here is an example: catalog-info-new.yaml

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  # ...
  annotations:
    # annotation
    harness.io/perspective-url: <harness_ccm_perspective_url>

Features

  • Connect a Backstage service with a Harness Perspective and view resources in ways that are more meaningful to your business needs.

FAQs

Package last updated on 01 Oct 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