Code Monkey home page Code Monkey logo

Comments (7)

jashapiro avatar jashapiro commented on July 20, 2024

I asked the user to do some testing, and interestingly the following worked as expected:

$ aws s3 ls s3://scpca-references/homo_sapiens/ensembl-104/salmon_index/Homo_sapiens.GRCh38.104.spliced_intron.txome --no-sign-request
              PRE Homo_sapiens.GRCh38.104.spliced_intron.txome/

However, this did not:

$ aws s3 ls s3://scpca-references/homo_sapiens/ensembl-104/salmon_index/Homo_sapiens.GRCh38.104.spliced_intron.txome

An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

In other words, a completely anonymous request was able to get a listing, but when sending credentials, access was denied. This does not look like a bad credentials issue, as I think those get a different issue.

I tried adding list permissions to the Authenticated users group (anyone with an AWS account) as well, but that doesn't seem to have made any difference (it was a shot in the dark).

(Side note: I also checked (on my own) that adding --recursive to a request with --no-sign-request worked, which is what will be needed later.)

If anyone with more AWS experience can have a look and maybe provide some thoughts, that would be appreciated. Tagging @arkid15r and @davidsmejia to start.

from scpca-nf.

arkid15r avatar arkid15r commented on July 20, 2024

From the issue description the process seems to be working as intended. As (I assume) the user isn't a part of our AWS account the authenticated requests don't work. And the publicly accessible bucket content should be available with the --no-sign-request option.

Adding the Authenticated users group (anyone with an AWS account) could be an alternative (needs to be tested with/without the Everyone (public access) ACL enabled).

from scpca-nf.

jashapiro avatar jashapiro commented on July 20, 2024

Correct, the user is not part of our AWS account, but I had assumed (perhaps incorrectly) that allow everyone access would include authenticated users.
But just in case I did add the Authenticated users group (anyone with an AWS account) option, and I tested it with a profile of my own (outside ALSF) and it seemed to work as expected (I could list the bucket+prefix). So I am still confused as to why this user is getting AccessDenied

from scpca-nf.

jashapiro avatar jashapiro commented on July 20, 2024

I wonder if it is possible to pass to nextflow an option to use a NULL AWS profile somehow? Somehow the profile being used is blocking access, but we would not want to override AWS profiles by default...

from scpca-nf.

jashapiro avatar jashapiro commented on July 20, 2024

Nextflow has a setting that we might be able to use for anonymous S3 access:
aws.client.anonymous = true

I have asked for testing of this, and we will see if it works

from scpca-nf.

jashapiro avatar jashapiro commented on July 20, 2024

Nextflow has a setting that we might be able to use for anonymous S3 access: aws.client.anonymous = true

I have asked for testing of this, and we will see if it works

This was tested successfully! Updating issue to reflect that this should be added to the example config file.

from scpca-nf.

jashapiro avatar jashapiro commented on July 20, 2024

closed by #206

from scpca-nf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.