aKode fase 2b-1 (WIP): rimossi cloud-config, apps MCP ChatGPT, upload file, connectors-extension, rate limits backend; plugin remoti in corso (test non ancora compilanti)
Some checks failed
blocking-ci / Bazel (push) Has been cancelled
blocking-ci / Blob size policy (push) Has been cancelled
blocking-ci / cargo-deny (push) Has been cancelled
blocking-ci / Codespell (push) Has been cancelled
blocking-ci / repo-checks (push) Has been cancelled
blocking-ci / rust-ci (push) Has been cancelled
blocking-ci / sdk (push) Has been cancelled
blocking-ci / CI required (push) Has been cancelled
postmerge-ci / rust-ci-full (push) Has been cancelled
postmerge-ci / v8-canary (push) Has been cancelled
postmerge-ci / Postmerge CI results (push) Has been cancelled

This commit is contained in:
Andrea
2026-11-09 13:55:36 +01:00
parent 137106bf17
commit e4209e2755
166 changed files with 155 additions and 31558 deletions

View File

@@ -67,35 +67,6 @@ impl EmbeddedNetworkPolicy {
pub fn bind_config(&self, config: &mut Config) {
config.application_network_policy = self.effective.policy();
}
/// Limits cloud discovery and each authentication request to their exact local-policy endpoints.
pub fn bind_bootstrap_auth(
&self,
mut auth: codex_login::AuthConfig,
) -> codex_login::AuthConfig {
let factory = auth
.auth_route_config
.http_client_factory()
.clone()
.with_network_policy(self.local.policy());
let endpoint = codex_backend_client::Client::new(
auth.chatgpt_base_url
.as_deref()
.unwrap_or("https://chatgpt.com/backend-api/"),
factory.clone(),
)
.config_bundle_url();
auth.auth_route_config = codex_login::AuthRouteConfig::from_http_client_factory(
factory.clone().with_network_policy(
self.local
.policy()
.restrict_to_endpoints(endpoint.parse().into_iter().collect()),
),
)
.with_local_bootstrap_factory(factory)
.with_application_network_policy(self.effective.policy());
auth
}
}
pub(super) async fn configure(