secrethub / secrethub-cli

A secrets management platform that every engineer can use with minimal code changes.
https://secrethub.io
Apache License 2.0
135 stars 23 forks source link

Create config migration commands for run and inject #386

Closed florisvdg closed 3 years ago

florisvdg commented 3 years ago

New commands:

Migrate config template files

secrethub migrate config templates <path/to/tpl>

Migrate secrethub.env files

secrethub migrate config envfile <path/to/secrethub.env>

Migrate secrethub:// references in configuration code

secrethub migrate config references <path/to/file>

Examples with template variables

secrethub migrate config templates --var env=dev,staging,prod --var region=us-east-1,eu-west-1 my-config.yml.tpl
secrethub migrate config envfile --var env=dev,staging,prod --var region=us-east-1,eu-west-1 secrethub.env

Note: all config migration commands should be considered 'best effort'.