Skip to content

Commit

Permalink
Add elevated privileges for PH 142 and Data 101 course staff
Browse files Browse the repository at this point in the history
  • Loading branch information
balajialg committed Aug 27, 2024
1 parent 18380ff commit 8641407
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
15 changes: 15 additions & 0 deletions deployments/data101/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ jupyterhub:
# # this role will be assigned to...
# groups:
# - course::N::group::Admins

# Data 101, Fall 2024, #https://jira-secure.berkeley.edu/browse/DH-364
course-staff-1536858:
# description: Enable course staff to view and access servers.
# this role provides permissions to...
scopes:
- admin-ui
- list:users!group=course::1536858
- admin:servers!group=course::1536858
- access:servers!group=course::1536858
# this role will be assigned to...
groups:
- course::1536858::enrollment_type::teacher
- course::1536858::enrollment_type::ta

extraConfig:
data101-new-db: |
from jupyterhub.utils import exponential_backoff
Expand Down
14 changes: 7 additions & 7 deletions deployments/publichealth/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,19 @@ jupyterhub:
groups:
- course::1524699::group::all-admins

# PHW 142, Fall 2024, #5831
course-staff-1535789:
# PHW 142, Fall 2024, #https://github.com/berkeley-dsep-infra/datahub/issues/6026
course-staff-1537782:
# description: Enable course staff to view and access servers.
# this role provides permissions to...
scopes:
- admin-ui
- list:users!group=course::1535789
- admin:servers!group=course::1535789
- access:servers!group=course::1535789
- list:users!group=course::1537782
- admin:servers!group=course::1537782
- access:servers!group=course::1537782
# this role will be assigned to...
groups:
- course::1535789::enrollment_type::teacher
- course::1535789::enrollment_type::ta
- course::1537782::enrollment_type::teacher
- course::1537782::enrollment_type::ta

extraConfig:
# Use 1x-<title> in `common.yaml` extraConfig values.
Expand Down

0 comments on commit 8641407

Please sign in to comment.