如何在使用Quarkus-Vault时为Vault客户端设置代理配置?

huangapple go评论61阅读模式
英文:

How to set proxy configuration for vault client when using quarkus-vault?

问题

使用quarkus-vault从我们的openshift中检索密钥,我们需要设置代理以能够访问位于集群外部的vault服务器。
是否可以在application.properties中进行此操作?

我们已经在application.properties中为rest-client和oidc-client设置了代理。
代理对oidc和rest-client都正常工作,但对vault的请求超时失败。

%prod.quarkus.rest-client.proxy-address=my-proxy:3128 
%prod.quarkus.rest-client.non-proxy-hosts=${REDIS_HOST} 
%prod.quarkus.oidc-client.proxy.host=my-proxy 
%prod.quarkus.oidc-client.proxy.port=3128

我们还尝试通过JVM中的-Dhttps.proxyHost / proxyPort来配置https代理...但没有成功。

提前感谢。
Patrice

英文:

Using quarkus-vault to retrieve secrets from our openshift, we need to set a proxy to be able to reach the vault server that is outside of the cluster.
Is it possible to do it in application.properties?

We already set proxy for rest-client and oidc-client in application.properties.
Proxy works fine for oidc and rest-client but request to vault fails with timeout

%prod.quarkus.rest-client.proxy-address=my-proxy:3128 
%prod.quarkus.rest-client.non-proxy-hosts=${REDIS_HOST} 
%prod.quarkus.oidc-client.proxy.host=my-proxy 
%prod.quarkus.oidc-client.proxy.port=3128

We also tried to configure https proxy via -Dhttps.proxyHost / proxyPort in JVM ... without success.

Thanks in advance.
Patrice

答案1

得分: 0

最后,在阅读qaurkus-vault代码时,我发现代理配置缺失。因此,我提出了一个拉取请求来管理这个配置。这个PR已经合并到quarkus-vault版本3.1.0中。我希望这个版本很快能集成到quarkus平台中。

英文:

Finally, while reading the qaurkus-vault code, I found that the proxy configuration was missing.
So I proposed a Pull Request to manage this configuration.
This PR is merged in quarkus-vault version 3.1.0. I hope this version will soon be integrated into the quarkus platform.

huangapple
  • 本文由 发表于 2023年5月17日 15:47:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76269684.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定