claude-code - 💡(How to fix) Fix [FEATURE] Use a Virtual-Hosted Style URL for GCS in Native Install [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47149Fetched 2026-04-13 05:40:09
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Our environment restricts network access to only allow connections to explicitly approved hosts. However, the Native Install uses GCS Path-Style URLs (e.g., https://storage.googleapis.com/<bucket-name>/...), which means we must allowlist all GCS buckets to install Claude Code. This creates an unnecessarily broad security exception.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Our environment restricts network access to only allow connections to explicitly approved hosts. However, the Native Install uses GCS Path-Style URLs (e.g., https://storage.googleapis.com/<bucket-name>/...), which means we must allowlist all GCS buckets to install Claude Code. This creates an unnecessarily broad security exception.

Proposed Solution

Please switch the GCS URLs to Virtual-Hosted Style (e.g., https://<bucket-name>.storage.googleapis.com/...). This would allow us to allowlist only the specific bucket used for Claude Code packages, rather than granting access to all of GCS.

Reference: https://docs.cloud.google.com/storage/docs/request-endpoints#xml-api

Alternative Solutions

If switching entirely to Virtual-Hosted Style is not feasible, please consider adding a configuration option to choose between Path-Style and Virtual-Hosted Style URLs.

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

No response

Additional Context

Follow-up to #25409, #34343 (closed as stale). The issue still persists.

extent analysis

TL;DR

Switching to Virtual-Hosted Style GCS URLs or adding a configuration option to choose between URL styles can help mitigate the security exception issue.

Guidance

  • Investigate the feasibility of switching to Virtual-Hosted Style GCS URLs, as proposed in the issue, to reduce the scope of the security exception.
  • Consider adding a configuration option to allow users to choose between Path-Style and Virtual-Hosted Style URLs, providing flexibility for environments with different security requirements.
  • Review the documentation on GCS request endpoints to understand the differences between Path-Style and Virtual-Hosted Style URLs and their implications for security and configuration.
  • Evaluate the potential impact of this change on existing workflows and dependencies, such as CLI commands and flags.

Example

No code snippet is provided, as the issue focuses on configuration and URL style changes rather than specific code modifications.

Notes

The solution may require updates to the Native Install process and potentially other components that interact with GCS. It is essential to consider the potential effects on productivity and security when implementing this change.

Recommendation

Apply workaround by adding a configuration option to choose between Path-Style and Virtual-Hosted Style URLs, as this provides a flexible solution that can accommodate different environments and security requirements.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING