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

use of short_workspace_id for naming workspace storage accounts leads to collisions #3921

Closed
TonyWildish-BH opened this issue May 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TonyWildish-BH
Copy link
Contributor

Describe the bug
Workspaces are created with storage accounts (and possibly other resources) that use the last four digits of the workspace ID. This can lead to collisions, such as the message below:

storage.AccountsClient#Create: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="StorageAccountAlreadyTaken" Message="The storage account named stgws**** is already taken."

That's not too surprising, with only 64K possible names matching that pattern the chance of a collision is not too small. The names need to be much more random than this.

Steps to reproduce

  1. just create lots of workspaces and look for failures.

Azure TRE release version (e.g. v0.14.0 or main):
main

Deployed Azure TRE components - click the (i) in the UI:

@TonyWildish-BH TonyWildish-BH added the bug Something isn't working label May 3, 2024
@marrobi
Copy link
Member

marrobi commented May 3, 2024

Closing as duplicate of #2893 .

PR - #3863 is a workaround we will look to merge for the next release.

Long term fix has some dependencies, but is prioritised on the backlog.

@marrobi marrobi closed this as completed May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants