如何从VaultSharp获取所有租赁或HTTP客户端?
我正在使用Hashicorp Vault 1.10.0
维护秘密,为此,我在VaultSharp
中使用c#.net core core 6.0
。
我是VaultSharp
的新手vaulsharp
)中的功能,如果没有这样的功能,那么是否有任何方法可以获取其httpclient
,以便我可以通过租赁API url?
这是我为什么需要的情况?
我正在从保险库中生成动态的DB凭据,因此我需要知道它们何时过期,因此我需要知道它的租约告诉我们其创建和到期时间的信息。
否则,我必须创建一个新的httpclient
,该将调用hashicorp
vault API并从中获得租赁,但我想将Vaultsharp
用于保持一致性。
请指教。
谢谢。
I am using HashiCorp Vault 1.10.0
to maintain secrets and for this, I am using VaultSharp
in C# .Net Core 6.0
.
I am new to VaultSharp
and I have ask about it that how can I get Leases from the VaultSharp
(I tried but not able to find such functionality in the the VaulSharp
), in case, if there is no such functionality then is there any way to get Its HttpClient
, so that I could pass the Lease API URL?
And here is the scenario why do I need this?
I am generating the dynamic DB credentials from the Vault and therefore I need to know when they are going to expired, for this reason I need to know its lease information that tells us its creation and expiration time.
Otherwise, I have to create a new Httpclient
that will call the Hashicorp
Vault API and gets the Leases from it but I want to use VaultSharp
to maintain consistency.
Please advise.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢,我解决了这个问题
Thanks, I have resolved the issue by