Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward Proxy-Authorization header to authentication server #7433

Merged
merged 4 commits into from
Jan 21, 2021

Conversation

Scapal
Copy link
Contributor

@Scapal Scapal commented Oct 19, 2020

What does this PR do?

This PR fixes issue #7374 and related to the ForwardAuth middleware header filtering behaviour.

It allows the Proxy-Authorization header to be forwarded to the Authentication service.
It also fixes a potential issue with the authRequestHeaders option, skipping header filtering if an explicit header list is given.

Motivation

I am using Traefik 2 with Authelia using ForwardAuth.
Authelia expects the authentication header Proxy-Authorization for proxy authentication but it is currently removed when the request if sent to the authentication service as it is considered a "hop" header.

Without modification we are unable to use this setup to protect APIs.

fixes #7374

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

@Scapal
Copy link
Contributor Author

Scapal commented Nov 12, 2020

@kevinpollet @jbdoumenjou Anything blocking or is it just the lack of time ?

@jbdoumenjou
Copy link
Member

jbdoumenjou commented Nov 12, 2020

Hello @Scapal,

sorry for a long time no answer.

As you can see in our contribution guide, needs-design-review means that we have to take a closer look at the scope of impact for that PR to see, how it would interact with the other parts of Traefik.
For that, it's just a lack of time by now.

We will come back to you soon when we did the first design review iteration.

@kevinpollet kevinpollet added this to To review in v2 via automation Jan 19, 2021
@kevinpollet kevinpollet changed the base branch from master to v2.4 January 19, 2021 10:14
@kevinpollet kevinpollet added the kind/bug/fix a bug fix label Jan 19, 2021
@kevinpollet kevinpollet added this to the 2.4 milestone Jan 19, 2021
@kevinpollet kevinpollet changed the title fix: ForwardAuth middleware header filtering behaviour. Forward Proxy-Authorization header to authentication server Jan 19, 2021
Copy link
Member

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

HTTP Header Proxy-Authenticate can be conditionally forwarded.
6 participants