home.social

#kanidm — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #kanidm, aggregated by home.social.

fetched live
  1. It's been a while since my last post and a lot has happened. Hence, a quick update.

    I've fully migrated from #freeipa to #kanidm by now and while this path was definitely not without (also major) problems, a lot of back and forth also with the developers, and a steep learning curve on my side, overall I don't regret the decision at all.

    While kanidm arguably falls behind in popularity/visibility compared to #authentik, #keycloak, etc and seemingly also has (much?) less developers, and development therefore feels slower, it scores with simplicity and by offering exactly what I need. And it is MUCH more light-weight than #freeipa and has WAY fewer moving parts. And developers react quickly and are helpful. POSIX users/groups I could just "inherit" from the existing system.

    See here for a quick comparison:
    kanidm.com/comparisons/

    I have around 10 services connected to it using OIDC, SSH access to servers, and automatic SSH key provisioning. All is working fine (finally now).

    What is a bit annoying about OIDC is that not all services offer OIDC out of the box, i.e. sometimes additional plugins are needed. The other annoying thing is that OIDC implementations differ, e.g. in how group mapping are used (if at all). But this is not kanidm's fault.

    If you are looking for a one-stop solution that offers OIDC, SSH key provisioning and replication - don't look any further. I can most highly recommend it.

  2. It's been a while since my last post and a lot has happened. Hence, a quick update.

    I've fully migrated from #freeipa to #kanidm by now and while this path was definitely not without (also major) problems, a lot of back and forth also with the developers, and a steep learning curve on my side, overall I don't regret the decision at all.

    While kanidm arguably falls behind in popularity/visibility compared to #authentik, #keycloak, etc and seemingly also has (much?) less developers, and development therefore feels slower, it scores with simplicity and by offering exactly what I need. And it is MUCH more light-weight than #freeipa and has WAY fewer moving parts. And developers react quickly and are helpful. POSIX users/groups I could just "inherit" from the existing system.

    See here for a quick comparison:
    kanidm.com/comparisons/

    I have around 10 services connected to it using OIDC, SSH access to servers, and automatic SSH key provisioning. All is working fine (finally now).

    What is a bit annoying about OIDC is that not all services offer OIDC out of the box, i.e. sometimes additional plugins are needed. The other annoying thing is that OIDC implementations differ, e.g. in how group mapping are used (if at all). But this is not kanidm's fault.

    If you are looking for a one-stop solution that offers OIDC, SSH key provisioning and replication - don't look any further. I can most highly recommend it.

  3. Hm, now how do I fudge things around so that in my #SSO (#KaniDM) I can have two separate users, that to some services (mainly #readeck and #miniflux) appear as the same user 🤔

    #SelfHost

  4. Hm, now how do I fudge things around so that in my #SSO (#KaniDM) I can have two separate users, that to some services (mainly #readeck and #miniflux) appear as the same user 🤔

    #SelfHost

  5. Look at this! I was finally able to configure all of these apps to allow #SingleSignOn (#SSO) using #kanidm on #NixOS.

    I admit I couldn't do this without the help of an #LLM (I used antigravity-cli for this). I know there are a lot of good points against LLMs, but they sure are really useful to me.

  6. Look at this! I was finally able to configure all of these apps to allow #SingleSignOn (#SSO) using #kanidm on #NixOS.

    I admit I couldn't do this without the help of an #LLM (I used antigravity-cli for this). I know there are a lot of good points against LLMs, but they sure are really useful to me.

  7. My summer vacation starts soon. And my brain is spinning and accumulating stuff I could do. Move my hosted server to a better one finally.. I pay both for well over a year :/ Catch up with current development of #k8s, #cilium, #flux, #proxmox, move to Gateway API, #kanidm replication as it got more important. Document all that.. trying to get away from Google photos, but it's complicated with huge shared albums.. and that's just some ideas.. and only IT.

  8. As a project #kanidm has its flaws and its limitations - but we will not allow LLM slop into an identity management system. A software service that is centered on protecting and respecting humans.

  9. As a project #kanidm has its flaws and its limitations - but we will not allow LLM slop into an identity management system. A software service that is centered on protecting and respecting humans.

  10. LMAO, I just sat down to add a new application to my #Authentik #SSO... And bounced right off of all the options. Indeed time to move, I guess #KaniDM looks nice.
    Yeah, moving from the baroque/enterprise clickable authentik/keycloak to "it's mostly CLI and purposefully few options" can cause some whiplash 😅

  11. LMAO, I just sat down to add a new application to my #Authentik #SSO... And bounced right off of all the options. Indeed time to move, I guess #KaniDM looks nice.
    Yeah, moving from the baroque/enterprise clickable authentik/keycloak to "it's mostly CLI and purposefully few options" can cause some whiplash 😅

  12. Hm, stay on #authentik and try to manage it with #terraform, or switch to #KaniDM and use the ability of #NixOS to externally manage/provision users and services? 🤔

    #SelfHost #HomeLab #Security #Privacy

  13. Hm, stay on #authentik and try to manage it with #terraform, or switch to #KaniDM and use the ability of #NixOS to externally manage/provision users and services? 🤔

    #SelfHost #HomeLab #Security #Privacy

  14. @homelab OK, after playing around a tiny bit, it seems that the code for this exists in #KaniDM
    - github.com/kanidm/kanidm/pull/
    - github.com/kanidm/kanidm/pull/
    but what doesn't exist is ability to reach it and set that up for a user. Oh well.

    #Privacy #Security #SelfHosting #SSO

  15. @homelab OK, after playing around a tiny bit, it seems that the code for this exists in #KaniDM
    - github.com/kanidm/kanidm/pull/
    - github.com/kanidm/kanidm/pull/
    but what doesn't exist is ability to reach it and set that up for a user. Oh well.

    #Privacy #Security #SelfHosting #SSO

  16. In my #SSO / #IdM adventures, looks like if I wanted to allow people to use my hackerspace's #OIDC SSO to access my services, I can configure this in #Authentik, but not in #KaniDM 🤔

    #privacy #SelfHosting #authentication

  17. In my #SSO / #IdM adventures, looks like if I wanted to allow people to use my hackerspace's #OIDC SSO to access my services, I can configure this in #Authentik, but not in #KaniDM 🤔

    #privacy #SelfHosting #authentication

  18. IMPORTANT: #Kanidm has released 1.9.4 and 1.10.2 that resolves a CRITICAL security issue. This issue allows any authenticated user to elevate privileges to idm_admin/admin. Details: github.com/kanidm/kanidm/secur

  19. IMPORTANT: #Kanidm has released 1.9.4 and 1.10.2 that resolves a CRITICAL security issue. This issue allows any authenticated user to elevate privileges to idm_admin/admin. Details: github.com/kanidm/kanidm/secur

  20. On Thursday 14th of May, at 07:00 UTC (17:00 AEST, 9:00 CEST) #Kanidm will be releasing a security update containing a CRITICAL security fix. All users should be ready to upgrade!

  21. On Thursday 14th of May, at 07:00 UTC (17:00 AEST, 9:00 CEST) #Kanidm will be releasing a security update containing a CRITICAL security fix. All users should be ready to upgrade!

  22. @viq interesting... #KaniDM is new for me. I was thinking to deploy #authelia in my #Selfhosting environment. I'll read more about it. Thanks

    @homelab

  23. @viq interesting... #KaniDM is new for me. I was thinking to deploy #authelia in my #Selfhosting environment. I'll read more about it. Thanks

    @homelab

  24. Out of the #IdM / #SSO solutions I can #SelfHost that I remembered about, apparently only #KaniDM has ability to create app passwords / bearer tokens that actually allow to access only a single application 🤔

    #Linux #SysAdmin #Privacy #Security #SelfHosting #homelab
    @homelab

  25. Out of the #IdM / #SSO solutions I can #SelfHost that I remembered about, apparently only #KaniDM has ability to create app passwords / bearer tokens that actually allow to access only a single application 🤔

    #Linux #SysAdmin #Privacy #Security #SelfHosting #homelab
    @homelab

  26. Be me.
    Make a typo `pcke` instead of `pkce` in your NixOS config for headscale.
    Config does not get spellchecked, just converted to yml.
    Kandidm does not reciece pkce challenge.
    Fight for hours over 4 weeks to finally decide to open the generated yml.

    GG.

    #NixOS #HeadScale #KanIDM

  27. Be me.
    Make a typo `pcke` instead of `pkce` in your NixOS config for headscale.
    Config does not get spellchecked, just converted to yml.
    Kandidm does not reciece pkce challenge.
    Fight for hours over 4 weeks to finally decide to open the generated yml.

    GG.

    #NixOS #HeadScale #KanIDM

  28. I proposed something for #kanidm which a reviewer described as "what if CSRF tokens but they hurt to touch"

  29. I proposed something for #kanidm which a reviewer described as "what if CSRF tokens but they hurt to touch"

  30. Finally got Forgejo running on Kubernetes with single-sign-on based on Kanidm!

    Took me one day of work, which I'm not sure if it's a good or a bad thing…

    #Forgejo #Kubernetes #Kanidm

  31. ClaimMaps in Kanidm on NixOS fixed.
    Now paperless-ngx and wiki-js can read user groups/roles over OIDC.

    The trick wad to `_` instead of `-` in thr naming scheme.

    #KanIDM #NixOS #OIDC #OpenIdConnect

  32. ClaimMaps in Kanidm on NixOS fixed.
    Now paperless-ngx and wiki-js can read user groups/roles over OIDC.

    The trick wad to `_` instead of `-` in thr naming scheme.

    #KanIDM #NixOS #OIDC #OpenIdConnect

  33. kanidm seems to be a cool project

    managed to deploy it pretty quickly and without any issues

    (and also found out that i never set a pin on my yubikey in the process for firefox reasons)

    #kanidm

  34. commands for kanidm + bookstack

    kanidm create group bookstack_admin

    kanidm system oauth2 create-claim-map bookstack bookstack_roles bookstack_admin admin

    kanidm system oauth2 update-scope-map bookstack bookstack_users email groups openid profile bookstack_roles

    kanidm group add-members bookstack_admin stelb

    Environment for bookstack:
    OIDC_USER_TO_GROUPS=true
    OIDC_GROUPS_CLAIM=bookstack_roles
    OIDC_REMOVE_FROM_GROUPS=true

    #iam #idm #oauth2 #roles #claim-map #kanidm

  35. commands for kanidm + bookstack

    kanidm create group bookstack_admin

    kanidm system oauth2 create-claim-map bookstack bookstack_roles bookstack_admin admin

    kanidm system oauth2 update-scope-map bookstack bookstack_users email groups openid profile bookstack_roles

    kanidm group add-members bookstack_admin stelb

    Environment for bookstack:
    OIDC_USER_TO_GROUPS=true
    OIDC_GROUPS_CLAIM=bookstack_roles
    OIDC_REMOVE_FROM_GROUPS=true

    #iam #idm #oauth2 #roles #claim-map #kanidm

  36. I did this for bookstack with kanidm
    Given the oauth2 app is 'bookstack':
    map claims (roles in bookstack, say admin)
    to scopes and groups in IAM, e.g. bookstack_roles and bookstack_admin

    add the scope to the oauth2 application

    assign users to these groups as needed.

    configure app which scope to use for roles

    #iam #idm #oauth2 #roles #claim-map #kanidm

  37. I did this for bookstack with kanidm
    Given the oauth2 app is 'bookstack':
    map claims (roles in bookstack, say admin)
    to scopes and groups in IAM, e.g. bookstack_roles and bookstack_admin

    add the scope to the oauth2 application

    assign users to these groups as needed.

    configure app which scope to use for roles

    #iam #idm #oauth2 #roles #claim-map #kanidm

  38. Ok, first time I tried to use a custom scope to map oauth2 users to application specific roles.
    Followed some sample and I just replaced names.
    Working with one role.. adding another. Both roles not working anymore.
    Reading more theory about scopes and claims did help to understand (oh well 🙈)
    It's actually not that complicated 🤓
    Both roles working now. Writing up some docs and adding another 2 roles is planned for tomorrow.
    #oauth2 #idm #kanidm

  39. Ok, first time I tried to use a custom scope to map oauth2 users to application specific roles.
    Followed some sample and I just replaced names.
    Working with one role.. adding another. Both roles not working anymore.
    Reading more theory about scopes and claims did help to understand (oh well 🙈)
    It's actually not that complicated 🤓
    Both roles working now. Writing up some docs and adding another 2 roles is planned for tomorrow.
    #oauth2 #idm #kanidm

  40. Ah, you got to love that sometimes SSO callback URIs have a trailing slash and sometimes they don't. And no, i did absolutely not search for the error 45 minutes straight.

    By the way, did anybody set up claimMaps for kanidm in NixOS yet? I am too sleepy right now and i think i am reading it wrong.

    search.nixos.org/options?chann.<name>.claimMaps.<name>.valuesByGroup

    #NixOS #KanIDM #PaperlessNGX

  41. Ah, you got to love that sometimes SSO callback URIs have a trailing slash and sometimes they don't. And no, i did absolutely not search for the error 45 minutes straight.

    By the way, did anybody set up claimMaps for kanidm in NixOS yet? I am too sleepy right now and i think i am reading it wrong.

    search.nixos.org/options?chann.<name>.claimMaps.<name>.valuesByGroup

    #NixOS #KanIDM #PaperlessNGX

  42. Kanidm PAM authorizations are so nice.
    I cannot decide if i want to maintain users on my servers etc. via Nix as i used to or extend it by kanidm.

    Rotating keys and granting/revoking authorizations is just so nice with kanidm.

    I also found out that - with a client installed on my main machine - i can just login to the remote instance by `kanidm login` and use my yubikey locally and then do admin stuff without sshing to the server. Awesome.

    #kanidm

  43. Kanidm PAM authorizations are so nice.
    I cannot decide if i want to maintain users on my servers etc. via Nix as i used to or extend it by kanidm.

    Rotating keys and granting/revoking authorizations is just so nice with kanidm.

    I also found out that - with a client installed on my main machine - i can just login to the remote instance by `kanidm login` and use my yubikey locally and then do admin stuff without sshing to the server. Awesome.

    #kanidm

  44. About half a year ago I installed github.com/Tricked-dev/kanidm-
    Just to replace my shell script to setup oauth2 for my services with kanidm.
    Now I pulled the image again and.. it's
    "Kanidm Management Console" 😃
    With UI added for users and groups too.
    I do prefer automation so I do like full cli management. But sometimes a UI is nice too :)
    #kanidm #idm #ui

  45. About half a year ago I installed github.com/Tricked-dev/kanidm-
    Just to replace my shell script to setup oauth2 for my services with kanidm.
    Now I pulled the image again and.. it's
    "Kanidm Management Console" 😃
    With UI added for users and groups too.
    I do prefer automation so I do like full cli management. But sometimes a UI is nice too :)
    #kanidm #idm #ui

  46. Only on some rare occasions i log into Shithub, because some projects are either too big for codeberg (looking at you, NixOS) or too corporate? (kanidm).

    I hope this will be the last time this year.

    #QuitGithubNow #NixOS #KanIDM

  47. Only on some rare occasions i log into Shithub, because some projects are either too big for codeberg (looking at you, NixOS) or too corporate? (kanidm).

    I hope this will be the last time this year.

    #QuitGithubNow #NixOS #KanIDM

  48. Turned on SSO for vaultwarden.
    I forgot, that the passkey for SSO was in vaultwarden only. Shot myself in the foot. Fixable, but I simply fogot that 😅
    I have added hw keys too now ;)
    #vaultwarden #sso #kanidm #fail

  49. Turned on SSO for vaultwarden.
    I forgot, that the passkey for SSO was in vaultwarden only. Shot myself in the foot. Fixable, but I simply fogot that 😅
    I have added hw keys too now ;)
    #vaultwarden #sso #kanidm #fail

  50. @Larvitz Thats great to hear! Thanks for sharing this with us. I have still to evaluate #Kanidm. It seems like a lightweight and fresh approach compared to freeIPA to me.

  51. @Larvitz Thats great to hear! Thanks for sharing this with us. I have still to evaluate #Kanidm. It seems like a lightweight and fresh approach compared to freeIPA to me.

  52. @firstyear thank youuuu :3

    Yea I wanna look into #kanidm soon;
    Currently have #Zitadel deployed.

    Once I find time for that, ig :neocat_laptop:

  53. @tanja Proud to see #kanidm so high here in the poll - it's certainly got its flaws but if you give it a go and have any issues, we'd be happy to help!

  54. @tanja Proud to see #kanidm so high here in the poll - it's certainly got its flaws but if you give it a go and have any issues, we'd be happy to help!

  55. I even managed to turn it into a reusable snippet, again so I can have different services each with different oauth2 client ids and secrets.

    I also managed to fix the problem of caddy blocking (read: crashing) on kanidm, by adding the delay_start.

    Interestingly, caddy automatically allows interpolation like `kanidm_{args[0]}` becoming `kanidm_test-app` .

    #selfhosted #kanidm #caddy

  56. This was a very useful blog post.

    caddy-security frankly has really difficult-to-use docs, and kanidm is sometimes a bit different from other auth providers in its approach.

    I've managed to replace oauth2-proxy, and this should be able to give different services different client ids/secrets.

    tricked.dev/blog/kanidm-caddy-

    #selfhosted #kanidm #caddy