diff --git a/attestation-service/src/policy_engine/opa/mod.rs b/attestation-service/src/policy_engine/opa/mod.rs index adf365a..67458bd 100644 --- a/attestation-service/src/policy_engine/opa/mod.rs +++ b/attestation-service/src/policy_engine/opa/mod.rs @@ -119,7 +119,7 @@ impl PolicyEngine for OPA { bail!("OPA Policy Engine only support .rego policy"); } - let policy_bytes = base64::engine::general_purpose::URL_SAFE_NO_PAD + let policy_bytes = base64::engine::general_purpose::STANDARD .decode(input.policy) .map_err(|e| anyhow!("Base64 decode OPA policy string failed: {:?}", e))?; let mut policy_file_path = PathBuf::from(