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

Retire /ospool/PROTECTED (INF-1883) and ITB S3 origins #3928

Merged
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
2 changes: 1 addition & 1 deletion src/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def test_institution_accept_type(self, client: flask.Flask):


def test_origin_grid_mapfile(self, client: flask.Flask):
TEST_ORIGIN = "origin-auth2001.chtc.wisc.edu" # This origin serves protected data
TEST_ORIGIN = "ap20.uc.osg-htc.org" # This origin serves protected data
response = client.get("/origin/grid-mapfile")
assert response.status_code == 400 # fqdn not specified

Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_stashcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_origin_grid_mapfile_nohost(self, client: flask.Flask):
assert EMPTY_LINE_REGEX.match(line), f'Unexpected text "{line}".\nFull text:\n{text}\n'

def test_origin_grid_mapfile_with_host(self, client: flask.Flask):
text = stashcache.generate_origin_grid_mapfile(global_data, "origin-auth2001.chtc.wisc.edu",
text = stashcache.generate_origin_grid_mapfile(global_data, "ap20.uc.osg-htc.org",
suppress_errors=False)
num_mappings = 0
for line in text.split("\n"):
Expand Down
4 changes: 2 additions & 2 deletions topology/University of Wisconsin/CHTC/CHTC-ITB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Resources:
Description: OSG VO backfill containers on the Tiger cluster, serving the ITB pool

CHTC-ITB-S3-AWS-EAST-ORIGIN:
Active: true
Active: false
Description: >-
This is an origin used for demonstrating integration with AWS
East S3 buckets
Expand Down Expand Up @@ -343,7 +343,7 @@ Resources:
- OSG

CHTC-ITB-S3-AWS-WEST-ORIGIN:
Active: true
Active: false
Description: >-
This is an origin used for demonstrating integration with AWS
West S3 buckets
Expand Down
2 changes: 1 addition & 1 deletion topology/University of Wisconsin/CHTC/CHTC_OSPOOL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GroupID: 1125

Resources:
CHTC_OSPOOL_ORIGIN:
Active: true
Active: false
Description: Authenticated origin server for OSPool Users at UW-Madison
ID: 1194
ContactLists:
Expand Down
64 changes: 0 additions & 64 deletions virtual-organizations/OSG.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,70 +117,6 @@ DataFederations:
AllowedCaches:
- ANY

# HACK: enormous hack to get us going on a demo
# https://opensciencegrid.atlassian.net/browse/SOFTWARE-5398
# FIXME: rip this out after the demo
# TODO: Redesign namespace interface (take 3?). See commit body
# for considerations.

# NOTE: The SciTokens blocks for Issuer "https://osg-htc.org/ospool" must be the same
# between the paths /ospool/PROTECTED, /s3.amazonaws.com/us-east-1, and
# /s3.amazonaws.com/us-west-1 below or we will see problems.
# See c3524138ac8d46eee2a3c33cb75fac50acab41c4 for more information.

- Path: /ospool/PROTECTED
Authorizations:
- SciTokens:
Issuer: https://osg-htc.org/ospool
Base Path: /ospool/PROTECTED,/s3.amazonaws.com/us-east-1,/s3.amazonaws.com/us-west-1
Map Subject: True
AllowedOrigins:
- CHTC_OSPOOL_ORIGIN
AllowedCaches:
- ANY
Writeback: https://origin-auth2001.chtc.wisc.edu:1095
DirList: https://origin-auth2001.chtc.wisc.edu:1095
CredentialGeneration:
Strategy: OAuth2
Issuer: https://osg-htc.org/ospool
MaxScopeDepth: 4

- Path: /s3.amazonaws.com/us-east-1
Authorizations:
- PUBLIC
- SciTokens:
Issuer: https://osg-htc.org/ospool
Base Path: /ospool/PROTECTED,/s3.amazonaws.com/us-east-1,/s3.amazonaws.com/us-west-1
Map Subject: True
AllowedOrigins:
- CHTC-ITB-S3-AWS-EAST-ORIGIN
AllowedCaches:
- ANY
Writeback: https://s3-us-east-1.osgdev.chtc.io:1095
DirList: https://s3-us-east-1.osgdev.chtc.io:1095

- Path: /s3.amazonaws.com/us-west-1
Authorizations:
- PUBLIC
- SciTokens:
Issuer: https://osg-htc.org/ospool
Base Path: /ospool/PROTECTED,/s3.amazonaws.com/us-east-1,/s3.amazonaws.com/us-west-1
Map Subject: True
AllowedOrigins:
- CHTC-ITB-S3-AWS-WEST-ORIGIN
AllowedCaches:
- ANY
Writeback: https://s3-us-west-1.osgdev.chtc.io:1095
DirList: https://s3-us-west-1.osgdev.chtc.io:1095

- Path: /osn-sdsc/us-west-1/bp3d-pelican
Authorizations:
- PUBLIC
AllowedOrigins:
- SDSC_NRP_OSDF_S3_ORIGIN
AllowedCaches:
- ANY

- Path: /nrdstor/protected
Authorizations:
- SciTokens:
Expand Down
Loading