{"record":{"id":"21fd441570eecf46","repo":"openai/codex","slug":"the-workload-identity-federation-rule-id-must-not","errorCode":null,"errorMessage":"the workload identity federation rule ID must not be empty","messagePattern":"the workload identity federation rule ID must not be empty","errorType":"exception","errorClass":"WorkloadIdentityError","httpStatus":null,"severity":"error","filePath":"codex-rs/workload-identity/src/lib.rs","lineNumber":42,"sourceCode":"    ) -> Result<Self, WorkloadIdentityError> {\n        let federation_rule_id = federation_rule_id.trim();\n        if federation_rule_id.is_empty() {\n            return Err(WorkloadIdentityError::InvalidFederationRuleId);\n        }\n        if !assertion_file.is_absolute() {\n            return Err(WorkloadIdentityError::AssertionFileMustBeAbsolute);\n        }\n        Ok(Self {\n            assertion_file,\n            federation_rule_id: federation_rule_id.to_string(),\n            workload_identity_context,\n        })\n    }\n}\n\n#[derive(Clone, Debug, Error)]\npub enum WorkloadIdentityError {\n    #[error(\"the workload identity federation rule ID must not be empty\")]\n    InvalidFederationRuleId,\n    #[error(\"the workload identity assertion file path must be absolute\")]\n    AssertionFileMustBeAbsolute,\n    #[error(\"the workload identity assertion is invalid\")]\n    InvalidAssertion,\n    #[error(\"the workload identity assertion exceeds 16 KiB\")]\n    AssertionTooLarge,\n    #[error(\"could not read workload identity assertion file {path}\")]\n    AssertionFile {\n        path: PathBuf,\n        #[source]\n        source: Arc<std::io::Error>,\n    },\n    #[error(\"could not configure the workload identity HTTP client\")]\n    HttpClientConfiguration,\n    #[error(\"the workload identity token URL must use HTTPS or loopback HTTP\")]\n    InvalidTokenUrl,\n    #[error(\"the workload identity token exchange is unavailable\")]","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/workload-identity/src/lib.rs#L24-L60","documentation":"Error \"the workload identity federation rule ID must not be empty\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/workload-identity/src/lib.rs:42 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set a non-empty workload identity federation rule ID in the configuration."],"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"}