[UI] User cannot create backups in a namespace with create permissions

Description

Tested with Everest v1.2.0-rc1 version.

Install mysql operator in a1 namespace.

Login in Everest UI using admin user and create mysql database using the admin user. Add a backup storage and take some scheduled backups for the mysql database.

Install mongodb in a2 namespace.

Create mongodb database using the admin user. Add a backup storage, but do not add a scheduled backup.

Create a user dbadmin using cli.

Add the following permissions in the RBAC policy

Login in Everest UI using dbadmin user and try to create backups for mongodb database in a2 namespace.

There is no Create backup button on the Backups page, hence the dbadmin user cannot create a backup.

Also attaching a video for the same

Sometimes for a split second the Create backup button is displayed and then it disappears.

Now change the RBAC policy for dbadmin user and give create permissions for all namespaces

The dbadmin user can now create backups

Environment

None

Attachments

5

Activity

Show:

Manish Chawla September 12, 2024 at 1:09 PM

Tested with Everest v1.2.0-rc2 version. Run the same scenario as above.

Add the following RBAC policy

The dbadmin user can now create manual and scheduled backups for mongodb database in a2 namespace. The Create backup button is now available on the Backups page. To list backups, the read permission is also required with create permissions otherwise the backups are not displayed.

The dbadmin user can also edit and delete backup schedules for mongodb database in a2 namespace.

For mysql database in a1 namespace, the user can’t view the backups or create backups, though existing backup schedules are displayed

Change the permissions to include all(*) in a2 namespace

The dbadmin user can create manual, scheduled backups in the mongodb database of a2 namespace. He can edit, delete backup schedules of the same database. He can also delete backups of the same database.

The issue is fixed, hence closing it.

Manish Chawla September 11, 2024 at 11:17 AM

Same issue i.e. there is no Create backup button on the Backups page of mysql database in a1 namespace when the user has all permissions for a single namespace

Unresolved

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Smart Checklist

Created September 11, 2024 at 7:34 AM
Updated October 1, 2024 at 7:43 PM