-
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.
Allow public access to buckets via IAM, not ACL
Previously, we were mixing ACL and IAM, which led to basically the bucket *not* being accessible publicly - only to authenticated users. This switches everything to using IAM, which *does* make the bucket properly publicly accessible. In addition, there's now a policy that we only enable this when 2i2c is *not* handling billing, as there can be disastrous cost consequences. We fix this for the LEAP bucket. Config is moved to `user_buckets` rather than `hub_permissions`, as the config is purely set on the bucket and not related to which hub we are configuring. Ref https://2i2c.freshdesk.com/a/tickets/954
- Loading branch information
Showing
6 changed files
with
40 additions
and
26 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
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 |
---|---|---|
|
@@ -44,11 +44,13 @@ user_buckets = { | |
# For https://github.com/2i2c-org/infrastructure/issues/1230#issuecomment-1278183441 | ||
"persistent-ro" : { | ||
"delete_after" : null, | ||
"extra_admin_members" : ["group:[email protected]"] | ||
"extra_admin_members" : ["group:[email protected]"], | ||
"public_access" : true | ||
}, | ||
"persistent-ro-staging" : { | ||
"delete_after" : null, | ||
"extra_admin_members" : ["group:[email protected]"] | ||
"extra_admin_members" : ["group:[email protected]"], | ||
"public_access" : true | ||
} | ||
} | ||
|
||
|
@@ -63,7 +65,6 @@ hub_cloud_permissions = { | |
requestor_pays : true, | ||
bucket_admin_access : ["scratch", "persistent"], | ||
bucket_readonly_access : ["persistent-ro"], | ||
bucket_public_access : ["persistent-ro"], | ||
hub_namespace : "prod" | ||
} | ||
} | ||
|
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 |
---|---|---|
|
@@ -39,7 +39,8 @@ user_buckets = { | |
}, | ||
"public-persistent" : { | ||
"delete_after" : null, | ||
"extra_admin_members" : ["group:[email protected]"] | ||
"extra_admin_members" : ["group:[email protected]"], | ||
"public_access" : true | ||
}, | ||
|
||
} | ||
|
@@ -115,7 +116,6 @@ hub_cloud_permissions = { | |
"prod" : { | ||
requestor_pays : true, | ||
bucket_admin_access : ["scratch", "persistent", "public-persistent"], | ||
bucket_public_access : ["public-persistent"], | ||
hub_namespace : "prod" | ||
}, | ||
} |
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