Repository navigation
Release v3.114.0
Cratis projects get named environments and secrets in .cratis, inspired by Pulumi stacks: configuration that differs per environment lives next to the model, with secrets encrypted by a passphrase or kept in Azure Key Vault or HashiCorp Vault.
Added
- Environments in
.cratis/environments/<name>.yamlwith any name,developmentby default, and a per-user selection that is never committed; select with--environment,CRATIS_ENVIRONMENTorcratis env select(#514) cratis env init,select,lsandrm, andcratis config set,get,rmandlistwith--output jsoncratis config --missing <keys>lists the keys an environment still lacks- Secrets providers per environment: values encrypted with AES-256-GCM from a passphrase (
CRATIS_PASSPHRASE,CRATIS_PASSPHRASE_FILEor a prompt), Azure Key Vault, or HashiCorp Vault (#515) cratis config set <key> --secretreads the value from stdin or a hidden prompt, and secrets print as[secret]unless--show-secretis passedcratis env change-secrets-providerandcratis env change-passphrasemove or re-encrypt every secretCratis.Environmentspackage for reading environments and resolving secrets from other tools- Documentation: Environments and Secrets
Changed
cratis initadds.cratis/local/to.gitignoreso the selected environment stays per user