Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serveral places with hardcoded UUIDs #3554

Open
rhafer opened this issue Apr 21, 2022 · 4 comments
Open

Serveral places with hardcoded UUIDs #3554

rhafer opened this issue Apr 21, 2022 · 4 comments
Labels

Comments

@rhafer
Copy link
Contributor

rhafer commented Apr 21, 2022

Describe the bug

ocis has still quite a few place where it using hardcoded UUIDs:

I think we need to address all of these to make sure the UUIDs we use are really globally unique (across instances)

cc @dragonchaser @C0rby @butonic @micbar

@rhafer rhafer changed the title Serveral places with hardcoded UUID Serveral places with hardcoded UUIDs Apr 21, 2022
@wkloucek
Copy link
Contributor

see also #5064

@ScharfViktor
Copy link
Contributor

@rhafer still relevant or can we close? all links in the bug description lead to 404 - page not found

@wkloucek
Copy link
Contributor

wkloucek commented Jun 13, 2024

@ScharfViktor this issue predates the extensions to services rename.

Still valid:

// BundleUUIDRoleAdmin represents the admin role
BundleUUIDRoleAdmin = "71881883-1768-46bd-a24d-a356a2afdf7f"
// BundleUUIDRoleSpaceAdmin represents the space admin role
BundleUUIDRoleSpaceAdmin = "2aadd357-682c-406b-8874-293091995fdd"
// BundleUUIDRoleUser represents the user role.
BundleUUIDRoleUser = "d7beeea8-8ff4-406b-8fb6-ab2dd81e6b11"
// BundleUUIDRoleUserLight represents the user light role.
BundleUUIDRoleUserLight = "38071a68-456a-4553-846a-fa67bf5596cc"
// BundleUUIDProfile represents the user profile.
BundleUUIDProfile = "2a506de7-99bd-4f0d-994e-c38e72c28fd9"
// BundleUUIDServiceAccount represents the service account role.
BundleUUIDServiceAccount = "bcceed81-c610-49cc-ab77-39a024e8da12"
// SettingUUIDProfileLanguage is the hardcoded setting UUID for the user profile language
SettingUUIDProfileLanguage = "aa8cfbe5-95d4-4f7e-a032-c3c01f5f062f"
// SettingUUIDProfileDisableNotifications is the hardcoded setting UUID for the disable notifications setting
SettingUUIDProfileDisableNotifications = "33ffb5d6-cd07-4dc0-afb0-84f7559ae438"
// SettingUUIDProfileAutoAcceptShares is the hardcoded setting UUID for the disable notifications setting
SettingUUIDProfileAutoAcceptShares = "ec3ed4a3-3946-4efc-8f9f-76d38b12d3a9"

settingsSpaceID = "f1bdd61a-da7c-49fc-8203-0558109d1b4f" // uuid.Must(uuid.NewV4()).String()

@micbar
Copy link
Contributor

micbar commented Jun 13, 2024

Is there a collision?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants