Repository navigation
Open
Description
Description
Account-scoped snapshot and PITR objects created by the sys account on behalf of a tenant are invisible to that tenant: SHOW SNAPSHOTS/SHOW PITR inside the tenant return only the objects the tenant created itself. The policies that govern the tenant's own data protection are a black box to the tenant admin.
Verified on a fresh main bootstrap (2026-10-27):
-- sys account:
CREATE PITR acc_pitr_s1 FOR ACCOUNT susp1 RANGE 2 'h'; -- ok
CREATE SNAPSHOT snap_for_s1 FOR ACCOUNT susp1; -- ok
SHOW PITR; -- sys sees both: acc_pitr_s1 (account susp1) ...
SHOW SNAPSHOTS; -- sys sees snap_for_s1 (account susp1)
-- tenant susp1 (admin login):
CREATE PITR my_own FOR ACCOUNT RANGE 1 'h'; -- tenant can create its own — ok
SHOW PITR; -- sees ONLY my_own; acc_pitr_s1 is absent
SHOW SNAPSHOTS; -- EMPTY; snap_for_s1 is absent
So the visibility rule is "objects I created", not "objects scoped to me". For snapshots the tenant cannot even list a snapshot whose restore semantics govern its whole account.
Why it matters
- Tenant-side recovery/backup verification is impossible: a tenant admin can neither confirm that protection exists (SLA audit), nor see the retained window (2h? 24h?), nor plan a restore from
snap_for_s1— they'd have to ask the sys operator every time, breaking the self-service multi-tenant model MatrixOne's account system is built around. - CDC Pitfalls: since CDC now requires PITR for its checkpoints (see the earlier onboarding issue [Bug]: CDC first-run gauntlet — snapshot needs PROCESS, pre-created sink table wedges the task, Level key is case-sensitive #31421), a tenant creating a table-level CDC task gets "no valid PITR configuration" with no way to see that sys-side policy
acc_pitr_s1actually covers them — the tenant-visible PITR list is empty even though protection exists. - The asymmetry inverts who can act: sys can DROP the tenant's PITR/snapshot invisibly to the tenant (no change visible in tenant's SHOW), while the tenant cannot drop the sys-created object at all (likely permission-scoped; untested, but whatever the behavior is, the tenant can't even name the object).
- Documentation mismatch risk: user guide around PITR/snapshot claims account-level scoping, but scoping governs applicability, not visibility — surprising for a policy object.
Reproduction
-- sys
CREATE ACCOUNT susp1 ADMIN_NAME 'adm' IDENTIFIED BY '...';
CREATE PITR acc_pitr_s1 FOR ACCOUNT susp1 RANGE 2 'h';
CREATE SNAPSHOT snap_for_s1 FOR ACCOUNT susp1;
-- tenant susp1 login:
SHOW PITR; -- acc_pitr_s1 missing
SHOW SNAPSHOTS; -- snap_for_s1 missingExpected behavior
SHOW PITR/SHOW SNAPSHOTSinside an account should list all objects scoped to that account (created by anyone), with a clear creator column (or similar signal to distinguish sys-created from self-created).- Either that, or a deliberate design decision documented in the user guide: "account-scoped objects created by another account are invisible"; but given tenants are supposed to consume (RESTORE FROM snapshot, PITR-based rollback) these objects have no consumption path from the tenant side today either — at minimum, restores performed by sys using these objects should behave consistently with tenant expectations, and the guide should say who sees what.
- If intentional, consider at least an
information_schema-style visibility or aSHOW PITR ALLfor the sys+tenant contract.
Environment
MO main fresh bootstrap 2026-10-27; verify commands run through mysql CLI on both sys account and the created tenant (susp1).
Activity
Ariznawlll commentedon Oct 27, 2026
Additional impact evidence from the same session: a tenant attempting RESTORE ACCOUNT susp1{snapshot='s1_second'} as the tenant admin gets 'find 0 snapshot records by name(s1_second), expect only 1' — the restore path also queries through the tenant's visibility scope, so not only can't the tenant list sys-created snapshots (#31429), it cannot consume them for restore either. The sys-side restoral works fine with the identical statement and snapshot. So the visibility gap blocks both auditing (SHOW) and the primary consumption action (RESTORE) for the tenant.