summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorStuart Clark <stuart.clark@Jahingo.com>2017-08-06 03:20:34 +0100
committerDave Henderson <dhenderson@gmail.com>2017-08-05 22:20:34 -0400
commit7a16088eeb7490977a41390ec93e9eeafa2eec8b (patch)
tree4fa21358ee0e4b6c7bc326fe7040d17157eae576 /docs
parentbe871892fb11fcf13f882da9cfa074cafbcc7c39 (diff)
Vault write support (#183)
* Add write support for Vault to enable the use of dynamic secrets
Diffstat (limited to 'docs')
-rw-r--r--docs/content/functions/general.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/content/functions/general.md b/docs/content/functions/general.md
index d04e8cc6..8a8802a1 100644
--- a/docs/content/functions/general.md
+++ b/docs/content/functions/general.md
@@ -627,6 +627,16 @@ $ echo 'db_password={{(datasource "vault" "db/pass").value}}' \
db_password=prodsecret
```
+It is also possible to use dynamic secrets by using the write capibility of the datasource. To use
+add an additional query string style section to the optional key name (i.e.
+`"key?name=value&name=value"`). These values are then included within the JSON body of the request.
+
+```console
+$ echo 'otp={{(datasource "vault" "ssh/creds/test?ip=10.1.2.3&username=user").key}}' \
+ | gomplate -d vault=vault:///
+otp=604a4bd5-7afd-30a2-d2d8-80c4aebc6183
+```
+
## `datasourceExists`
Tests whether or not a given datasource was defined on the commandline (with the