openai/codex · error · WorkloadIdentityError

the workload identity assertion file path must be absolute

Error message

the workload identity assertion file path must be absolute

What it means

The assertion file path passed to the workload identity source is not absolute, triggering the AssertionFileMustBeAbsolute sentinel. Relative paths are rejected because the token exchange reads the file from a context-independent location.

Solutions

  1. Configure the assertion file with an absolute path instead of a relative one.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at codex-rs/workload-identity/src/lib.rs:44 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/f3556e24ac2b3497. Report an issue: GitHub.

Appendix: source

Thrown at codex-rs/workload-identity/src/lib.rs:44

        if federation_rule_id.is_empty() {
            return Err(WorkloadIdentityError::InvalidFederationRuleId);
        }
        if !assertion_file.is_absolute() {
            return Err(WorkloadIdentityError::AssertionFileMustBeAbsolute);
        }
        Ok(Self {
            assertion_file,
            federation_rule_id: federation_rule_id.to_string(),
            workload_identity_context,
        })
    }
}

#[derive(Clone, Debug, Error)]
pub enum WorkloadIdentityError {
    #[error("the workload identity federation rule ID must not be empty")]
    InvalidFederationRuleId,
    #[error("the workload identity assertion file path must be absolute")]
    AssertionFileMustBeAbsolute,
    #[error("the workload identity assertion is invalid")]
    InvalidAssertion,
    #[error("the workload identity assertion exceeds 16 KiB")]
    AssertionTooLarge,
    #[error("could not read workload identity assertion file {path}")]
    AssertionFile {
        path: PathBuf,
        #[source]
        source: Arc<std::io::Error>,
    },
    #[error("could not configure the workload identity HTTP client")]
    HttpClientConfiguration,
    #[error("the workload identity token URL must use HTTPS or loopback HTTP")]
    InvalidTokenUrl,
    #[error("the workload identity token exchange is unavailable")]
    ExchangeUnavailable,
    #[error("the workload identity token exchange was rejected with HTTP {0}")]

View on GitHub (pinned to 339751715c)