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

Fix/presigned url addressing style #1179

Merged
merged 6 commits into from
Aug 29, 2024
Merged

Conversation

mfshao
Copy link
Contributor

@mfshao mfshao commented Aug 28, 2024

Bug Fixes

  • Use auto addressing style for presigned url generation (attempts to use virtual, but falls back to path if necessary)
  • Pass endpoint_url from Fence config to boto3 client for presigned url creation

@coveralls
Copy link

coveralls commented Aug 28, 2024

Pull Request Test Coverage Report for Build 10607427461

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 32 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.02%) to 75.314%

Files with Coverage Reduction New Missed Lines %
resources/ga4gh/passports.py 2 87.43%
blueprints/data/multipart_upload.py 6 25.45%
blueprints/data/indexd.py 24 94.49%
Totals Coverage Status
Change from base Build 10583956298: -0.02%
Covered Lines: 7804
Relevant Lines: 10362

💛 - Coveralls

@@ -148,7 +148,7 @@ def generate_presigned_url_for_uploading_part(
aws_secret_access_key=credentials["aws_secret_access_key"],
aws_session_token=credentials.get("aws_session_token", None),
region_name=region,
config=Config(s3={"addressing_style": "path"}, signature_version="s3v4"),
config=Config(signature_version="s3v4"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to add endpoint_url here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. It appears to be not there before, and the clever safe tests in CI are for download only.
But I can try to add it later 🤔

Copy link
Contributor

@paulineribeyre paulineribeyre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mfshao mfshao merged commit 4cf044c into master Aug 29, 2024
10 checks passed
@mfshao mfshao deleted the fix/presigned-url-addressing-style branch August 29, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants