Enforce managed auth across bootstrap and app-server

This commit is contained in:
Abhinav Vedmala
2026-06-16 07:39:50 +00:00
parent 50d33d5c6c
commit bc371f1074
14 changed files with 215 additions and 22 deletions
+2
View File
@@ -63,6 +63,7 @@ use codex_core::config::Config;
use codex_core::config::ConfigBuilder;
use codex_core::config::ConfigOverrides;
use codex_core::config::ConfigTomlLoadResult;
use codex_core::config::bootstrap_auth_config;
use codex_core::config::find_codex_home;
use codex_core::config::load_bootstrap_config_toml_with_layer_stack;
use codex_core::config::resolve_bootstrap_auth_keyring_backend_kind;
@@ -344,6 +345,7 @@ pub async fn run_main(cli: Cli, arg0_paths: Arg0DispatchPaths) -> anyhow::Result
)
.await;
let bootstrap_config_toml = &bootstrap_config.config_toml;
enforce_login_restrictions(&bootstrap_auth_config(&codex_home, &bootstrap_config)?).await?;
let chatgpt_base_url = bootstrap_config_toml
.chatgpt_base_url