{"record":{"id":"3b32b23913b0dfc8","repo":"openai/codex","slug":"0-3b32b2","errorCode":null,"errorMessage":"{0}","messagePattern":"\\{0\\}","errorType":"exception","errorClass":"WorkloadIdentitySessionError","httpStatus":null,"severity":"error","filePath":"codex-rs/login/src/auth/workload_identity.rs","lineNumber":119,"sourceCode":"\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,\n    chatgpt_login_allowed: bool,\n    auth_route_config: AuthRouteConfig,\n) -> Result<Option<WorkloadIdentitySessionConfig>, WorkloadIdentitySessionError> {\n    if !environment.has_marker() {","sourceCodeStart":101,"sourceCodeEnd":137,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/login/src/auth/workload_identity.rs#L101-L137","documentation":"Error \"{0}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/login/src/auth/workload_identity.rs:119 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"}