Skip to content

Fix AWS transfer manager anonymous fallback#6296

Merged
pditommaso merged 4 commits intomasterfrom
fix-anonymous-fallback-transfer-manager
Jul 24, 2025
Merged

Fix AWS transfer manager anonymous fallback#6296
pditommaso merged 4 commits intomasterfrom
fix-anonymous-fallback-transfer-manager

Conversation

@jorgee
Copy link
Contributor

@jorgee jorgee commented Jul 21, 2025

close #6295

The CrtAsyncClient produces a NPE when receiving AnonymousCredentials from a provider (aws/aws-sdk-java-v2#5810) This is what produces failures when downloading with the S3 Transfer Manager and credentials are not set. The only working way to use anonymous credentials in the AWS S3 CRT client is is passing an AnonymousCredentialsProvider.

This PR implements a workaround to fix the fallback to anonymous credentials when no credentials are provided.

When using anynimous credentials, it is normal that the fetch for the caller account also fails. I have also changed the log message to print just the message instead of the full stack trace.

jorgee added 2 commits July 21, 2025 20:59
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@netlify
Copy link

netlify bot commented Jul 21, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 9f23c00
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/688234da41bad5000992cff7
😎 Deploy Preview https://deploy-preview-6296--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso
Copy link
Member

Testing again

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@pditommaso pditommaso merged commit ed5c99e into master Jul 24, 2025
21 of 22 checks passed
@pditommaso pditommaso deleted the fix-anonymous-fallback-transfer-manager branch July 24, 2025 14:45
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.

Downloads from public S3 buckets fails when no AWS credentials are set.

3 participants