Hi, all,
I am looking for a way to dump all the key and values in a particular tree. Is that possible?
vault.hashicorp.com/role: "app_role"
vault.hashicorp.com/agent-inject-secret-id: "app/ie"
vault.hashicorp.com/agent-inject-template-secret-vars: |
{{ with secret “app/ie” }}
{{ range $k, $v := .Data }}
{{ $k }}: {{ $v }}
{{ end }}
{{ end }}
What I get is serialized data… of the first key…
data: map[id:ie]
metadata: map[created_time:2020-11-11T20:04:10.551043994Z deletion_time: destroyed:false version:1]
in vault i have structure of …
app/ie
id=ie
app/ie/parms
prams1:1
parms2:2
app/ie/ssl
ssl.crt:“cert”
sslkey:“key”
I wanted to have all keys and values in one file env, which contain all keys in the tree… Is that possible?