Skip to content

Scripts that helps your to work with Yandex.Cloud Lockbox service

Notifications You must be signed in to change notification settings

frux/yandex-cloud-lockbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

yandex-cloud-lockbox

Bash script that helps you to work with Yandex.Cloud Lockbox service.

Requirements

  • curl
  • jq

Functions

exportVarsFromSecret

Fetches secret from Yandex.Cloud Lockbox service and exports its values to environment variables. It supposed to be ran on VM (e.g. when your Docker container starts).

Make sure your service account has roles

  • iam.serviceAccounts.tokenCreator
  • lockbox.payloadViewer
  • kms.keys.encrypterDecrypter (if your secret encrypted by KMS key)

Usage

# Include library
. ./yandex-cloud-lockbox.sh

# Run function
exportVarsFromSecret your-secret-id

# Use your variables
echo $VAR_FROM_SECRET

About

Scripts that helps your to work with Yandex.Cloud Lockbox service

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages