You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dashboard shows Add button for Backups page for cluster-admin, leads to blank form #2165
The Backups page introduced in 1.0 is a read-only view of Backup.backups.cozystack.io resources — backups are created by the controller, not manually by users. Because of this, no CFOMapping was defined for the Backups resource.
However, the dashboard renders the Add button based on RBAC permissions. Regular tenant users don't have create permissions, so they don't see the button. But cluster-admin users do have these permissions, so the button appears for them.
When a cluster-admin clicks Add, the form hangs and displays a blank page because there is no CFOMapping to render the creation form.
Expected behavior
The Add button should not be shown on the Backups page, since backups are not meant to be created manually.
Steps to reproduce
Log in to the dashboard as a user with cluster-admin privileges
Fixed. Closing after verifying against main (04b742670).
The console gates the button exactly as asked: packages/system/dashboard/images/console/apps/console/src/routes/BackupResourceListPage.tsx wraps the create <Link> in {resourceType !== "backups" && (, so Plans, Backup Jobs and Restore Jobs keep their create button and Backups — which is controller-produced and not user-creatable — does not.
The mechanism behind the blank form is gone too, independently: the CFO-based dashboard this was filed against has been replaced by the in-tree React console, and CFOMapping survives on main only inside the platform migration that cleans it up (packages/core/platform/images/migrations/migrations/40). So there is no longer a "no CFOMapping, therefore empty form" path to hit.
One residual nit, not worth keeping this open: the route backups/backups/create is still registered in ConsolePage.tsx and reachable by typing the URL, though nothing links to it. Whoever adds the per-application Backups tab from #2609 should decide whether to drop that orphaned route.
Activity
dosubot commentedon Jul 27, 2026
Hi, Timofei Larkin (@lllamnyp). I'm Dosu, and I'm helping the cozystack team manage their backlog and am marking this issue as stale.
Recap
Next Steps
Thanks for your understanding and contribution.
androndo commentedon Aug 3, 2026
Fixed. Closing after verifying against
main(04b742670).The console gates the button exactly as asked:
packages/system/dashboard/images/console/apps/console/src/routes/BackupResourceListPage.tsxwraps the create<Link>in{resourceType !== "backups" && (, so Plans, Backup Jobs and Restore Jobs keep their create button and Backups — which is controller-produced and not user-creatable — does not.The mechanism behind the blank form is gone too, independently: the CFO-based dashboard this was filed against has been replaced by the in-tree React console, and
CFOMappingsurvives onmainonly inside the platform migration that cleans it up (packages/core/platform/images/migrations/migrations/40). So there is no longer a "no CFOMapping, therefore empty form" path to hit.One residual nit, not worth keeping this open: the route
backups/backups/createis still registered inConsolePage.tsxand reachable by typing the URL, though nothing links to it. Whoever adds the per-application Backups tab from #2609 should decide whether to drop that orphaned route.Found during an audit of all open backup issues.