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
This can result in bad user experience, as users can end using other users backup (or when UUID solution is implemented, #89, prevent users from using NonAdminBackup with certain names)
From what I studied, given 2 namespaces that have long names (more than 239 chars), if their names differ only in position 240 or above, any NonAdminBackup that have the same same in these namespaces, the associated VeleroBackup name will be the same.
Example
this
namespace: mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm1
NonAdminBackup: example
and this input
namespace: mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm2
NonAdminBackup: example
return the same result
Further investigation
Need to confirm no other scenarios will generate equal names.
The text was updated successfully, but these errors were encountered:
We could drop all together the human readable name of the object and simply use our generated UUID as the Backup object name with retry generate similar to what @kaovilai proposed above. @mateusoliveira43 what do you think? We could also add suffix (not the prefix) to that uuid with namespace and stripped backup name, this way if it's longer then 240 characters, only part of name or namespace will be lost ensuring uniqueness of the name.
Given different inputs,
GenerateVeleroBackupName
can return the same result.oadp-non-admin/internal/common/function/function.go
Line 111 in 282620c
This can result in bad user experience, as users can end using other users backup (or when UUID solution is implemented, #89, prevent users from using NonAdminBackup with certain names)
From what I studied, given 2 namespaces that have long names (more than 239 chars), if their names differ only in position 240 or above, any NonAdminBackup that have the same same in these namespaces, the associated VeleroBackup name will be the same.
Example
this
and this input
return the same result
Further investigation
Need to confirm no other scenarios will generate equal names.
The text was updated successfully, but these errors were encountered: