Skip to content

fix(devcontainer): allow googleapis.com through sandbox firewall#40779

Open
tiennguyen-onehouse wants to merge 1 commit intoanthropics:mainfrom
tiennguyen-onehouse:fix/devcontainer-allow-googleapis
Open

fix(devcontainer): allow googleapis.com through sandbox firewall#40779
tiennguyen-onehouse wants to merge 1 commit intoanthropics:mainfrom
tiennguyen-onehouse:fix/devcontainer-allow-googleapis

Conversation

@tiennguyen-onehouse
Copy link
Copy Markdown

@tiennguyen-onehouse tiennguyen-onehouse commented Mar 30, 2026

Summary

  • Adds googleapis.com and oauth2.googleapis.com to the devcontainer firewall allowlist in init-firewall.sh
  • Allows tools using Google Cloud APIs (GCS, BigQuery, Vertex AI, etc.) and Google OAuth to function inside the devcontainer sandbox

Partially addresses #40769 for devcontainer sandbox users. The reporter's anthropic_cloud environment uses a separate TLS-intercepting proxy not controlled by this file — that requires a separate fix on the cloud platform side.

How we tested

Test script gist — run it yourself:

cd claude-code/
curl -sL https://gist.github.com/tiennguyen-onehouse/3c1ad4cf8f190ba36987a5aa52bb3bdb/raw/test_devcontainer_firewall.py | python3
--- New domains added ---
  PASS  Contains googleapis.com
  PASS  Contains oauth2.googleapis.com

--- Regression: existing domains still present ---
  PASS  registry.npmjs.org
  PASS  api.anthropic.com
  PASS  sentry.io
  PASS  statsig.anthropic.com
  PASS  statsig.com
  PASS  marketplace.visualstudio.com
  PASS  vscode.blob.core.windows.net
  PASS  update.code.visualstudio.com

--- Script structure checks ---
  PASS  Has shebang
  PASS  Has set -euo pipefail
  PASS  Has ipset create
  PASS  Has GitHub IP fetch
  PASS  Has default DROP policy
  PASS  Has firewall verification
  PASS  Has example.com block test
  PASS  Has GitHub API verify
  PASS  bash -n syntax check (exit 0)

========================================
Results: 19/19 passed

Add googleapis.com and oauth2.googleapis.com to the devcontainer
firewall allowlist so that tools using Google Cloud APIs (GCS, BigQuery,
Vertex AI, etc.) and Google OAuth can function inside the sandbox.

Partially addresses anthropics#40769 for devcontainer users. The reporter's
anthropic_cloud environment uses a separate TLS proxy not controlled
by this file.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tiennguyen-onehouse tiennguyen-onehouse marked this pull request as ready for review March 30, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant