anthropics / anthropics/claude-code

[BUG] Scheduled routine (CCR) sandbox blocks outbound HTTPS to my own deployed domain

Abierto
#91,186 0 comentarios 0 reacciones 0 asignados Ver en GitHub
area:networking area:routines area:sandbox enhancement
Lenguaje dominante
Python
Estrellas
145k
Forks
23.1k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

### 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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
nextjs
Área
cloud, networking, security
Tipo de issue
Error
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Activo
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.