Comment on fail2ban behind reverse proxy (nom)
tremble5218@programming.dev 2 days agoFor auth providers, I’ve tried all the ones you named. Here’s my brief analysis:
- Authelia - deployment and configuration is moderately complex but documentation is great and it works well with Caddy reverse proxy.
- Authentik - way too complex to deploy and configure, requires you to understand their concepts very well. I’d stay away from it.
- PocketID - super easy to deploy and configure. Passkeys are easier and arguably more secure than passwords and it supports a few methods other than passkeys.
With these services you mentioned you want to or are already hosting, you could use the following in the order they are listed:
- Basic auth using Caddy (reverse proxy layer)
- Anubis to ward off bots and scrapers (between reverse proxy and hosted service)
- PocketID for auth (before service as single sign-on)
I would recommend 2 and 3 as 1 is pretty useless against a determined attacker. Anything that’s on the public internet is bound to be attacked at some point, so follow best practices and perform server hardening on the host machine. Remember, you classify the sensitivity of the data you host and determine the severity of the risk if that data were to be exposed. So work with that in mind when choosing an option.
nibbs@lemmy.zip 1 day ago
Thank you for the very comprehensive write up.
Authentication will be my very next project after I solved another minor problem I’ve become aware of just yesterday.
It’s at least the second time, someone mentioned Anubis in this thread.
I’ve checked the site but have to do further digging about the concept. Mostly because “AI” isn’t something I adore that much, but that’s a me problem. :)
tremble5218@programming.dev 1 day ago
No problem. I hope you found it useful. Anubis is not AI. It discerns between bots/AI scrapers and legitimate users using a combination of heuristics and a mathematical challenge, thereby protecting the website that sits behind it. Check out the documentation at: anubis.techaro.lol
nibbs@lemmy.zip 1 day ago
Oh, true. I’ve read so many infos about different services lately, that I must have confused that with something else.
Thank you.