nikivdev/code · error
unsupported sealed env algorithm: {}
Error message
unsupported sealed env algorithm: {} What it means
Error "unsupported sealed env algorithm: {}" thrown in nikivdev/code.
Source
Thrown at src/env.rs:989
content: SealedEnvWriteContent {
algorithm: SEALED_ENV_ALGORITHM.to_string(),
ciphertext_b64: STANDARD.encode(ciphertext),
nonce_b64: STANDARD.encode(content_nonce),
},
recipients,
})
}
fn decrypt_project_env_value(
item: &SealedEnvItem,
identity: &EnvSealerIdentity,
) -> Result<Option<String>> {
let content = item
.content
.as_ref()
.ok_or_else(|| anyhow::anyhow!("sealed env item is missing content"))?;
if content.algorithm != SEALED_ENV_ALGORITHM {
bail!("unsupported sealed env algorithm: {}", content.algorithm);
}
let grant = match item
.recipients
.iter()
.find(|grant| grant.recipient_id == identity.sealer_id)
{
Some(grant) => grant,
None => return Ok(None),
};
let sender_id = grant
.sender_id
.as_deref()
.ok_or_else(|| anyhow::anyhow!("sealed env grant is missing sender id"))?;
let wrapped_key = STANDARD
.decode(grant.wrapped_key_b64.as_bytes())
.context("failed to decode sealed env wrapped key")?;View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/env.rs:989 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/bf8d6f279abbb46c.
Report an issue: GitHub.