Ask HN: How would you implement auth for a self hosted product?
1–10 of 11 posts
Re: Ask HN: How would you implement auth for a self hosted product?
#2Re: Ask HN: How would you implement auth for a self hosted product?
#3Re: Ask HN: How would you implement auth for a self hosted product?
#4Try to implement as few of it in the application and offload the rest to keycloak
Re: Ask HN: How would you implement auth for a self hosted product?
#5You could also provide another implementation that implements Cloudflare's zero trust authentication [1].
[0] https://github.com/vouch/vouch-proxy
[1] https://developers.cloudflare.com/cloudflare-one/identity/au...
In other words, I don't think I'd want to actually take responsibility for authentication these days and use an authenticating proxy. The less security infrastructure you have, the less there is to go out of date.
You can always start with this approach and then implement your own built-in user directory later.
Re: Ask HN: How would you implement auth for a self hosted product?
#6Because nothing fit my needs and internal perfectionist.
Not a big deal if your requirements are narrow.
Its free, it fit your needs perfectly, it doesn’t waste your time on deployment and figuring out wtf is going on behind the scenes.
Re: Ask HN: How would you implement auth for a self hosted product?
#7https://joeldare.com/why-im-using-http-basic-auth-in-2022.ht...
Re: Ask HN: How would you implement auth for a self hosted product?
#8Alternatively, you could use framework specific authentication libraries like nextjs or Devise (Ruby)
Re: Ask HN: How would you implement auth for a self hosted product?
#9Try to implement as few of it in the application and offload the rest to keycloak
How do you deploy keycloak? Does keycloaks load scale linearly with application usage?
Re: Ask HN: How would you implement auth for a self hosted product?
#10Check out the community chat, there are many people having implemented auth for self hosted setups that can share some insights.