weixin_39955700
2020-12-09 00:50Vault templating
Hello, In vault (unsealed and accessible via HTTP API using curl).
In my vault in /secret/n2 is stored key=value
.
Via the HTTP API I can access it (using the hashicorp doc) using http://127.0.0.1:8200/v1/secret/data/n2.
I saw on the readme array that vault don't support prefix so I did not set prefix.
I didn't success with my remco resource.
[[resource]]
name = "Vault"
[[resource.template]]
src = "/etc/remco/templates/key"
dst = "/<path>/key"
make_directories = true
mode = "0644"
[resource.backend]
[resource.backend.vault]
node = "http://172.0.0.1:8200"
auth_type = "token"
auth_token = "<my_token>"
watch = true
keys = ["/v1/secret/data/n2"]
onetime = false
interval = 1
</my_token></path>
Tried many keys (same key as in the code above without v1, or/and data or with just n2)
The key template is just {{ getv("/v1/secret/data/n2") }}
(modified in concordance as above).
Thank You in advance. Regards.
该提问来源于开源项目:HeavyHorst/remco
- 点赞
- 回答
- 收藏
- 复制链接分享
4条回答
为你推荐
- Golang与PHP https调用的标头结果不同
- http
- post
- php
- 1个回答
- 如何使用go-sql-driver通过SSH通过标准TCP / IP连接到MySQL?
- tcp
- mysql
- ssh
- 2个回答
- 未检测到保管库令牌助手?
- devops
- 1个回答
- 导入Vault / builtin / credential / aws会将测试标记添加到命令行应用程序
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 查询字符串未传递
- query-string
- php
- session
- 1个回答
换一换