Open ozbillwang opened 6 years ago
Add lookup feature to replace any keys with format "{{ secrect_key_name }}"
"{{ secrect_key_name }}"
$ ./credstash template -h usage: credstash.py template [-h] file positional arguments: file name of template file. optional arguments: -h, --help show this help message and exit $ cat test.json { "foo": "{{ foo.key }}" } $ ./credstash template test.json
If all secret keys are ready, all secret keys will be replaced with secrets directly and updated in file.
$ cat test.json { "foo": "bar" }
Let me know if you are fine for the feature, then I will add unittest step
unittest
Great idea! If you want to push a test and a README update, I can get this merged in
Add lookup feature to replace any keys with format
"{{ secrect_key_name }}"
Usage:
If all secret keys are ready, all secret keys will be replaced with secrets directly and updated in file.
Let me know if you are fine for the feature, then I will add
unittest
step