-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to give users / groups write access to buckets
GCS allows individual Google Users as well as Google Groups to have permissions to read / write to GCS buckets (unlike AWS). We can use this to allow community leaders to manage who can read and write to GCS buckets from outside the cloud by managing membership in a Google Group! In this commit, we set up the persistent buckets of the LEAP hubs to have this functionality. Access is managed via a Google Group - I have temporarily created this under the 2i2c org and invited Julius (the community champion) as an administrator. But perhaps it should be just created as a regular google group. Using groups here allows management of this access to not require any 2i2c engineering work. Future work would probably fold the separate variable we have for determining if a bucket is accessible publicly as an attribute as well. Ref https://github.com/2i2c-org/infrastructure/issues/2096
- Loading branch information
Showing
3 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,21 @@ filestore_capacity_gb = 1024 | |
|
||
user_buckets = { | ||
"scratch-staging" : { | ||
"delete_after" : 7 | ||
"delete_after" : 7, | ||
"extra_admin_members": [] | ||
}, | ||
"scratch" : { | ||
"delete_after" : 7 | ||
"delete_after" : 7, | ||
"extra_admin_members": [] | ||
} | ||
# For https://github.com/2i2c-org/infrastructure/issues/1230#issuecomment-1278183441 | ||
"persistent" : { | ||
"delete_after" : null | ||
"delete_after" : null, | ||
"extra_admin_members": ["group:[email protected]"] | ||
}, | ||
"persistent-staging" : { | ||
"delete_after" : null | ||
"delete_after" : null, | ||
"extra_admin_members": ["group:[email protected]"] | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters