migtools / oadp-non-admin

OADP Non Admin Controller
Apache License 2.0
3 stars 5 forks source link

Ability for non-admin users to create BackupStorageLocations(BSL) #36

Open shubham-pampattiwar opened 7 months ago

shubham-pampattiwar commented 7 months ago

Add the the functionality of providing the non-admin users the ability to create their own BackupStorageLocations. In other words BYOB (Bring your own Bucket/BSL). The task would entail:

shubham-pampattiwar commented 7 months ago

Lets target for this phase 1 with an optional cluster-wide BSL usage flag.

shubham-pampattiwar commented 7 months ago

Additional responsibilities of the controller:

mateusoliveira43 commented 6 months ago

Velero Backup spec has the field storageLocation (and current NonAdminBackup also has it). Should we put some validation or even remove that field from NonAdminBackup :question: My fear is that non admin user can use a admin BSL for backups.

I think this is not https://github.com/migtools/oadp-non-admin/issues/37 responsibility, because this should be a always active check, and not only admin user turns it on.

Maybe add to OADP DPA which BSL NAC will use (bad UX if NAC is used by many non admin users :question:) or with this feature, only allow NonAdminBackups if a NonAdminBackupStorageLocation exists and add a field in NonAdminBackup spec and remove storageLocation from backupSpec.