9 ms·
Authelia is an open-source authentication/authorization server with 2FA/SSO
- 411111111111111 6y agoThe only sso provider I've really used is keycloak, so I am looking forward to having more lightweight alternative in this domain! though it doesn't seem to be a oidc server yet. What confused me a little is that it aims to put the authentication into the proxy layer, which sounds awesome... But I haven't been able to figure out from the docs how I'd be able to identify the user in my application now? /Edit: it's set as a header and can be verified it seems https://www.authelia.com/docs/deployment/supported-proxies/#how-can-the-backend-be-aware-of-the-authenticated-users https://www.authelia.com/docs/deployment/supported-proxies/#...
- rad_gruchalski 6y agoWith the ory platform one could use their oathkeeper but also Traefik with forward auth plugin would work. The latter gives more options. Food for thought, I’m sure Traefik forward auth would work here too.
- James-E 6y agoOne of the Authelia devs here. This is correct. Also we're looking to implement OIDC/OAuth2.0 provider functionality. It has been somewhat delayed by COVID19, specifically additional personal burdens that arose because of it.
- sandreas 6y agoMaybe another interesting project: https://www.ory.sh/ https://www.ory.sh/ AFAIK NO SSO here...
- DigitalSea 6y agoI had to do a double take on the name. I thought it was referencing the open-source Javascript framework Aurelia.
- propter_hoc 6y agoIs this a viable alternative to Auth0/Okta?
- James-E 6y agoOne of the Authelia devs here. Not yet as we currently are not a OIDC provider. However this is a feature we are prioritizing, and forward auth / auth request are viable alternatives for apps that have any RBAC or support a user/group header.
- hsbauauvhabzb 6y agoI’ll preface this with I’d rather not trust cloud infra for auth, but: In a world where cloud providers can drop known botnet IPS, and have access to far more intel based on sparse infra and AI / secops teams, I’m struck between trusting them and trusting a self hosted product. How do you plan to be competitive with the security tech available to large auth as a service providers?
- hardwaresofton 6y agoPersonally I think of Authelia and Keratin as really good projects in the don't-build-auth-into-your-apps-ever-again space. If auth isn't already built into your app gateway/mesh/proxy, then these services might be something worth dropping alongside. A few more projects in this space: - Keycloak (you won't get fired for picking this)[0] - CloudFoundry's UAA[1] - Gluu [2] - ORY (Hydra + friends)[3] - Keratin [4] - OpenUnison [5] - Dex[6] - Netlify's GoTrue[7] All of these solutions are a bit different but here are some of the axes: - Whether or not they function as an OAuth provider - Whether they're centered around application-user-login via mechanisms like email/password, application auth, or SSO - Whether or not they serve as a proxy to another down-the-line OAuth provider (Dex, GoTrue) - GUI availability - F/OSS-ness (basically all of them have very permissive licenses) [EDIT] More entries for this list in another comment @ https://news.ycombinator.com/item?id=26411457 https://news.ycombinator.com/item?id=26411457 [0]: https://www.keycloak.org/ https://www.keycloak.org/ [1]: https://github.com/cloudfoundry/uaa https://github.com/cloudfoundry/uaa [2]: https://gluu.org/docs/gluu-server/4.2/ https://gluu.org/docs/gluu-server/4.2/ [3]: https://github.com/ory/hydra#what-is-ory-hydra https://github.com/ory/hydra#what-is-ory-hydra [4]: https://keratin.github.io/authn-server/ https://keratin.github.io/authn-server/ [5]: https://github.com/tremolosecurity/openunison https://github.com/tremolosecurity/openunison [6]: https://github.com/dexidp/dex https://github.com/dexidp/dex [7]: https://github.com/netlify/gotrue https://github.com/netlify/gotrue
- dastx 6y agoLooks like Keycloak's certificate is only valid with `www.`: https://www.keycloak.org/ https://www.keycloak.org/ > - Keycloak (you won't get fired for picking this)[0] Curious what you mean with "you won't get fired for picking this". Do you mean that it's good and easy to run, or something else?
- scrollaway 6y agoKeycloak is used by enterprise a lot. ISPs, Banks, etc. So it's a pretty safe choice if you are in that space.
- codefined 6y ago
- 1cvmask 6y agoAcmelogin also has default 2fa support: https://acmelogin.com/ https://acmelogin.com/ Disclosure: affiliated with it.
- WanderWonder 6y agoWhy Open Source? Paragraph 1 "in the face of* the battlefield" Definitely on the side of open source when it comes to security. But not because it lends itself to cheaper solutions but because it allows you to be sure your not being siphoned for corporate profit.
- mooreds 6y ago> it allows you to be sure your not being siphoned for corporate profit. As someone who works for a company which sells an auth solution, I'm curious what you mean by this? Are you concerned about your data being aggregated and sold? Are you concerned about lock-in? Are you concerned about security CVEs being hidden or remaining unfixed? Would love to know more.
- colineartheta 6y agoNot OP, but, all of the above.
- lmeyerov 6y agoas soon as you want to enable users to self-host, esp on-prem/airgapped, any internet dependencies, unscannable code, etc, will fail basic env and security reqs. In general, also loses control, which is a risk, and for technically unnecessary reasons, elevating that to radioactive. provide both oss and paid hosting, and becomes fine.
- mooreds 6y ago> as soon as you want to enable users to self-host, esp on-prem/airgapped, any internet dependencies, unscannable code, etc, will fail basic env and security reqs. Hmmm. My employer has people who have used our commercial, closed source, self hosted auth software and obtained PCI compliance. I'm not a security expert, but my understanding is that is a relatively rigorous security process. Am I incorrect? > provide both oss and paid hosting How do you deal with the "Amazon/GCP/Azure takes the OSS software and cross sells it to their customer base" problem? This is something I've been thinking about for years and years. Not that this is your problem to solve :) and I get that as a customer of a software business one typically doesn't care, but thought I'd ask. One answer I've heard is "be better at running your software than AWS" which makes sense, but doesn't address cross selling. AWS doesn't have to be the best at running ElasticSearch, they just have to be good enough because they own a major distribution and payment channel. Another answer I've heard is "you should be so lucky as to have a public cloud pick up your OSS project" which I totally understand (obscurity is a bigger competitor than the public could for most projects). But it doesn't address the very real threat to the business which may arrive just when the project can start to throw off profits to pay back the initial investment. Again, I realize there's nuance here and that if a company takes the contributions of the community that can accelerate their growth and feature set. But I'm just curious on your take on the public cloud provider angle.
- koblas 6y agoThis was interesting up until I found this line in the documentation. Which is having authentication based on cookies is a non-starter for many organizations at this point. > Authelia relies on session cookies to authenticate users. When the user visits a website of the protected domain example.com for the first time, Authelia detects that there is no cookie for that user. Consequently, Authelia redirects the user to the login portal through which the user should authenticate to get a cookie which is valid for *.example.com,
- mooreds 6y agoSetting cookies like that is a pretty standard SSO technique for the web as far as I know. Is there a superior alternative I can read up on?
- donatzsky 6y ago1. Do authentication on auth.example.com 2. Set a session cookie for auth.example.com 3. Redirect to app.example.com/?token=12345 4. Exchange token for a session cookie on app.example.com This way each (sub)domain will have it's own unique cookie.
- mooreds 6y agoAh, so the issue is that the cookie was set for the entire domain, not that a cookie was set at all. My misunderstanding. Yes, what you lay out makes sense.
- donatzsky 6y agoReading his other comment, koblas was actually talking about bearer tokens. Not sure how they are actually better than cookies, though. Certainly can be a lot more complex. With cookies you mostly just have to avoid the *.example.com foot gun.
- mcovalt 6y agoWhy is cookie based auth a problem?
- swiley 6y agoThe Readme only mentions docker for deployment. Docker is awesome but when there's no way to use the software without it that's always disturbing.
- 0xbadcafebee 6y ago"Authelia can be installed as a standalone service from the AUR, FreeBSD Ports, or using a Static binary, Docker, or Kubernetes. Assistance to publish a debian package would be greatly appreciated."
- qbasic_forever 6y agoContainers run on lots of non-Docker runtime environments. You can just install runc, or if you have systemd you can use systemd-nspawn. Or if you want a more Docker-like experience there's podman. Or if you're working with it kubernetes and containerd will run containers. And if you don't like any of that, look in the Dockerfile and replicate the setup on your server. IMHO in 2021 it's not worth someone's time to worry about the eccentricities of 20-30 year old bespoke unix/linux distributions and their myriad of incompatible decisions.
- James-E 6y agoOne of the Authelia devs here, we support a variety of methods of deployment as mentioned by a user below and include a systemd unit. If there is any deployment scenario you feel we've not accounted for that you prefer then we'd be more than willing to look at implementing it.
- fasteo 6y agoMaybe Off-topic. Any product supporting API Keys (ala github personal access tokens) out of the box ? In our case, we are only interested in a service to service scenario. A couple of examples that don't: Keycloak requires some coding to achieve it [1] Auth0 does not seem to support it [2] [1] http://www.zakariaamine.com/2019-06-14/extending-keycloak http://www.zakariaamine.com/2019-06-14/extending-keycloak [2] https://community.auth0.com/t/how-to-implement-api-keys-using-auth0/6296/9 https://community.auth0.com/t/how-to-implement-api-keys-usin...
- BinaryArcher 6y agoAs with Keycloak, Auth0 can implement access tokens via a client and some code. However, that would assume you use a custom policy within your token for access control, as Auth0 does not provide the same level of RBAC for clients as it does to users.
- qbasic_forever 6y agoI really liked Expresss API Gateway, a middleware for express that gives a nice API for creating and using auth tokens: https://www.express-gateway.io/ https://www.express-gateway.io/ It can act as a proxy to downstream services and secures access to them with those tokens. Also check out bigger players in the API gateway space. Kong, Krakend, etc. Most of them all support auth tokens out of the box in the open source versions.
- fasteo 6y agoThanks for the pointer to Express API Gateway. A took a look at Krakend a while back, and it didn't seem to support it either [1] [1] https://github.com/devopsfaith/krakend/issues/274 https://github.com/devopsfaith/krakend/issues/274
- 0xbadcafebee 6y agoHowever, Authelia... is not an OAuth or OpenID Connect provider yet (planned in the roadmap) is not a SAML provider yet. does not support authentication against an OAuth or OpenID Connect provider yet. does not support authentication against a SAML provider yet. does not support using hardware devices as single factor. does not provide a PAM module yet. oauth2_proxy is a great tool that lets you create a transparent OAuth proxy to provide SSO for any internal service. Protect an entire subdomain of services using one identity provider! Guides exist for integrating it with K8s, but luckily it's just a binary so you can protect non-K8s services with it too. It's also super easy to deploy, as you can configure the whole thing with just environment variables, or a config file. The docs are decent too. https://github.com/oauth2-proxy/oauth2-proxy https://github.com/oauth2-proxy/oauth2-proxy There's also S.S.Octopus, and Pomerium. https://github.com/buzzfeed/sso https://github.com/buzzfeed/sso https://github.com/pomerium/pomerium https://github.com/pomerium/pomerium They all have different OAuth providers, so check them each out to see which one works with your identity provider. (GitHub OAuth + SSO makes using these a no-brainer) For just SAML, there's saml-auth-proxy, though I haven't looked into it much. https://github.com/itzg/saml-auth-proxy https://github.com/itzg/saml-auth-proxy
- exabrial 6y agoLooking forward to the deb package! I like every part of what you guys are doing.