You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have no idea if it is a bug of some sort or we just can't find a right solution.
We try to use nginx-s3-gateway in our k8s-enviroment for proxing requests to AWS S3 bucket. So long story short our route is: client > DNS > NLB > k8s > ingress-controller > nginx-s3-gateway pod > AWS S3 bucket.
We are keep receiving a 405 response for PUT method, when trying to work with AWS S3 bucket.
Just to be clear, GET method is working fine.
For example, if we have a file test-s3.txt in our bucket and we call: curl https://nginx-test.my-domain.net/api/s3/test-s3.txt
Then we receive 200 response and contents of the file.
An error after the curl command: <html><head><title>405 Not Allowed</title></head><body><center><h1>405 Not Allowed</h1></center><hr><center>nginx</center></body></html>
An error in nginx-s3-gateway pod's log: 10.111.22.333 - - [20/Jan/2025:07:42:48 +0000] "PUT /testing-file.txt HTTP/1.1" 405 150 "-" "curl/7.88.1" "10.444.5.66"
Expected behavior
Allowed methods for requests should be controllable via some set of configuration. The PUT method is acceptable and response is 200.
Also we've tried to use s3listing_location.conf.template to inject additional configuration like so, but got a negative result as well:
Describe the bug
I have no idea if it is a bug of some sort or we just can't find a right solution.
We try to use nginx-s3-gateway in our k8s-enviroment for proxing requests to AWS S3 bucket. So long story short our route is:
client > DNS > NLB > k8s > ingress-controller > nginx-s3-gateway pod > AWS S3 bucket
.We are keep receiving a 405 response for PUT method, when trying to work with AWS S3 bucket.
Just to be clear, GET method is working fine.
For example, if we have a file
test-s3.txt
in our bucket and we call:curl https://nginx-test.my-domain.net/api/s3/test-s3.txt
Then we receive 200 response and contents of the file.
To reproduce
Steps to reproduce the behavior:
curl https://nginx-test.my-domain.net/api/s3/ --upload-file testing-file.txt
<html><head><title>405 Not Allowed</title></head><body><center><h1>405 Not Allowed</h1></center><hr><center>nginx</center></body></html>
10.111.22.333 - - [20/Jan/2025:07:42:48 +0000] "PUT /testing-file.txt HTTP/1.1" 405 150 "-" "curl/7.88.1" "10.444.5.66"
Expected behavior
Allowed methods for requests should be controllable via some set of configuration. The PUT method is acceptable and response is 200.
Also we've tried to use
s3listing_location.conf.template
to inject additional configuration like so, but got a negative result as well:Checks inside the container:
Your environment
nginxinc/nginx-s3-gateway:latest-njs-oss-20241223
;v1.31.4-eks-2d5f260
.Additional context
Our environment variables for nginx-s3-gateway deployment:
The text was updated successfully, but these errors were encountered: