Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Pull gcp secrets with your current user permission and allow to convert it to yaml, dotenv, json

Notifications You must be signed in to change notification settings

sliteteam/gcp-secret-puller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcp secret puller

This tool just pull google cloud secret with your current user permissions and convert them to the requested format.

The definition file should look like this:

postgresql:
  api:
    password:
      gcloudSecretPath:
        project: development
        name: postgresql-api-password
        version: 1
    user:
      gcloudSecretPath:
        project: development
        name: postgresql-api-user
        version: 1
env: develop

GCLOUD_ACCESS_TOKEN=$(gcloud auth print-access-token) gcp-secret-puller secrets.yml dotenv

About

Pull gcp secrets with your current user permission and allow to convert it to yaml, dotenv, json

Resources

Stars

Watchers

Forks

Packages

No packages published