droboticflow-new/docs/legacy-platform-admin-retirement.md

1.7 KiB

Legacy platform administrator retirement

Business accounts use the account-management page and supplier hierarchy. isSuperAdmin is a legacy maintenance identity, not a business role. The old organization console and its frontend API wrapper have been removed. The login page no longer exposes anonymous super-administrator initialization or organization terminology. Clients reject a legacy identity returned by an older server and attempt to log that session out.

Normal deployments reject legacy identity login and existing cookies, hide bootstrap availability, and reject the legacy bootstrap / organization administration endpoints. Ordinary administrators and supplier roles retain their current permissions. Underlying organization identifiers remain as internal data-isolation keys; this change does not delete or merge their business records.

DROBOTICFLOW_ENABLE_LEGACY_ORGANIZATION_ADMIN=true is an explicit backend-only compatibility switch for controlled maintenance and legacy integration fixtures. It defaults to off and must remain unset/false in Fanyu. Enabling it does not restore the removed frontend console. New installation account provisioning is an operator responsibility; the retired public super-admin bootstrap is not part of the business UI.

The Fanyu account retirement is a separate audited data operation: confirm an active ordinary business administrator, disable the exact legacy platform account, delete that user's sessions, then read back the disabled status and zero sessions. Do not remove its historical identity or business data. Tests cover valid-password rejection, pre-existing cookie rejection, bootstrap and organization endpoint closure, and successful ordinary administrator login.