cadrumo.adapters.persistence.profile.apoderado module¶
Encrypted persistence adapter for apoderado configuration.
This module is the outward implementation of the application-owned
ApoderadoConfigurationRepository. It owns the secure-envelope substrate,
namespace contract, bucket key derivation, and translation of row-identity
refusals into the application error understood by the service.
Core types:
Envelope,
SensitivityClass.
- class ApoderadoConfigRepository(*, bucket_id, settings)[source]¶
Bases:
ApoderadoConfigurationRepositoryEncrypted per-bucket adapter for apoderado configuration.
-
sensitivity:
ClassVar[SensitivityClass]¶
- classmethod payload_model()[source]¶
Return the application configuration DTO wrapped by this adapter.
- Return type:
- extract_identifier(payload)[source]¶
Return the safe secure-object key for
payload’s bucket.- Return type:
- Parameters:
payload (ApoderadoConfiguration)
- save(configuration)[source]¶
Persist a configuration only when it names this bound bucket.
- Return type:
- Parameters:
configuration (ApoderadoConfiguration)
-
sensitivity: