anthropics / anthropics/claude-code
[BUG] Scheduled routine (CCR) sandbox blocks outbound HTTPS to my own deployed domain
- Ngôn ngữ chính
- Python
- Star
- 145k
- Fork
- 23.1k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
### What's Wrong?
Scheduled routine(cron trigger)で動くCCRサンドボックス環境から、自分のプロジェクトの本番サイト(Vercelにデプロイ済みの独自ドメイン)へcurlでHTTPS接続しようとすると、組織のエグレスポリシーによって毎回拒否されます。GitHubへのpush/pullは問題なく動作するため、GitHub関連の許可リストは機能していますが、それ以外の任意の外部ドメイン(この場合は自分のNext.jsサイトのAPIエンドポイント)へは接続できません。
### What Should Happen?
Scheduled routine(CCR)が、ユーザー自身が所有・管理していることが明確なドメイン(このリポジトリのVercelデプロイ先など)へ、外部APIとしてHTTPSリクエストを送れるようにしてほしい。または、Environment設定画面などからエグレス許可リストを自分で編集できるようにしてほしい。
### Error Messages/Logs
```shell
curl: (56) [agent-proxy] While this command ran, 2 connections through the agent proxy failed:
- big-happiness.com:443 — connect_rejected (the egress proxy denied the CONNECT (organization policy) or could not reach the destination)
Agent proxy status check:
$ curl -sS http://127.0.0.1:32959/__agentproxy/status
{
"enabled": true,
"port": 32959,
"noProxy": "localhost,127.0.0.1,::1,127.0.0.0/8,0.0.0.0/8,::,169.254.0.0/16,api.anthropic.com,...,registry.npmjs.org,jsr.io,npm.jsr.io,pypi.org,files.pythonhosted.org,index.crates.io,proxy.golan..."
}
(big-happiness.com is not in this allowlist)
```
### Steps to Reproduce
1. Environment ID env_01KVGSseWA1FH117LEiHBMUu 上でCCRのscheduled routine(trig_01FKy4haovBHeynLLJjnqzeG、毎週日曜9:00 JST実行)を実行する
2. サンドボックス内から curl https://big-happiness.com/api/... のように、自分のプロジェクトの本番APIエンドポイント(Vercelにデプロイ済みの独自ドメイン)へPOST/GETリクエストを送る
3. 上記の connect_rejected エラーで失敗する(同じセッション内での git push は正常に成功する)
### Claude Model
None
### Is this a regression?
I don't know
### Last Working Version
_No response_
### Claude Code Version
2.1.228 (Claude Code)
### Platform
Anthropic API
### Operating System
macOS
### Terminal/Shell
Terminal.app (macOS)
### Additional Information
This bug occurs specifically in a scheduled cloud routine (CCR / Claude Code Remote), not in the local CLI session. Environment ID: env_01KVGSseWA1FH117LEiHBMUu. Routine ID: trig_01FKy4haovBHeynLLJjnqzeG (weekly, Sunday 9am JST). The blocked domain (big-happiness.com) is deployed on Vercel and fully owned/managed by the account owner — this isn't an arbitrary third-party domain.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
The payload identifies no repository file or test; begin with the CCR agent-proxy status endpoint at http://127.0.0.1:32959/__agentproxy/status and compare its noProxy and egress behavior with the successful GitHub operation. Done means an approved path for scheduled routines to reach an explicitly user-managed domain, or a clearly exposed user-editable allowlist, with the reported request no longer rejected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- nextjs
- Lĩnh vực
- cloud, networking, security
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 30/100