New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@teamsnap/vault-key

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamsnap/vault-key

Vault using GCP Auth

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Usage

const vault = require('@teamsnap/vault-key')

const secrets = [
  'secret-engine/data/secret-name',
  'secret-engine-2/data/another-secret-name'
]

const secretData = vault.getSecrets(secrets)

console.log('Secret values:', JSON.stringify(secretData, null, 4))
console.log(`secret-key value = ${secretData['secret-engine/data/secret-name']['secret-key']}`)
console.log(`secret-key-2 value = ${secretData['secret-engine-2/data/another-secret-name']['secret-key-2']}`)

Environment Variable Configuration

Environment VariableDefaultRequired (GCP)Required (other environments)ExampleDescription
ENVIRONMENT"development"NoNoproductionIf set to anything but production, prints trace level logs
FUNCTION_IDENTITY""NoYesmy-project-123@appspot.gserviceaccount.comEmail address associated with service account
GCLOUD_PROJECT""NoYesmy-project-123Project ID the service account belongs to
GOOGLE_APPLICATION_CREDENTIALS""NoYesservice-account/my-project-123.serviceaccount.jsonPath to service account credentials file
TRACE_ENABLED"false"NoNotrueWhether or to enable opencensus tracing
TRACE_PREFIX"vault"NoNomy-companyPrefix added to name of tracing spans
VAULT_ADDR""YesYeshttps://vault.my-company.comVault address including protocol
VAULT_ROLE""YesYesvault-role-cloud-functionsName of role created in Vault for GCP auth

Publishing

  1. On MacOS: make build_all
  2. npm publish --access public

FAQs

Package last updated on 08 Feb 2021

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