That doesn’t sound too bad, thanks for the instructions. I’ll probably give keycloak another try too.
Do you know what kind of cpu memory usage it has? I saw the newer versions are supposed to be lighter, but haven’t tested it yet.
Comment on Simple authentication for homelab?
redcalcium@lemmy.institute 10 months ago
Keycloak seems complicated, but it’s actually not that complicated if you use it for simple OIDC provider.
Just create a new realm, then go to client -> create. Enter your client-id, with openid-connect as protocol. Then, set access type to “confidential”, set valid redirect uri to “https://<your app>” (or even “https://*” if you’re lazy and want to use it on multiple apps). Then hit save and go to the credential tab to copy your client secret. Then head to “users” menu to start adding users to your realm.
That’s the basic setup which should be good for home use. The good thing about keycloak is, as you grow your homelab, whatever stuff you may need later can be provided by keycloak. Want some users to have access to app A, but not app B? 2 factor auth? Allow users to login with google account? Heck, allow users to login with another sso provider (chaining)? You can do pretty much anything.
That doesn’t sound too bad, thanks for the instructions. I’ll probably give keycloak another try too.
Do you know what kind of cpu memory usage it has? I saw the newer versions are supposed to be lighter, but haven’t tested it yet.
I’ve had one realm with 5 clients and nothing crazy setup running for about 3 years across 3 major versions and haven’t had many problems
Currently it’s using ~511MB of memory, which is comparable to typical web apps. CPU usage is almost zero because it’s idle most of the time (you’re practically only using it on login only).
I’m still on keycloak v19 and haven’t had a change to upgrade to the latest version yet and have no idea how much memory the latest version will use, but I remember testing keycloak before they migrated to quarkus and it was sitting at ~2GB memory and was immediately turned off by it. I gave it a try again after I heard the memory usage got better and stick around since then.
notfromhere@lemmy.ml 10 months ago
Does that work with gitea? I was able to get it working with Authentik but wasn’t able to get it working on Keycloak.
timbuck2themoon@sh.itjust.works 10 months ago
Yep. I’ve got a test instance working with keycloak. Post up the problem you’re having and i can check it against mine. I think all of it was configured via UI on both except there are two changes in the gitea config.INI that allowed that auth and auto created users if they didn’t exist yet.
redcalcium@lemmy.institute 10 months ago
If you have some error message, it would be easier to identify the issue. Typical problems:
[your host]/realms/[your realm]/.well-known/openid-configuration/
to[your host]/auth/realms/[your realm]/.well-known/openid-configuration/
, and some apps still use the old one. You might be able to correct this by manually entering keycloak endpoint in your oidc settings.