Commit Graph
3 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 933d9d950b feat(purge): erase the tenant's Prüfwerk data before deleting it
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 7m39s
ci / image (pull_request) Skipped
Purging a tenant left its Prüfwerk database and files behind. The purge
now first calls Prüfwerk's DELETE /api/v1/platform/tenants/{id}/data with
the registry's service token (the client is already allowed on the
platform routes in stage and prod). Any failure answers 502
pruefwerk_error and removes nothing, so staff can retry; the call is
idempotent. Without Prüfwerk in the environment's catalog (on-prem
without it) the step is skipped. The tenant.purged audit event records
pruefwerk_data (deleted / not_configured) and files Prüfwerk could not
remove.

Needed before the first 90-day deletion of an entry-offer workspace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:14:19 +01:00
Sharang ParnerkarandClaude Opus 5.5 34921bd44e fix(intake): security reports outlive their workspace
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 6m5s
ci / image (pull_request) Skipped
Purging an archived workspace deleted its intake reports with it: every
intake table cascaded from tenants. Benjamin's decision Nr. 17 (docgen#6
17878, V-g): no automatic deletion of the reports when a workspace is
deleted.

The purge now refuses first, before any file or account is removed:
409 intake_retained while the workspace has reports. Migration 0030 makes
the database refuse as well (intake_reports → tenants ON DELETE RESTRICT),
and DeleteTenant maps that to ErrConflict. CountIntakeReports on both
stores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
2026-11-12 14:25:53 +01:00
sharangandClaude Opus 5.5 e8dcd1d259 feat(admin): repair a tenant's sign-in, delete an archived tenant (#42)
ci / shared (push) Successful in 15s
ci / test (push) Successful in 23m50s
ci / image (push) Successful in 45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-09-26 11:00:14 +00:00