cadrumo.adapters.persistence.profile.auth_diagnostics module

Encrypted persistence adapter for application auth diagnostics.

class AuthDiagnosticPersistenceAdapter(*args, **kwargs)[source]

Bases: AuthDiagnosticPersistencePort

Translate the active bucket’s secure-object store to the auth port.

list_records()[source]

List readable diagnostic payloads from the canonical namespace.

Return type:

tuple[AuthDiagnosticPersistenceRecord, ...]

load_record(diagnostic_id)[source]

Load one readable diagnostic payload from the canonical namespace.

Return type:

AuthDiagnosticPersistenceRecord | None

Parameters:

diagnostic_id (str)

save_record(diagnostic_id, payload, *, written_at)[source]

Save one diagnostic payload under the canonical namespace contract.

Return type:

None

Parameters:
build_auth_diagnostic_persistence()[source]

Build the stateless active-bucket auth-diagnostic adapter.

Return type:

AuthDiagnosticPersistencePort