2.5.0 • Published 3 months ago

@roit/roit-secret-manager v2.5.0

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

ROIT Secret Manager

Installation

> npm i @roit/roit-secret-manager

Permission

We need to grant permissions to the service account to be able to access Secret Manager

Usage

In the env.yaml file add the secretManager.projectId attribute, with the name do project gcp:

dev:
  secretManager:
    projectId: project-gcp
import { getSecretVersion } from "@roit/roit-secret-manager";

const secret = await createAndAccessSecret('secret-id', 'data')
const secret = await addSecretVersion('secret-id', 'data')
const secret = await getSecretVersion('secret-id', '1')
const secret = await disableSecretVersion('secret-id', '1')

Functions

NameDescription
createAndAccessSecretcreate secret and version
getSecretVersionreturns data of the informed version
disableSecretVersiondisable version of the given secret
addSecretVersionadd a new version to the existing secret
2.3.0

3 months ago

2.2.0

3 months ago

2.5.0

3 months ago

2.4.0

3 months ago

2.1.0

3 months ago

2.0.0

1 year ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago