šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@commercetools-frontend/vault-utils

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-frontend/vault-utils

Utilities to integrate with Vault

1.0.2
latest
npm
Version published
Maintainers
3
Created
Source

@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.

FAQs

Package last updated on 27 Jan 2025

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