-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Accessing s3 bucket using tokio-rustls-tls
returns 403 error
#291
Comments
it happened to me too |
sadly the environment I'm running my app in isn't required to have SSL installed, so I cannot live without it... can I help solve it somehow? |
@Niedzwiedzw there is a Can you give me any more specifics on the environment you're running? Would something like a |
it's running on a windows 10 machine I'm setting up for a local CI for my project, the target S3 is digitalocean, as for |
hmm |
It did not work on the digital ocean test, I've tried it :(. That being said if it works on you're end I'd be happy to add another variant |
I've added this as a feature on my branch, gonna test in a minute once it builds |
yeah, no luck sadly... I'm out if ideas then |
I've managed to work around this bo conditionally compiling for windows with nativetld ,and for linux with rustls (I must support a very old linux machine, this was the whole point :D) [target.x86_64-pc-windows-gnu.dependencies]
rust-s3 = {version = "0.32", features = ["with-tokio"] }
[target.x86_64-unknown-linux-gnu.dependencies]
rust-s3 = {version = "0.32", default-features = false, features = ["tokio-rustls-tls", "with-tokio", "no-verify-ssl"] } |
Can you check if its only head_object() or if other routes are affected as well? |
actually in my case it was failing when uploading a file Line 892 in d69bc4c
|
Super happy to hear that :) |
so for future people who encounter this - it only happens on rustls on windows it seems, but let's wait for other people to confirm |
There are issues with |
One issue I had with Rustls is the bucket having periods in its name, which triggered rustls/rustls#184 |
I do not think my case is because of the permission, same service account (in K8S) is used by other pods to upload files to S3. Also, the 403 was got after I hacked rust-s3 source. The error was masked and an unparsable Json error was shown. |
Describe the bug
When trying to access s3 bucket using the
tokio-rustls-tls
feature, it is returning 403 (Access denied) as response forhead_object()
request. The same request succeeded whentokio-native-tls
was used.To Reproduce
tokio-rustls-tls
featurehead_object()
requestExpected behavior
code
was 200 but got 403tokio-native-tls
returned 200code
Environment
1.63
]0.32
]The text was updated successfully, but these errors were encountered: