Google Cloud Secrets Manager - 可以使用包含大量键/值的 JSON 文件,并从 yaml(如 CredHub)检索这些凭证
Credhubs 有一个功能,您可以上传 json 文件(包含多个键和值),并且在 Spring Boot 配置中,我们可以检索特定键值作为配置中的变量。
是否可以在 Google Secrets Manager 中执行类似的操作。就像上传 JSON 文件并从我们的配置中检索 (${sm://keyoftheJsonfile.specifckey.value) )
Credhubs has a feature where you can upload json file (that contains multiple keys and values) and in the spring boot configs, we can retrieve the specific key value as a variable in the configs.
Is this possible to do something similar in Google Secrets Manager. Like upload JSON file and retrieve from our configs (${sm://keyoftheJsonfile.specifckey.value) )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您能够编写 Java,您可以编写自己的客户端 - 其中
Secret
可以有多个密钥。但这些需要传入YAML;猜测没有这样的快捷方式 URI,而只有 REST URL。https://cloud.google.com/ Secret-manager/docs/reference/libraries#client-libraries-install-java
Assuming you're able to write Java, you could write your own client - where a
Secret
can have several keys. But these need to be passed into the YAML; guess there is no such shortcut URI, but only REST URL.https://cloud.google.com/secret-manager/docs/reference/libraries#client-libraries-install-java