Comments (4)
Hello !
First of all, thanks for your issue.
The problem isn't coming from the s3-proxy product itself but from the prometheus golang client. In fact, Prometheus doesn't support non UTF-8 strings as described in this issue 805.
According to this issue, it is better to have everything in utf-8.
Can you tell me more info about the context of the request ? Can you provide me an example with cURL or something like that ?
from s3-proxy.
Without verifying, I am pretty sure you could send a curl request with any non-utf8 characters in the request path and trigger this issue. The prometheus client is, understandably, rejecting the lables for a variety of reasons as outlined in that issue. The problem with the panic is not an issue with the request really, its due to using unsanitized user input for a metric label. If request paths are going to be used as labels, then they should be sanitized. Same reason you sanitize data that is going to be inserted into a SQL database.
Unrelated to the issue, but thank you for making this project. It is a fantastic peice of work that solves so many common problems.
from s3-proxy.
I'm sorry but I can't reproduce this case with cURL. When I try to request this kind of path: "/traÖção" with cURL, the server got: "/tra%C3%96%C3%A7%C3%A3o" which is a perfect url encoded string and in UTF-8...
Can you give me an example with something that I can start ? Thanks !
PS: Thanks for your comment. I'm happy to see that this project is used. Don't forget to put a star :)
from s3-proxy.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days
from s3-proxy.
Related Issues (20)
- How to set authorizationAccesses HOT 3
- Use security-credentials endpoint for authentication? HOT 1
- How to operate s3-proxy behind a reverse http proxy? HOT 7
- How to use s3-proxy with AWS named profiles HOT 5
- PUT and DELETE operations not working HOT 3
- Question about config file parameters HOT 2
- Using s3cmd HOT 4
- folder-list page leads to Internal server error HOT 4
- Allow application/octet-stream HOT 1
- Sub bucket HOT 1
- Let the docker image build itself HOT 3
- Add support for filesystem as a target HOT 1
- Proxy pre-compressed data as-is HOT 13
- Provide a way to disable folder listing HOT 9
- Support PASETO authentication HOT 4
- OIDC: no resource declared message when it is HOT 8
- Signed URL for PUT requests HOT 10
- Assume role failing via WebIdentity HOT 4
- Uploading large objects using multipart HOT 2
- [oidc] JWT auth failures respond with HTTP 500 instead of 401 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3-proxy.