Giter Site home page Giter Site logo

Comments (4)

oxyno-zeta avatar oxyno-zeta commented on May 27, 2024

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.

alexdulin avatar alexdulin commented on May 27, 2024

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.

oxyno-zeta avatar oxyno-zeta commented on May 27, 2024

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.

github-actions avatar github-actions commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.