mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
## Why Config servers that publish OAuth metadata still required administrators to configure OAuth endpoints explicitly for Codex to use them. ## What changed - Discover OAuth metadata when `config_server.oauth` is omitted. Use explicit settings when provided, and fetch managed configuration anonymously when discovery finds no metadata. - Have the Git credential helper resolve the config server before fetching managed configuration. It refuses explicit or discovered OAuth so it can apply workspace policy without opening the OS keyring. - Apply local network policy to discovery during `codex logout`. ## Testing Cover app-server recovery after a discovery failure, Git credential helper rejection of explicit OAuth without a network request, and logout discovery blocked by local network policy. GitOrigin-RevId: 1ad84effef48fd9b56371ee177bd53c54f3e87b8
29 lines
1.0 KiB
Rust
29 lines
1.0 KiB
Rust
//! Cloud-hosted configuration data for Codex.
|
|
//!
|
|
//! This crate owns transport, caching, and refresh behavior for cloud-delivered
|
|
//! config data. Parsing and composition remain in `codex-config`.
|
|
|
|
mod backend;
|
|
mod bundle_loader;
|
|
mod cache;
|
|
mod chatgpt;
|
|
mod config_server;
|
|
mod config_source;
|
|
mod discovery;
|
|
mod metrics;
|
|
mod service;
|
|
mod validation;
|
|
|
|
pub use bundle_loader::ConfigServerLoginMethod;
|
|
pub use bundle_loader::chatgpt_config_bundle_loader;
|
|
pub use bundle_loader::chatgpt_config_bundle_loader_for_storage;
|
|
pub use bundle_loader::chatgpt_config_bundle_loader_for_storage_without_cache;
|
|
pub use bundle_loader::ensure_config_server_login;
|
|
pub use bundle_loader::managed_config_auth_manager;
|
|
pub use bundle_loader::managed_config_bundle_loader;
|
|
pub use bundle_loader::managed_config_bundle_loader_for_auth;
|
|
pub use bundle_loader::managed_config_bundle_loader_for_storage;
|
|
pub use config_server::anonymous_config_server_bundle_loader;
|
|
pub use config_server::config_server_auth_manager;
|
|
pub use config_server::config_server_bundle_loader;
|