aeat.adapters.persistence.storage.bucket._export_header module

Strict pydantic v2 record for the sealed-export archive header.

The export archive header is the plaintext frontmatter of every sealed export bundle produced by aeat config profile export. The wrapped DEK and the recovery wrap travel as separate archive members; the header itself carries only the bucket identifier, the manifest digest, the recovery-presence flag, the archive schema version, and the export timestamp.

class ExportArchiveHeader(**data)[source]

Bases: BaseModel

Plaintext frontmatter for a sealed bucket-export archive.

Parameters:
  • bucket_id (Annotated[str, StringConstraints(strip_whitespace=True, to_upper=None, to_lower=None, strict=None, min_length=1, max_length=128, pattern=None, ascii_only=None)])

  • manifest_digest (str)

  • recovery_wrap_present (bool)

  • archive_schema_version (int)

  • created_at (datetime)

bucket_id: BucketId
manifest_digest: str
recovery_wrap_present: bool
archive_schema_version: int
created_at: datetime