hub v0.61.0 + felhom-tenantsync v1.1.0: Customer RESET (middle lifecycle tier)
One operator action returns a customer to pre-first-install: all operational state dies (offsite repo, PBS namespace+backups, DR recipe, one-time secret, claim state, retained escrow custody); identity + basic config + provenance + events survive. Sits between host delete and customer Delete. - store/customer_reset.go: customer_resets journal, live inventory, ack-gated purge (never touches identity/provenance/events), DeleteClaim. - claim.ResetToUnclaimed: delete claim row -> fresh code next onboarding. - offsite.Deprovision (idempotent) + OffsiteIdentifier + ClearProvisionedDescriptor. - tenantsync.Deprovision + felhom-tenantsync.sh deprovision op (destroys ns + backup groups + token; shared user untouched; idempotent). - web/customer_reset.go: GET reset -> inventory JSON; POST -> orchestration (external teardown FIRST, DB purge LAST; refuse-while-hosts; typed-id + separate escrow ack). Amber RESET card distinct from red Danger-zone Delete. - Red-proofs: ack-gate + partial-failure resumability (both proven red); store ack-gating + journal round-trip; offsite idempotency + descriptor clear; RESET-card render. Green: build + vet + test.
This commit is contained in:
@@ -34,6 +34,9 @@ import (
|
||||
type tenancyProvisioner interface {
|
||||
Provision(ctx context.Context, customerID string) (*tenantsync.Result, error)
|
||||
Reissue(ctx context.Context, customerID string) (*tenantsync.Result, error)
|
||||
// Deprovision DESTROYS the customer's PBS namespace + backups + token (customer-RESET teardown,
|
||||
// v0.61.0). Idempotent — existed=false when nothing was there. The shared user is never touched.
|
||||
Deprovision(ctx context.Context, customerID string) (existed bool, err error)
|
||||
}
|
||||
|
||||
// SetTenantSync enables PBS DR tier provisioning (optional). Without it, saving a config with the
|
||||
|
||||
Reference in New Issue
Block a user