Manage Secrets and Files
Keystone can handle secrets and files. Secrets are key value pairs meant to be
used as environment variables. Files are things like, certificates, configuration
wp-config.php), credential files, etc.
Add secrets and files
ks secret add API_KEY a-default-secret-value ks file add ./a-secret-file.conf.js
API_KEY secret, it will prompt the secret value
prod environments, one after the other,
a-default-secret-value as default.
./a-secret-file.conf.js, if will open your default editor
$EDITOR) to set the file content for each enviroment,
one after the other.
List secrets and managed files
ks secret ks file
Required secrets and files
Required secrets and files cannot be set to empty values or removed. If you setup a CI integration, empty or missing secrets/files will cause your pipelines to fail.
For an exhaustive list of commands regarding secrets and files, see:
ks secret add
ks secret set
ks secret unset
ks secret rm
ks secret require
ks secret optional
ks file add
ks file rm
ks file require
ks file optional