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

Assign VM Contributor role on workspace rg (not subscription) #2398

Merged
merged 12 commits into from
Aug 4, 2022

Conversation

tamirkamara
Copy link
Collaborator

@tamirkamara tamirkamara commented Aug 3, 2022

What is being addressed

We give the API identity this role on the subscription level which is too wide on the permission level and the scope level.
This is a partial solution to #2389.

How is this addressed

  • Remove the role assignment from the subscription level and assign only to the workspace's resource group.

Migration Steps (breaking change)

You will loose the ability to stop/start VMs in existing workspaces versioned 0.3.20 or lower. To address this, assign Virtual Machine Contributor to id-api-<TRE_ID> identity on pre-existing workspace resource groups.

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 16d5ff8.

♻️ This comment has been updated with latest results.

@tamirkamara
Copy link
Collaborator Author

/test

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

🤖 pr-bot 🤖

🏃 Running tests: https://github.com/microsoft/AzureTRE/actions/runs/2787271098 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara tamirkamara changed the title Assign VM Contributor role on workspace (not subscription) Assign VM Contributor role on workspace rg (not subscription) Aug 3, 2022
@tamirkamara tamirkamara force-pushed the tamirkamara/2389-api-vm-contributor-in-workspace branch from 7478b13 to 60e8166 Compare August 3, 2022 11:17
@tamirkamara
Copy link
Collaborator Author

/test-extended

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2789069895 (with refid c95e4643)

(in response to this comment from @tamirkamara)

1 similar comment
@github-actions
Copy link

github-actions bot commented Aug 3, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2789069895 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara
Copy link
Collaborator Author

/test-extended

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2794621543 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara
Copy link
Collaborator Author

/test-extended

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2795029597 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara
Copy link
Collaborator Author

/test-extended

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2795136336 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara
Copy link
Collaborator Author

/test-extended

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2796214587 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara
Copy link
Collaborator Author

/test-extended

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/2798019539 (with refid c95e4643)

(in response to this comment from @tamirkamara)

@tamirkamara tamirkamara merged commit dad419f into main Aug 4, 2022
@tamirkamara tamirkamara deleted the tamirkamara/2389-api-vm-contributor-in-workspace branch August 4, 2022 17:42
@marrobi
Copy link
Member

marrobi commented Aug 15, 2022

@tamirkamara this causes a larger issue for existing workspaces. Once the subscription level role assignment is removed users cannot list VM user resources as they rely on this role assignment to query the power state. This means as soon as try to list any resources get 500 errors.

Can we make sure this is covered in breaking changes, and maybe we need a script that adds the role to workspaces, or a way to update workspaces...

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

Successfully merging this pull request may close these issues.

3 participants