Skip to content

HEAD to forward-auth protected URL returns HTTP 500 #156

@D3N14L

Description

@D3N14L

We have some URLs behind traefik-forward-auth and during some tests we found out that a HEAD (curl -I) to those URLs fails with a HTTP 500 return code after 30s.

❯ curl -k -v -I  https://prometheus.company.com
[...]
> User-Agent: curl/7.64.1
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 500
HTTP/2 500
< date: Wed, 29 Jul 2020 11:17:42 GMT
date: Wed, 29 Jul 2020 11:17:42 GMT

<
* Connection #0 to host prometheus.company.com left intact
* Closing connection 0

A GET to the same URL immediately returns the correct redirection with status code HTTP 307.

I have no idea what is supposed to happen upon a HEAD to those URLs, but if HEAD is not supported I would have expected a HTTP 405 method not allowed as the answer.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions