@commercetools-frontend/vault-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@commercetools-frontend/vault-utils

This package provide utilities to integrate with Vault to retrieve secrets.

Installation

$ npm install --save @commercetools-frontend/vault-utils

Usage

getCredentialsForCI

Retrieve credentials for a given secret path, given that the CI environment variable is set.

Credentials are returned as a JSON object.

const credentialsFromVault = await getCredentialsForCI({
  vaultAddr: '',
  repositoryName: '',
  secretPath: '',
});

When running within CircleCI, the method uses the CIRCLE_OIDC_TOKEN environment variable for authentication.

Readme

Keywords

none

Package Sidebar

Install

npm i @commercetools-frontend/vault-utils

Weekly Downloads

384

Version

1.0.1

License

MIT

Unpacked Size

10.8 kB

Total Files

12

Last publish

Collaborators

  • tdeekens
  • emmenko
  • commercetools-admin