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

no auth scheme matched auth scheme options error when using no_credentials #864

Closed
messense opened this issue Aug 4, 2023 · 5 comments
Closed
Assignees
Labels
bug This issue is a bug. p1 This is a high priority issue

Comments

@messense
Copy link

messense commented Aug 4, 2023

Describe the bug

when using no_credentials() aws-sdk-s3 throws
no auth scheme matched auth scheme options. This is a bug. Please file an issue.

Expected Behavior

Disable credentials and signing.

Current Behavior

errors with "no auth scheme matched auth scheme options. This is a bug. Please file an issue."

Reproduction Steps

#[tokio::main]
async fn main() {
    let mut config = ::aws_config::from_env().no_credentials().await;
    let client = s3::Client::new(&config);

    // ... make some calls with the client

    Ok(())
}

Possible Solution

No response

Additional Information/Context

No response

Version

│   ├── aws-sdk-s3 v0.29.0
│   │   ├── aws-credential-types v0.56.0
│   │   │   ├── aws-smithy-async v0.56.0
│   │   │   ├── aws-smithy-types v0.56.0
│   │   ├── aws-http v0.56.0
│   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   ├── aws-smithy-http v0.56.0
│   │   │   │   ├── aws-smithy-eventstream v0.56.0
│   │   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   ├── aws-types v0.56.0
│   │   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   ├── aws-smithy-client v0.56.0
│   │   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-http-tower v0.56.0
│   │   │   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   ├── aws-runtime v0.56.0
│   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   ├── aws-http v0.56.0 (*)
│   │   │   ├── aws-sigv4 v0.56.0
│   │   │   │   ├── aws-smithy-eventstream v0.56.0 (*)
│   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   ├── aws-smithy-eventstream v0.56.0 (*)
│   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   ├── aws-smithy-runtime-api v0.56.0
│   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   ├── aws-types v0.56.0 (*)
│   │   ├── aws-sigv4 v0.56.0 (*)
│   │   ├── aws-smithy-async v0.56.0 (*)
│   │   ├── aws-smithy-checksums v0.56.0
│   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   ├── aws-smithy-client v0.56.0 (*)
│   │   ├── aws-smithy-eventstream v0.56.0 (*)
│   │   ├── aws-smithy-http v0.56.0 (*)
│   │   ├── aws-smithy-json v0.56.0
│   │   │   └── aws-smithy-types v0.56.0 (*)
│   │   ├── aws-smithy-runtime v0.56.0
│   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   ├── aws-smithy-client v0.56.0 (*)
│   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   ├── aws-smithy-runtime-api v0.56.0 (*)
│   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   ├── aws-smithy-runtime-api v0.56.0 (*)
│   │   ├── aws-smithy-types v0.56.0 (*)
│   │   ├── aws-smithy-xml v0.56.0
│   │   ├── aws-types v0.56.0 (*)
│   │   │   ├── aws-config v0.56.0
│   │   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   │   ├── aws-http v0.56.0 (*)
│   │   │   │   ├── aws-sdk-sso v0.29.0
│   │   │   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   │   │   ├── aws-http v0.56.0 (*)
│   │   │   │   │   ├── aws-runtime v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-client v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-json v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-runtime v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-runtime-api v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   │   ├── aws-types v0.56.0 (*)
│   │   │   │   ├── aws-sdk-sts v0.29.0
│   │   │   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   │   │   ├── aws-http v0.56.0 (*)
│   │   │   │   │   ├── aws-runtime v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-client v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-json v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-query v0.56.0
│   │   │   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-runtime v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-runtime-api v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   │   ├── aws-smithy-xml v0.56.0 (*)
│   │   │   │   │   ├── aws-types v0.56.0 (*)
│   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   ├── aws-smithy-client v0.56.0 (*)
│   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   ├── aws-smithy-http-tower v0.56.0 (*)
│   │   │   │   ├── aws-smithy-json v0.56.0 (*)
│   │   │   │   ├── aws-smithy-types v0.56.0 (*)
│   │   │   │   ├── aws-types v0.56.0 (*)
│   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   ├── aws-sdk-s3 v0.29.0 (*)
│   │   │   ├── aws-sig-auth v0.56.0
│   │   │   │   ├── aws-credential-types v0.56.0 (*)
│   │   │   │   ├── aws-sigv4 v0.56.0 (*)
│   │   │   │   ├── aws-smithy-async v0.56.0 (*)
│   │   │   │   ├── aws-smithy-http v0.56.0 (*)
│   │   │   │   ├── aws-types v0.56.0 (*)
│   │   │   ├── aws-smithy-runtime v0.56.0 (*)


### Environment details (OS name and version, etc.)

Ubuntu 22.04

### Logs

_No response_
@messense messense added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 4, 2023
@jdisanti
Copy link
Contributor

jdisanti commented Aug 4, 2023

Thanks for reporting this! Looking into it.

@jdisanti jdisanti self-assigned this Aug 4, 2023
@jdisanti jdisanti added p1 This is a high priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Aug 4, 2023
@jdisanti
Copy link
Contributor

jdisanti commented Aug 4, 2023

I understand why it's failing, but it's going to take me a while to fix it.

For now, I recommend using aws-sdk-s3 = 0.28 and aws-config = 0.55 since it should have been working in that version.

@jdisanti
Copy link
Contributor

The fix for this has been merged and will go out with the next SDK release.

@jdisanti jdisanti added the pending-release This issue will be fixed by an approved PR that hasn't been released yet. label Aug 10, 2023
@jdisanti
Copy link
Contributor

This has been fixed with the August 23rd release.

@github-project-automation github-project-automation bot moved this from In Progress to Done in AWS Rust SDK Public Roadmap Aug 24, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@rcoh rcoh removed the pending-release This issue will be fixed by an approved PR that hasn't been released yet. label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p1 This is a high priority issue
Projects
Archived in project
Development

No branches or pull requests

3 participants