aeat.adapters.persistence.storage.master_key._master_key_bucket_dek module¶
Bucket-DEK activation helpers for master-key providers.
Build and return a
MasterKeyUnavailableErrorfor this substrate.- Return type:
- Parameters:
message (str)
- bucket_dek_path(*, storage_root, bucket_id)[source]¶
Return the separated keystore path for one bucket’s wrapped DEK.
- bucket_key_schedule(*, storage_root, bucket_id)[source]¶
Return the bucket’s key schedule, or
Nonewhen no manifest exists.
- idle_minutes_for_bucket(*, storage_root, bucket_id, default_minutes)[source]¶
Resolve the idle window from the bucket manifest, falling back to settings.
- load_or_mint_bucket_dek(*, kek, storage_root, bucket_id, allow_bootstrap_mint)[source]¶
Unwrap the per-bucket DEK, or mint it for a not-yet-registered bucket.
- wrapped_dek_from_document(document)[source]¶
Return a strict wrapped-DEK object from a persisted JSON document.
- Parameters:
document (_WrappedBucketDekDocument)
- document_from_wrapped_dek(wrapped)[source]¶
Return the JSON document shape for a wrapped bucket DEK.
- Return type:
_WrappedBucketDekDocument