News for hackers. Stuff that matters.
Re:Keycloak SSO with Docker Compose and Nginx by mooreds on Sunday February 11, 2024 @01:02PM (#39336914)
Disclosure: I work for FusionAuth.

If you are looking for SSO + easy configuration + an admin UI (which admittedly has a mid 2000s UX look and feel), you should check out FusionAuth. It's free to download and run yourself[0], docker friendly[1], has a variety of configuration choices[2] (including terraform[3] to manage your OIDC/other settings).

Worth noting that it is free to use, but not open source[4].

0: https://fusionauth.io/download

1: https://fusionauth.io/docs/get-started/download-and-install/...

2: https://fusionauth.io/docs/operate/deploy/configuration-mana...

3: https://fusionauth.io/docs/operate/deploy/terraform

4: https://fusionauth.io/license-faq#28

Re:Keycloak SSO with Docker Compose and Nginx by apitman on Sunday February 11, 2024 @03:37PM (#39338438)
Genuinely curious, how do you plan to compete with Ory and Zitadel in this space without being open source?
Re:Keycloak SSO with Docker Compose and Nginx by mooreds on Sunday February 11, 2024 @04:59PM (#39339185)
Great question. Appreciate the interest.

I can only speak from my perspective as an employee, not the whole company. It is something I've thought about. I will also ask the CEO/founder or other leaders to weigh in.

Many devs care about open source when they are evaluating a solution, but many really want "free as in beer". They want to try a product without getting out the credit card or engaging with sales. We cater to the latter category, which wants to understand the product quality without talking to any sales people.

Some of these folks use our community product for their production needs, which is perfectly fine. We have people running FusionAuth in production with 1000s of tenants or 10000+ applications. (I always say they "pay" us by filing bug reports, giving feedback and voting on feature requests.)

But some decide they want to pay us for hosting, support or advanced features. Those choices help us build a business.

Devs, and especially buyers, are interested in sustainability of a product they are going to integrate into their system. An auth provider isn't a javascript widget that you can easily drop in or remove from your system. It embeds in your system, even if you stick to a standard like OIDC, and is difficult to switch from, especially at scale. You want to be sure the company and product is going to stick around. (If you want to make sure you can run the product even if everyone at FusionAuth wins the lottery, we do offer source code escrow for a price, but haven't had anyone take us up on it.)

FusionAuth is a profitable company (we did recently raise a round to accelerate growth, you can read more about that here [0]). Open source companies often have a hard time meeting the profit goals of the market or investors. This is a known issue and often results in relicensing or changing the rules, as we've seen with Hashicorp[1] and Elastic[2]. This switcheroo can cause issues, confusion, and ill-will; FusionAuth's licensing avoids that.

FusionAuth also develops in the open[3]. This open development process gives us another common benefit people get from OSS--community feedback.

Also, I don't want to throw shade at Ory and Zitadel, since I have no idea about their finances (apart from a brief look at Crunchbase, which shows they've raised 22.5M[4] and 2.5M[5] respectively). I hope they're building sustainable businesses, but selling closed source software is a sure route to a profitable business that has built many big companies (including in the auth space, such as Okta or Auth0). Again, this is not FUD (or at least I don't intend it to be!), just an honest assessment at the difficulties of making money in open source dev tools [6].

We also compete on features, support and documentation. Again, I can't speak to Ory or Zitadel; they look nice, but I haven't built anything with them, so it is hard for me to know how good they are. I do know that we have had many clients appreciate of those aspects of our product.

To sum up:

* FusionAuth has a free option, which helps reduce friction and gives some of the benefits of OSS. The open process and escrow also give some of the benefits of OSS.

* Some devs and buyers care about business sustainability, especially when integrating a tool deeply into their application. FusionAuth will never have to worry about relicensing a version because AWS is eating our SaaS revenue stream, for example.

* We offer great support, documentation and intricate auth features at a reasonable price.

Hope this helps.

0: https://fusionauth.io/blog/fusionauth-and-updata

1: https://www.hashicorp.com/license-faq

2: https://www.elastic.co/pricing/faq/licensing

3: https://github.com/FusionAuth/fusionauth-issues/issues/

4: https://www.crunchbase.com/organization/ory/company_overview...

5: https://www.crunchbase.com/organization/zitadel

6: I wrote about this a few years ago on my personal blog: https://www.mooreds.com/wordpress/archives/3438

