{"record":{"id":"b8efdb3385274a3e","repo":"openai/codex","slug":"a-different-workload-identity-configuration-is-alr","errorCode":null,"errorMessage":"a different workload identity configuration is already active in this process","messagePattern":"a different workload identity configuration is already active in this process","errorType":"exception","errorClass":"WorkloadIdentitySessionError","httpStatus":null,"severity":"error","filePath":"codex-rs/login/src/auth/workload_identity.rs","lineNumber":115,"sourceCode":"        )?;\n        WorkloadIdentityExchange::new(config, self.token_url, self.http_client_factory)\n    }\n}\n\n#[derive(Clone, PartialEq, Eq)]\nstruct WorkloadIdentityFingerprint {\n    assertion_file: PathBuf,\n    environment: WorkloadIdentityEnvironment,\n    federation_rule_id: String,\n    token_url: String,\n    workload_identity_context: Option<String>,\n}\n\n#[derive(Debug, Error)]\npub(super) enum WorkloadIdentitySessionError {\n    #[error(transparent)]\n    Exchange(#[from] WorkloadIdentityError),\n    #[error(\"a different workload identity configuration is already active in this process\")]\n    ConflictingConfiguration,\n    #[error(\"the workload identity process-session registry is unavailable\")]\n    RegistryUnavailable,\n    #[error(\"{0}\")]\n    InvalidConfiguration(String),\n}\n\n/// Returns whether workload identity was selected through process configuration.\n///\n/// Either marker selects workload identity. Partial configuration then fails validation rather\n/// than falling back to another credential source.\npub fn is_workload_identity_selected() -> bool {\n    ProcessEnvironment::read().has_marker()\n}\n\nfn resolve_config(\n    chatgpt_base_url: &str,\n    environment: ProcessEnvironment,","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/login/src/auth/workload_identity.rs#L97-L133","documentation":"Error \"a different workload identity configuration is already active in this process\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/login/src/auth/workload_identity.rs:115 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}