google-cloud-java
google-cloud-java copied to clipboard
Java http.* proxy flags ignored
Environment details
- OS type and version: CentOS Linux 7 (Core)
- Java version: JDK11
- Version(s):
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.25.0</version>
Steps to reproduce
- Run your java application with the following flags for example:
java -Dhttp.proxyHost=webcache.mydomain.com -Dhttp.proxyPort=8080 <APP_NAME>
Note: HTTPS proxies seem to work fine. E.g: java -Dhttps.proxyHost=webcache.mydomain.com -Dhttps.proxyPort=8080 <APP_NAME>
Are http.* flags being ignored expected?
@rnaval I think this is expected. The Google Cloud client libraries use HTTPS and gRPC under the hood to communicate with services so as described by this section in the README configuring proxies is generally done through https.proxyHost or https.proxyPort.
Ok thanks - closing this issue