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

fix(pro): delete ownded workspace #1227

Conversation

pascalbreuninger
Copy link
Member

Pro provider attempts to delete the CRD instead of calling the
workspace instances /delete endpoint on the runner.
This allows us to hook into the ownership mechanism without granting all
project users access to the devpodworkspaceinstances/delete
subresource.
In effect this allows all project users to delete their own workspaces
but not others. Admins can still delete all workspaces

Pro provider attempts to delete the CRD instead of calling the
workspace instances `/delete` endpoint on the runner.
This allows us to hook into the ownership mechanism without granting all
project users access to the `devpodworkspaceinstances/delete`
subresource.
In effect this allows all project users to delete their own workspaces
but not others. Admins can still delete all workspaces
@pascalbreuninger pascalbreuninger merged commit 0d36cf8 into loft-sh:main Aug 20, 2024
18 of 23 checks passed
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