Skip to content
ocx
install

AttestationReport (1 of 2)

AttestationReportclassdataclass#

Re-exported from ocx_sdk._resultsView source
class AttestationReport(identifier: str, platform: str, subject_digest: str, predicate_type: str, signed: bool, transparency_log_index: int | None, bundle_digest: str | None = None, referrer_digest: str | None = None, sidecar_digest: str | None = None, certificate_identity: str | None = None, certificate_oidc_issuer: str | None = None, key_backend: str | None = None, public_key_hint: str | None = None)

ocx package attest on a single reference — no tag sweep (C-013).

Payload is enveloped (D11): from_json unwraps data. Flat, thirteen fields; per D7’s field-order rule the seven optionals move to the end even though upstream interleaves public_key_hint earlier.

Attributes

NameTypeDescription
identifierstrThe identifier that was attested.
platformstrThe attested platform.
subject_digeststrThe manifest digest the attestation covers.
predicate_typestrThe resolved predicate type URI — not the --type spelling the caller gave attest(predicate_type=...).
signedboolWhether the attestation itself was signed.
transparency_log_indexint | NoneThe Rekor entry index. Always present in the JSON, but None when nothing was logged.
bundle_digeststr | NoneDigest of the attestation bundle, when produced.
referrer_digeststr | NoneDigest under the OCI referrers API, when attached that way.
sidecar_digeststr | NoneDigest of the sidecar tag, when attached that way. --signature-format both populates both digest fields.
certificate_identitystr | NoneThe Fulcio certificate’s identity, for keyless signing.
certificate_oidc_issuerstr | NoneThe Fulcio certificate’s OIDC issuer, for keyless signing.
key_backendstr | NoneWhich key backend produced the signature, carried as raw str (D8).
public_key_hintstr | NoneA hint identifying the verifying key, when supplied.

bundle_digestattributeclass attributeinstance attribute#

bundle_digest: str | None = None

platformattributeinstance attribute#

platform: str

predicate_typeattributeinstance attribute#

predicate_type: str

public_key_hintattributeclass attributeinstance attribute#

public_key_hint: str | None = None

referrer_digestattributeclass attributeinstance attribute#

referrer_digest: str | None = None

sidecar_digestattributeclass attributeinstance attribute#

sidecar_digest: str | None = None

transparency_log_indexattributeinstance attribute#

transparency_log_index: int | None