News for hackers. Stuff that matters.
Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by Timber-6539 on Tuesday January 14, 2025 @01:33AM (#42694400)
Just put up basic auth infront of your services and be done with it.
Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by KronisLV on Tuesday January 14, 2025 @03:35AM (#42695049)
I've done that in the past, even for securing the admin pages of some software (there was once an issue where the admin page auth could be bypassed, this essentially adds another layer). With TLS it's okay for getting something up and running quickly.

Of course, for the things that matter a bit more, you can also run your own CA and do mTLS, even without any of the other fancy cloud services.

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by jazzyjackson on Tuesday January 14, 2025 @08:29AM (#42696915)
After coming across a brief tutorial of mTLS in this tool for locking down access to my family photo sharing [0] I have bounced around the internet following various guides but haven't ended up with a pfx file that I can install in a browser. Can you recommend any resource to understand which keys sign what, and what a client certificate is verified against?

The guides I find often contain the openssl incantations with little explanation so I feel a bit like stumbling through the dark. I realize how much I've taken stacktraces for granted when this auth stuff is very "do or do not, there is no error"

[0] https://github.com/alangrainger/immich-public-proxy/blob/mai...

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by KronisLV on Wednesday January 15, 2025 @02:10AM (#42708199)
Honestly, the most approachable way will be to use something like Keystore Explorer: https://keystore-explorer.org/

Alternatively, this guide focuses on Apache2 configuration but also goes through the certs https://www.openlogic.com/blog/mutual-authentication-using-a... (it’s a little dated though)

Here’s also something a bit more recent for Nginx https://darshit.dev/posts/two-way-ssl-nginx/

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by baq on Tuesday January 14, 2025 @05:09AM (#42695627)
the fact that we have to keep reinventing kerberos all the time because it doesn't speak http is starting to legitimately annoy me.
Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by rlkf on Tuesday January 14, 2025 @06:56AM (#42696196)
Firefox can be configured to use Kerberos for authentication (search for "Configuring Firefox to use Kerberos for SSO"); on Windows, Chrome is supposed to do so too by adding the domain as an intranet zone.
Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by j16sdiz on Tuesday January 14, 2025 @07:40AM (#42696507)
HTTP auth can work with kerberos.

Chrome, Firefox, Internet Explorer -- all support some form of kerberos auth in HTTP/HTTPS.

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by baq on Tuesday January 14, 2025 @07:52AM (#42696587)
I mean, I'm aware of SPNEGO etc. It's just that it was... ignored(?) by the startups/the community/google? Whatever little support there is is comparatively a worse experience than what we've got now for no really good reason.
Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by mschuster91 on Tuesday January 14, 2025 @11:02AM (#42698911)
Kerberos is old neckbeard tech, highly complex to set up, with layers upon layers of legacy garbage. Trying to get it working is ... a nightmare, I prefer even the garbagefest that is Keycloak over dealing with Kerberos. At least that just requires somewhat working DNS and doesn't barf when encountering VPNs, split horizon DNS or split tunnels.

The only places I've seen a working Kerberos setup outside of homelabs is universities (who can just throw endless amounts of free student labor power onto solving any IT problem) and large governments and international megacorps.

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by mschuster91 on Tuesday January 14, 2025 @11:00AM (#42698875)
Good luck when the TCP or SSL stack has an issue. These bugs are rare but they do exist and you're getting fucked royally if your entire perimeter defense was a basic auth prompt.

Windows and Linux have both had their fair share of network stack bugs, OpenSSL had Heartbleed and a few other bugs, and hell you might even run into bugs in Apache or whatever other webserver you are using.

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by nurettin on Tuesday January 14, 2025 @03:14PM (#42703184)
It would have taken several days to heartbleed your private key in 2013 if you also added fail2ban. Your home lab probably isn't on the high priority target list.
Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by mschuster91 on Wednesday January 15, 2025 @07:18AM (#42710074)
> Your home lab probably isn't on the high priority target list.

Yeah but these days with botnets widely available to hire? Everything is fair game and whatever you run gets indexed on Shodan and whatever almost immediately. The game has never been easier for skiddies and other low-skill attackers, and mining cryptocoins or hosting VPN exit nodes makes even a homelab a juicy target.

My homelab for example sports four third-hand HP servers with a total of about 256GB RAM and 64 CPU cores on a 200/50 DSL link. That's more than enough horsepower to cause serious damage from.

Re:Webtop – Alpine,Ubuntu,Fedora,and Arch containers contain... by nurettin on Wednesday January 22, 2025 @12:04PM (#42794929)
Heartbleed has been patched, so unless you know a serious attack vector, I'm not sure where this is going.