-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Create an example with HAProxy #271
Comments
I was wondering if such an example exists today. I would be very interested to see how HAProxy and Authelia interact. |
Hello @SurinameClubcard , as you can see the ticket is still open and I have no draft yet. I'll let you know when I have something. You can also try on your side. There is no magick in the conf, all features used from nginx are also in HAProxy so it should not be complicated. |
Sounds great! Let me give it a try. What features of nginx are you referring to? Is there a nginx example? |
@SurinameClubcard , I was referring to common features like basic reverse proxy features, setting headers, redirecting but most importantly the question I have is what is the equivalent of http://nginx.org/en/docs/http/ngx_http_auth_request_module.html for HAProxy. I'm not an expert but somebody from the dev team of HAProxy told me that such things was possible. There is an example of nginx configuration at https://github.com/clems4ever/authelia/blob/master/example/compose/nginx/portal/nginx.conf. It protects several domains of the test environment that can be set up following the documentation. |
Well, I found this: https://github.com/TimWolla/haproxy-auth-request. Can you confirm that this seems to be compatible? The source code states:
|
Hello @SurinameClubcard , this is exactly the type of contract that Authelia meets so it is |
Great. |
Great! |
I migrated our haproxy to v1.8. Will start working on the |
@SurinameClubcard , great! Let me know about your progress. Regarding your question Authelia does not support TLS yet. It would be interesting to understand why |
@SurinameClubcard , I came up with a concept of suites to implement integration tests. That would be great if you could create one for HAproxy with the Single-Factor and Two-Factor authentication tests. I can help you with that if needed. Let me know about your progress. |
I would be happy to! But first I have to get it working. I have posted my progress so far on Gitter. You might want to take a look because I could use some help understanding a response from Authelia. |
While researching on |
Because it would be a pain to support within the Lua script. It's should be easy enough to do with a dedicated frontend that performs the encryption. Something like this should work (sending traffic through HAProxy instead of directly to Authelia):
|
I know nothing about Authelia, but I know a bit about HAProxy. To reproduce the
I was able to authenticate as |
@TimWolla , great news, I will package that in a suite very soon. Thanks. |
@TimWolla I attempted to put together this suite yesterday based on the config you provided above and to fit within how the containers are distributed in the integration tests and seem to be having some trouble. I'm not sure if this is related to haproxy-auth-request or just my haproxy configuration in general, is there any chance you might be able to have a look? Here's a example of what I'm seeing in the HAProxy logs:
EDIT: Sorry for all the pings everybody after some more testing looks like I figured it out, it's because haproxy-auth-request is using the |
For the record, this changed in TimWolla/haproxy-auth-request#10. |
Authelia is supposed to be able to run with any proxy. We can create an example with HAProxy which is one of the most famous and efficient proxies used in professional environments.
The text was updated successfully, but these errors were encountered: