-
Notifications
You must be signed in to change notification settings - Fork 323
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: feature to forward client certificate infos #68
Conversation
… SerialNumber to origin via X-SSL- headers
I wonder if this should be controlled by a template string? Apache and other webservers do it that way So it would be something like the forwarder having a
|
sounds like a good idea but i am quite new to golang so this could take me a while ... |
Please apply this feature to release. I'm looking forward this. |
We're also interested in extracting certificate info and adding it to the forwarded request headers. @pquerna would the recommended approach be a generic header-addition mechanism of the sort supported by nginx, Apache, etc? I like that idea, though especially for extracting certificate fields the structs might be complicated enough that extraction with template strings could be a pain (we have arrays, conditionally-present things, etc): https://golang.org/pkg/net/http/#Request Do you have a sense of how much work that would be to add, and how one might get started? |
Hi @zyclonite , this feature would be awesome! |
hi @jbdoumenjou, i tried to have less complexity on the origin, simply trusting the oxy layer to offload the authentication and forwarding just some credentials would be ideal for my use-case. always forwarding the complete certificate is quite some payload to smaller requests |
Effectively, it is not exactly the same need. I was thinking about one more flag option to pass the certificate and so all the associated data. Indeed, it seems overkill just for one little information about the client certificate. :) |
Considering the refactoring #229 this feature should implement as a middleware. |
Added switch to enable forwading of client certificate CommonName and SerialNumber to origin via X-SSL- headers
enables the origin server to check the common name and/or serial number after the proxy validated/terminated the ssl connection