https://github.com/cloudquery/gcp-client-breakage
Reproduction scenario for https://github.com/googleapis/google-cloud-go/issues/11089
https://github.com/cloudquery/gcp-client-breakage
Last synced: 11 months ago
JSON representation
Reproduction scenario for https://github.com/googleapis/google-cloud-go/issues/11089
- Host: GitHub
- URL: https://github.com/cloudquery/gcp-client-breakage
- Owner: cloudquery
- Created: 2024-11-08T11:55:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T12:03:42.000Z (about 1 year ago)
- Last Synced: 2025-02-25T19:41:52.099Z (11 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction scenario for https://github.com/googleapis/google-cloud-go/issues/11089
1. Install [squid](https://www.squid-cache.org/Versions/)
2. Enable the access log configuration for `squid` by running:
```bash
echo "\naccess_log $(pwd)/squid_access.log squid" >> squid/squid.conf
```
3. Run `squid -f squid/squid.conf` to start the proxy
4. Run the following command from the root of the repository, see that it ends without errors
```bash
cd old && GOOGLE_CLOUD_PROJECT= https_proxy=http://localhost:3128 go run main.go
```
5. Run the following command from the root of the repository, see that it hangs since the proxy blocks IPs, but allows domains (you can see the access logs in `squid_access.log`)
```bash
cd new && GOOGLE_CLOUD_PROJECT= https_proxy=http://localhost:3128 go run main.go
```
The differences are that the `old` directory uses the `cloud.google.com/go/accessapproval@v1.8.0` that references `cloud.google.com/go/auth@v0.9.0`, and the `new` directory uses the `cloud.google.com/go/accessapproval@v1.8.1` that references `cloud.google.com/go/auth@v0.10.1`.
Setting `export GOOGLE_API_GO_EXPERIMENTAL_DISABLE_NEW_AUTH_LIB=true` will make the `new` directory work as expected.