PRD 0029: provision egress routes via AgentProvisionPlan #115

Merged
didericis merged 9 commits from prd-0029-egress-routes-via-agent-provision-plan into codex/prd-codex-host-credentials 2026-06-01 22:04:33 -04:00
Showing only changes of commit 3b96de95ab - Show all commits
+2 -2
View File
2
@@ -194,6 +194,8 @@ def agent_provision_plan(
"guest, but Codex did not accept it" "guest, but Codex did not accept it"
))) )))
if template == PROVIDER_CLAUDE: if template == PROVIDER_CLAUDE:
env_vars["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1"
didericis marked this conversation as resolved Outdated
Outdated
Review

Similarly to codex, we should always include these in egress routes (whether or not auth_token is present), but we only have the egress add the auth token when it's present

Similarly to codex, we should always include these in egress routes (whether or not auth_token is present), but we only have the egress add the auth token when it's present
env_vars["DISABLE_ERROR_REPORTING"] = "1"
egress_routes.append(EgressRoute( egress_routes.append(EgressRoute(
host="api.anthropic.com", host="api.anthropic.com",
auth_scheme="Bearer" if auth_token else "", auth_scheme="Bearer" if auth_token else "",
@@ -202,8 +204,6 @@ def agent_provision_plan(
)) ))
if auth_token: if auth_token:
env_vars["CLAUDE_CODE_OAUTH_TOKEN"] = "egress-placeholder" env_vars["CLAUDE_CODE_OAUTH_TOKEN"] = "egress-placeholder"
env_vars["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1"
env_vars["DISABLE_ERROR_REPORTING"] = "1"
hidden_env_names = frozenset({"CLAUDE_CODE_OAUTH_TOKEN"}) hidden_env_names = frozenset({"CLAUDE_CODE_OAUTH_TOKEN"})
return AgentProvisionPlan( return AgentProvisionPlan(