0.1.30 • Published 18 days ago

@backstage/plugin-vault v0.1.30

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
18 days ago

@backstage/plugin-vault

A frontend for Vault, this plugin allows you to display a list of secrets in a certain path inside your vault instance. There are also some useful links to edit and/or view them using the official UI.

Screenshot of the vault plugin table

Introduction

Vault is an identity-based secrets and encryption management system. A secret is anything that you want to tightly control access to, such as API encryption keys, passwords, or certificates. Vault provides encryption services that are gated by authentication and authorization methods.

This plugins allows you to view all the available secrets at a certain location, and redirect you to the official UI so backstage can rely on LIST permissions, which is safer.

Getting started

To get started, first you need a running instance of Vault. You can follow this tutorial to install vault and start your server locally.

  1. When your Vault instance is up and running, then you will need to install the plugin into your app:

      # From your Backstage root directory
      yarn add --cwd packages/app @backstage/plugin-vault
  2. Add the Vault card to the overview tab on the EntityPage:

      // In packages/app/src/components/catalog/EntityPage.tsx
      import { EntityVaultCard } from '@backstage/plugin-vault';
    
      const overviewContent = (
        <Grid container spacing={3} alignItems="stretch">
          {/* ...other content */}
          <Grid item md={6} xs={12}>
            <EntityVaultCard />
          </Grid>
      );
  3. Add some extra configurations in your app-config.yaml.

    vault:
      baseUrl: http://your-vault-url
      token: <VAULT_TOKEN>
      secretEngine: 'customSecretEngine' # Optional. By default it uses 'secrets'
      kvVersion: <kv-version> # Optional. The K/V version that your instance is using. The available options are '1' or '2'
  4. Get a VAULT_TOKEN with LIST permissions, as it's enough for the plugin. You can check this tutorial for more info.

  5. If you also want to use the renew functionality, you need to attach the following block to your custom policy, so that Backstage can perform a token-renew:

      # Allow tokens to renew themselves
      path "auth/token/renew-self" {
        capabilities = ["update"]
      }

Integration with the Catalog

The plugin can be integrated into each Component in the catalog. To allow listing the available secrets a new annotation must be added to the catalog-info.yaml:

apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  # ...
  annotations:
    vault.io/secrets-path: path/to/secrets

The path is relative to your secrets engine folder. So if you want to get the secrets for backstage and you have the following directory structure:

.
├── ...
├── secrets                 # Your secret engine name (usually it is `secrets`)
│   ├── test                # Folder with test secrets
│   │   ├── backstage       # In this folder there are secrets for Backstage
│   ├── other               # Other folder with more secrets inside
│   └── folder              # And another folder
└── ...

You will set the vault.io/secret-path to test/backstage. If the folder backstage contains other sub-folders, the plugin will fetch the secrets inside them and adapt the View and Edit URLs to point to the correct place.

If the annotation is missing for a certain component, then the card will show some information to the user:

Screenshot of the vault plugin with missing annotation

Features

  • List the secrets present in a certain path
  • Open a link to view the secret
  • Open a link to edit the secret
  • Renew the token automatically with a defined periodicity

The secrets cannot be edited/viewed from within Backstage to make it more secure. Backstage will only have permissions to LIST data from Vault. And the user who wants to edit/view a certain secret needs the correct permissions to do so.

0.1.30

21 days ago

0.1.29

24 days ago

0.1.29-next.1

1 month ago

0.1.29-next.0

1 month ago

0.1.28

1 month ago

0.1.27

2 months ago

0.1.26

2 months ago

0.1.26-next.2

2 months ago

0.1.26-next.1

2 months ago

0.1.26-next.0

2 months ago

0.1.25

3 months ago

0.1.25-next.3

3 months ago

0.1.25-next.2

3 months ago

0.1.25-next.1

3 months ago

0.1.25-next.0

4 months ago

0.1.24

4 months ago

0.1.24-next.2

4 months ago

0.1.24-next.1

4 months ago

0.1.24-next.0

5 months ago

0.1.23

5 months ago

0.1.23-next.3

5 months ago

0.1.23-next.2

5 months ago

0.1.23-next.1

5 months ago

0.1.18-next.2

8 months ago

0.1.18-next.3

8 months ago

0.1.18-next.1

8 months ago

0.1.14

10 months ago

0.1.15

9 months ago

0.1.23-next.0

6 months ago

0.1.21-next.2

6 months ago

0.1.21-next.0

7 months ago

0.1.21-next.1

6 months ago

0.1.15-next.1

9 months ago

0.1.15-next.0

10 months ago

0.1.20-next.2

7 months ago

0.1.20-next.1

7 months ago

0.1.20-next.0

8 months ago

0.1.14-next.2

10 months ago

0.1.14-next.1

10 months ago

0.1.17-next.0

9 months ago

0.1.20

7 months ago

0.1.21

6 months ago

0.1.22

6 months ago

0.1.16

9 months ago

0.1.17

9 months ago

0.1.18

8 months ago

0.1.19

8 months ago

0.1.14-next.0

11 months ago

0.1.13-next.2

11 months ago

0.1.13-next.3

11 months ago

0.1.13

11 months ago

0.1.13-next.0

12 months ago

0.1.13-next.1

12 months ago

0.1.12

12 months ago

0.1.12-next.1

1 year ago

0.1.12-next.2

1 year ago

0.1.11

1 year ago

0.1.12-next.0

1 year ago

0.1.11-next.3

1 year ago

0.1.10-next.2

1 year ago

0.1.10-next.1

1 year ago

0.1.10-next.0

1 year ago

0.1.10

1 year ago

0.1.11-next.0

1 year ago

0.1.11-next.1

1 year ago

0.1.11-next.2

1 year ago

0.1.9

1 year ago

0.1.8-next.2

1 year ago

0.1.8-next.1

1 year ago

0.1.9-next.2

1 year ago

0.1.9-next.0

1 year ago

0.1.9-next.1

1 year ago

0.1.8

1 year ago

0.1.6-next.2

1 year ago

0.1.6-next.1

1 year ago

0.1.8-next.0

1 year ago

0.1.6-next.4

1 year ago

0.1.6-next.3

1 year ago

0.1.6-next.0

1 year ago

0.1.5-next.0

2 years ago

0.1.5-next.1

2 years ago

0.1.7

1 year ago

0.1.4

2 years ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4-next.0

2 years ago

0.1.4-next.1

2 years ago

0.1.4-next.2

2 years ago

0.1.3-next.2

2 years ago

0.1.3-next.1

2 years ago

0.1.3-next.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.2-next.1

2 years ago

0.1.2-next.0

2 years ago

0.1.1

2 years ago

0.1.1-next.3

2 years ago

0.1.1-next.2

2 years ago

0.1.1-next.1

2 years ago

0.1.1-next.0

2 years ago

0.1.0

2 years ago