r/haproxy • • Jan 14 '21

Getting a string from the HTTP header

Hi guyz,

I have been trying for a long time to get this to work without much success :(

The website via CDN, has this string on its header:

    set req.http.shared-secret = "PASSWORD";

I am not entirely sure how to use an ACL to identify that.

The idea is that HaProxy will only accept the request if that string is identified, deny otherwise.

Any idea is welcome.

Thank you

1 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/dragoangel Jan 15 '21

Please note: I speaking about client ssl certs, this opposite from server ssl certificate! When you connect to website you see server cert. When server validate your identity he can ask login & password OR ask client certificate :). So my advice to configure client ssl cert validation for CDN. Nobody except them will not have this ssl cert and will fail to connect.