aeat.adapters.persistence.storage package¶
Persistence layer public API.
Public API of the storage subpackage. Callers outside
adapters.persistence.storage must import only from here; internal
modules (sql._orm, sql.engine, sql.session, sql.repository,
and the encryption substrate under crypto,
envelope, master_key, blob_store, secret_store) are
implementation details.
The phrase encryption substrate denotes the layered crypto stack (master-key provider → envelope wrapper → encrypted blob store → typed column helpers) that every persisted record passes through. Throughout the package, “substrate” without a qualifier refers to this stack.
The public surface is grouped by contract:
SQL and secure-object persistence — engine/session helpers, typed catalogue repositories,
SecureObjectRepository, and the secure-object work recordsSecureObjectWrite,SecureObjectDeletion, andSecureObjectNamespaceIntegrity.Encryption substrate —
Envelope,CipherEnvelope,EncryptedBlobStore,SecretStore,MasterKeyProvider, and the column-level helpersEncryptedString,EncryptedBytes,EncryptedJSON, andHashedLookup.Path-shaped SDK bridges —
materialise_secret(),export_to_temp_path(), andget_secret_store()for callers that cannot consume in-memory secret bytes.Runtime and custody boundary —
StorageRuntime,StorageRuntimeReadiness, runtime repository factories,activate_session(),get_active_master_key(),activate_master_key_provider(), andget_master_key_provider().Recovery and rotation —
RecoveryRecord,MintedRecovery, BIP-39 recovery helpers,RotationPlanEntry,RotationSummary, and master-key / blob-store rotation functions.Secure-object hierarchy registry —
STORAGE_NAMESPACE_REGISTRY,STORAGE_PATH_DEFINITIONS, namespace constants, andsecure_object_logical_path()/secure_object_namespace_logical_path(); callers must use these exported symbols instead of constructing persisted secure-storage locations by hand.Governance helpers —
SensitivityClass, classification policies, redaction helpers, corpus manifests, path-safety helpers, and file-lock primitives.
Subpackages¶
- aeat.adapters.persistence.storage.blob_store package
- aeat.adapters.persistence.storage.bucket package
- Submodules
- aeat.adapters.persistence.storage.bucket._errors module
- aeat.adapters.persistence.storage.bucket._export_header module
- aeat.adapters.persistence.storage.bucket._keystore_paths module
- aeat.adapters.persistence.storage.bucket._layout module
- aeat.adapters.persistence.storage.bucket._lockfile module
- aeat.adapters.persistence.storage.bucket._manifest module
- aeat.adapters.persistence.storage.bucket._manifest_io module
- aeat.adapters.persistence.storage.bucket._output_language_hint module
- aeat.adapters.persistence.storage.bucket._sealed_archive_errors module
- aeat.adapters.persistence.storage.bucket._sealed_archive_reader module
- aeat.adapters.persistence.storage.bucket._sealed_archive_writer module
- Submodules
- aeat.adapters.persistence.storage.crypto package
- aeat.adapters.persistence.storage.envelope package
- aeat.adapters.persistence.storage.master_key package
- Submodules
- aeat.adapters.persistence.storage.master_key._active_session module
- aeat.adapters.persistence.storage.master_key._bucket_session module
- aeat.adapters.persistence.storage.master_key._dek_wrap module
- aeat.adapters.persistence.storage.master_key._errors module
- aeat.adapters.persistence.storage.master_key._idle_timeout module
- aeat.adapters.persistence.storage.master_key._kdf module
- aeat.adapters.persistence.storage.master_key._kdf_params module
- aeat.adapters.persistence.storage.master_key._master_key module
- aeat.adapters.persistence.storage.master_key._master_key_bucket_dek module
- aeat.adapters.persistence.storage.master_key._master_key_derivation module
- aeat.adapters.persistence.storage.master_key._master_key_ephemeral module
- aeat.adapters.persistence.storage.master_key._master_key_io module
- aeat.adapters.persistence.storage.master_key._master_key_records module
- aeat.adapters.persistence.storage.master_key._master_key_tax_id module
- aeat.adapters.persistence.storage.master_key._recovery module
- aeat.adapters.persistence.storage.master_key._recovery_facade module
- aeat.adapters.persistence.storage.master_key._recovery_record module
- aeat.adapters.persistence.storage.master_key._zeroise module
- Submodules
- aeat.adapters.persistence.storage.secret_store package
- aeat.adapters.persistence.storage.sql package
- Submodules
- aeat.adapters.persistence.storage.sql._orm module
- aeat.adapters.persistence.storage.sql._secure_object_crypto module
- aeat.adapters.persistence.storage.sql._secure_object_integrity module
- aeat.adapters.persistence.storage.sql._secure_object_records module
- aeat.adapters.persistence.storage.sql._secure_object_row_codec module
- aeat.adapters.persistence.storage.sql._secure_object_schema module
- aeat.adapters.persistence.storage.sql.engine module
- aeat.adapters.persistence.storage.sql.records module
- aeat.adapters.persistence.storage.sql.repository module
- aeat.adapters.persistence.storage.sql.secure_objects module
- aeat.adapters.persistence.storage.sql.session module
- Submodules
Submodules¶
- aeat.adapters.persistence.storage._kdf_salt module
- aeat.adapters.persistence.storage._namespace_registry module
StorageNamespaceScopeStorageCustodyDispositionStorageCustodyProfileStorageRemoteMirrorPolicyStoragePathKindSecureObjectNamespaceDefinitionSecureObjectNamespaceDefinition.keySecureObjectNamespaceDefinition.namespaceSecureObjectNamespaceDefinition.ownerSecureObjectNamespaceDefinition.sensitivitySecureObjectNamespaceDefinition.schema_versionSecureObjectNamespaceDefinition.object_key_grammarSecureObjectNamespaceDefinition.scopeSecureObjectNamespaceDefinition.custody_dispositionSecureObjectNamespaceDefinition.default_object_keySecureObjectNamespaceDefinition.remote_mirror_policySecureObjectNamespaceDefinition.remote_mirror_requires_revisionSecureObjectNamespaceDefinition.remote_mirror_requires_integrity_manifestSecureObjectNamespaceDefinition.require_default_object_key()
StoragePathDefinitionStorageHierarchyRegistrysecure_object_logical_path()secure_object_namespace_logical_path()
- aeat.adapters.persistence.storage._path_safety module
- aeat.adapters.persistence.storage._rotation module
- aeat.adapters.persistence.storage._schema_lineage module
- aeat.adapters.persistence.storage.attachment module
AttachmentStoreAttachmentStore.objectsAttachmentStore.blobs_dirAttachmentStore.manifests_dirAttachmentStore.manifest_path()AttachmentStore.put_bytes()AttachmentStore.put_file()AttachmentStore.read_bytes()AttachmentStore.open_bytes()AttachmentStore.verify_blob()AttachmentStore.write_manifest()AttachmentStore.load_manifest()AttachmentStore.iter_manifests()
- aeat.adapters.persistence.storage.errors module
SecureStorageErrorStorageErrorRepositoryErrorRepositorySetupErrorSecureObjectRevisionConflictErrorPersistenceErrorStorageValidationErrorstorage_validation_error()EncryptionErrorDecryptionErrorSecureObjectUnreadableErrorKeyDerivationErrorNonceCollisionErrorSecretStoreErrorSessionExpiredErrorPassphraseTooShortErrorKeyringUnavailableErrorMasterKeyUnavailableErrorMasterKeyKdfVersionErrorMasterKeyKeychainLockedErrorMasterKeyPassphraseMismatchErrorMasterKeyMaterialMissingErrorUnsecuredModeRefusedErrorClassificationErrorEnvelopeVersionErrorPathContainmentErrorBlobNotFoundErrorBlobIntegrityErrorSecretNotFoundErrorSecretAlreadyExistsErrorRetentionPolicyErrorNamespaceRegistryError
- aeat.adapters.persistence.storage.runtime module
StorageRuntimeReadinessCodeStorageRuntimeReadinessCode.READYStorageRuntimeReadinessCode.NO_ACTIVE_SESSIONStorageRuntimeReadinessCode.SESSION_SEALEDStorageRuntimeReadinessCode.SESSION_EXPIREDStorageRuntimeReadinessCode.UNSECURED_BACKENDStorageRuntimeReadinessCode.ROUTE_NOT_ACTIVE_BUCKETStorageRuntimeReadinessCode.ROUTE_BUCKET_MISMATCH
StorageRuntimeReadinessIssueStorageRuntimeSessionStorageRuntimeReadinessStorageRuntimeruntime_not_ready_error()inspect_storage_runtime()inspect_bucket_storage_runtime()
- aeat.adapters.persistence.storage.runtime_repository module