opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

Validate URIs on http and https providers

Open mx-psi opened this issue 1 month ago • 0 comments

The http and https providers don't do any validation of their URIs. This means it's hard for us to explore using alternative syntax for parameters as discussed on #10121. We should check whether net/http supports IDNAs and if so use https://pkg.go.dev/golang.org/x/net/idna for validation.

I argue this should be allowed after 1.0 since the URIs were invalid before and the behavior was unspecified for them.

mx-psi avatar Jun 26 '24 17:06 mx-psi