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

Challenges Making Authenticated Requests to S3 without Pre-signed URLs #1736

Open
exai-sukh opened this issue Nov 22, 2023 · 1 comment
Open

Comments

@exai-sukh
Copy link

Description:

I am attempting to implement authenticated requests to Amazon S3 without using pre-signed URLs to minimize security risks. However, I have encountered challenges with the available options.

Options Explored:

  1. OAuth:

    • Reference: OAuth Support in igv.js
    • I'm uncertain about direct compatibility of OAuth with S3, and was unable to find information supporting compatibility in AWS documentation. If anyone has successfully used OAuth with S3, I would greatly appreciate any examples or insights.
  2. Headers for Tracks:

    • Reference: Tracks 2.0 - Options for All Track Types
    • While using headers for single S3 URLs in tracks are functional, challenges arise when dealing with tracks containing multiple files, such as annotations with "URL" and "indexURL". Since the S3 Authentication header relies on the object's key (AWS Documentation), sharing the header for requests to both objects leads to a "SignatureDoesNotMatch" error.

Environment:

  • igv.js Version: 2.15.11
@jrobinso
Copy link
Contributor

We could address (2) if that would help. Others have used functional URLS (functions in place of strings in the URL fields) for this problem.

If you are not using signed URLs what are you using for authenticated access in Javascript?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants