Skip to main content

Crate baukit_erasure

Crate baukit_erasure 

Source
Expand description

Erase product data atomically and choose whether to delete the identity account.

Structs§

ApiDeletionConfig
API credentials for an identity provider. The key never appears in errors.
ClerkAccountDeleter
Clerk Backend API user deletion. WorkerRunner retries temporary failures.
ErasureOutcome
Safe response and replay receipt.
ErasureService
Coordinates product erasure and the chosen identity retention mode.
IdentityDeletionHandler
Lease-aware identity deletion handler. WorkerRunner supplies retry backoff.
KeycloakAccountDeleter
Dedicated Keycloak admin client, with no proxy or redirects.
KeycloakDeletionConfig
Confidential service-account configuration.
PostgresErasureStore
PostgreSQL receipt and fence store. Products apply the reference migration.
WorkOsAccountDeleter
WorkOS User Management deletion. WorkerRunner retries temporary failures.

Enums§

ErasureError
Errors before durable acceptance. Database errors may require client reconciliation.
ErasurePreflight
Read-only admission result before external erasure notifications.
ErasureState
Persistent erasure state.
IdentityDeletionError
Safe failure classes. Errors never include provider bodies, subjects, or credentials.
IdentityRetention
Whether product erasure also deletes the identity provider account.

Constants§

IDENTITY_DELETE_JOB_TYPE
Durable job identifier.
POSTGRES_MIGRATION_SQL
Reference migration to copy after the baukit-jobs migrations.
POSTGRES_REONBOARDING_MIGRATION_SQL
Reference migration to copy after 0001 erasure.

Traits§

IdentityAccountDeleter
Provider-neutral account deletion. An absent account is successful deletion.
ProductErasure
Product-owned deletion executed inside the erasure transaction.

Functions§

reject_fenced_subject
Axum handler helper. Call after authentication, before any product operation.

Type Aliases§

ErasureFuture
Boxed asynchronous result used by erasure ports.