Re:Keycloak SSO with Docker Compose and Nginx by ensignavenger on Sunday February 11, 2024 @06:06PM (#39339708)
>> It embeds in your system, even if you stick to a standard like OIDC, and is difficult to switch from, especially at scale.

This is precisely why a real, Open Source solution should be a top priority feature for anyone evaluating software like this. We have seen closed source solutions, time and time again, "realign" their business by dropping features, or even entire, free plans. In some cases, closed source software has been removed from the market all together when the company gets bought out. Changes in pricing plans leads to a worse fit for customers... etc. At least when Hashicorp and Elastic abandoned Open Source, the community had the option to say "yeah, good luck, thanks for the good times, but no thanks on your new direction" and fork the product to continue maintaining it. When a closed source products owners decide to "shift gears" on the product line up, customers are left between a rock and a hard place. Maybe if there were no Open Source options, but fortunately, there are several in the auth space.

Re:Keycloak SSO with Docker Compose and Nginx by apitman on Monday February 12, 2024 @12:33AM (#39341751)
I've been thinking lately how important it is that software be not only open source, but simple enough to be forkable. The fact that Keycloak is open source almost seems irrelevant given how massive the codebase is.

Browsers represent an extreme case.

Re:Keycloak SSO with Docker Compose and Nginx by apitman on Sunday February 11, 2024 @05:12PM (#39339268)
Thanks for the detailed answer. If people are already taking advantage of your free offering, how would it be different if you released the source? If you're worried about another company piggybacking off your work to start a competitor, why not use one of these newfangled non-compete licenses? That still gives users the security of being able to for the project internally if you go under.
Re:Keycloak SSO with Docker Compose and Nginx by mooreds on Sunday February 11, 2024 @05:16PM (#39339294)
The free version of FusionAuth has limits beyond what other licenses have. See https://fusionauth.io/license-faq#3 for more details.

I'm afraid that's all the detail I have about the decision to keep FusionAuth closed source.

Re:Keycloak SSO with Docker Compose and Nginx by mooreds on Sunday February 11, 2024 @05:33PM (#39339445)
Sorry, on re-read, this sounds kinda abrupt. My bad.

I think at the end this is a business decision. The executive team has considered options and decided that closed source is the right path for the company.

Re:Keycloak SSO with Docker Compose and Nginx by apitman on Monday February 12, 2024 @02:11PM (#39348926)
No worries. Didn't seem abrupt.
Re:Keycloak SSO with Docker Compose and Nginx by mmcnl on Sunday February 11, 2024 @03:39PM (#39338455)
How do I integrate this with a reverse proxy like Caddy and their forward_auth directive? I want to secure my apps on the proxy layer, not the app layer.
Re:Keycloak SSO with Docker Compose and Nginx by mooreds on Sunday February 11, 2024 @04:09PM (#39338725)
You'd have FusionAuth issue the tokens through an authentication event (typically the authorization code grant for interactive sessions). Lots of flows with sequence diagrams outlined here [0].

Then store the tokens on the client. For browsers dealing with first party apps (everything under the same domain) we recommend cookie storage of these tokens [1].

Then have Caddy examine the tokens provided by the browser. Here's an example Caddy config I put together for a workshop [2].

Finally, depending on your security posture, you might want to verify tokens both in app and at the proxy.

0: https://fusionauth.io/articles/login-authentication-workflow...

1: https://fusionauth.io/articles/oauth/oauth-token-storage

2: https://github.com/FusionAuth/fusionauth-example-php-api-wor...

Re:Keycloak SSO with Docker Compose and Nginx by james_d_elliott on Monday February 12, 2024 @06:18AM (#39343669)
Hey one of the Authelia developers here. Authelia works out of the box with Caddy's forward auth directive. In fact I helped Caddy develop and test the feature to ensure it had feature parity with an existing implementation/spec.

You have very granular options to customize the experience allowing multiple sites to have the same or different rules, which can alter the authentication requirements based on remote ip, users, groups, paths, domains, etc.

Re:Keycloak SSO with Docker Compose and Nginx by NeckBeardPrince on Sunday February 11, 2024 @01:49PM (#39337415)
So if you self-host you still have to pay to have 2FA?
Re:Keycloak SSO with Docker Compose and Nginx by mffap on Sunday February 11, 2024 @03:34PM (#39338409)
If you look for 2FA with otp, email, sms and also passkeys foe self-hosting, then give zitadel a spin. All features are included in the open source version. Should also work nicely with docker compose + nginx. In case you have issues, join the chat. https://github.com/zitadel/zitadel
Re:Keycloak SSO with Docker Compose and Nginx by mooreds on Sunday February 11, 2024 @01:51PM (#39337437)
TOTP 2FA is free. SMS and email MFA are part of the paid plans.

From https://fusionauth.io/docs/lifecycle/authenticate-users/mult...

> However, the Authenticator/TOTP implementation is not a premium feature.