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

Add stanza to provide elevated privileges for Prob 140 and Data 8 course staff #6017

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions deployments/data8/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@ jupyterhub:
# - course::N::enrollment_type::teacher
# - course::N::enrollment_type::ta

# Data 8, Summer 2024, https://github.com/berkeley-dsep-infra/datahub/issues/5834
course-staff-1535365:
# Data 8, Fall 2024, https://github.com/berkeley-dsep-infra/datahub/issues/6014
course-staff-1538208:
# description: Enable course staff to view and access servers.
# # this role provides permissions to...
scopes:
- admin-ui
- list:users!group=course::1535365
- admin:servers!group=course::1535365
- access:servers!group=course::1535365
- list:users!group=course::1538208
- admin:servers!group=course::1538208
- access:servers!group=course::1538208
# # this role will be assigned to...
groups:
- course::1535365::enrollment_type::teacher
- course::1535365::enrollment_type::ta
- course::1538208::enrollment_type::teacher
- course::1538208::enrollment_type::ta

singleuser:
extraFiles:
Expand Down
25 changes: 12 additions & 13 deletions deployments/prob140/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,19 @@ jupyterhub:
# - course::N::enrollment_type::teacher
# - course::N::enrollment_type::ta

## Data C140, Spring 2024, #https://github.com/berkeley-dsep-infra/datahub/issues/5466
#course-staff-1533557:
# Data C140, Fall 2024, #https://github.com/berkeley-dsep-infra/datahub/issues/6011
course-staff-1537389:
# description: Enable course staff to view and access servers.
# this role provides permissions to...
# scopes:
# - admin-ui
# - list:users!group=course::1533557
# - admin:servers!group=course::1533557
# - access:servers!group=course::1533557
# this role will be assigned to...
# groups:
# - course::1533557::enrollment_type::teacher
# - course::1533557::enrollment_type::ta

# # this role provides permissions to...
scopes:
- admin-ui
- list:users!group=course::1537389
- admin:servers!group=course::1537389
- access:servers!group=course::1537389
# # this role will be assigned to...
groups:
- course::1537389::enrollment_type::teacher
- course::1537389::enrollment_type::ta
nodeSelector:
hub.jupyter.org/pool-name: core-pool-2024-05-08

Expand Down
Loading