fix: set CLOUDSDK_PROXY_TYPE=http instead of https for gcloud#179
Open
javabrett wants to merge 1 commit intoanthropic-experimental:mainfrom
Open
fix: set CLOUDSDK_PROXY_TYPE=http instead of https for gcloud#179javabrett wants to merge 1 commit intoanthropic-experimental:mainfrom
javabrett wants to merge 1 commit intoanthropic-experimental:mainfrom
Conversation
gcloud's CLOUDSDK_PROXY_TYPE accepts only: http, http_no_tunnel, socks4, socks5. Setting it to 'https' causes every gcloud command to fail with: ERROR: Invalid value for property [proxy/type]: The proxy type property value [https] is not valid. Possible values: [http, http_no_tunnel, socks4, socks5]. The srt HTTP proxy is an HTTP CONNECT proxy, which gcloud refers to as type 'http' (not 'https'). The 'https' naming was likely chosen to indicate the proxy handles HTTPS traffic, but that is not what gcloud's proxy type enum means. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17a9ea4 to
5288ce3
Compare
javabrett
added a commit
to javabrett/sandbox-runtime
that referenced
this pull request
Apr 13, 2026
Identifies the local build containing two fixes pending upstream: - fix/cloudsdk-proxy-type-invalid (PR anthropic-experimental#179) - fix/keychain-secd-mach-lookup (PR anthropic-experimental#215)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
sandbox-utils.tssetsCLOUDSDK_PROXY_TYPE=httpswhen configuring the Google Cloud SDK proxy, buthttpsis not a valid value for that property. Everygcloudcommand inside the sandbox fails immediately with:The error can be reproduced directly without srt:
With the fix:
Root cause
The srt HTTP proxy is an HTTP CONNECT proxy. Most tools (curl, requests, etc.) call this an "HTTPS proxy" because it tunnels HTTPS traffic. But gcloud's
CLOUDSDK_PROXY_TYPEenum useshttpto mean "HTTP CONNECT proxy" — the valid values (http,http_no_tunnel,socks4,socks5) describe the proxy protocol, not the tunnelled traffic.The comment in the code acknowledges the intent ("Use HTTPS proxy to match other HTTP-based tools") but the value chosen doesn't match gcloud's vocabulary.
Fix
Change
CLOUDSDK_PROXY_TYPE=httpstoCLOUDSDK_PROXY_TYPE=httpand update the comment to explain why.One-line diff: