英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论