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

Introduce default permissions #1559

Closed
peterschmidt85 opened this issue Aug 15, 2024 · 2 comments · Fixed by #1567 or #1591
Closed

Introduce default permissions #1559

peterschmidt85 opened this issue Aug 15, 2024 · 2 comments · Fixed by #1567 or #1591
Assignees

Comments

@peterschmidt85
Copy link
Contributor

At the moment we don't have granular permission. However, we want to be able to configure the following permissions defaults via environment variables:

  • DSTACK_USER_CAN_CREATE_PROJECTS – Whether a user is allowed to create new projects (True by default)
  • DSTACK_USER_CAN_CREATE_GATEWAYS – Whether a user (not a project or global admin) is allowed to create gateways (True by default)
  • DSTACK_USER_CAN_CREATE_ON_PREM_FLEETS – Whether a user (not a project or global admin) is allowed to create on-prem fleets (True by default)
@olgenn
Copy link
Collaborator

olgenn commented Aug 15, 2024

@peterschmidt85 Maybe, do we need a permission: DSTACK_USER_CAN_DELETE_PROJECTS ?

@peterschmidt85
Copy link
Contributor Author

@olgenn If a user can create a project, then it can delete that project as an owner

olgenn added a commit that referenced this issue Aug 15, 2024
olgenn added a commit that referenced this issue Aug 21, 2024
* Introduce default permissions #1559

* Fixes checking permission after implemented api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants