frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The delicious flavour with a toxic secret (2017)

https://www.bbc.com/future/article/20170620-the-delicious-flavour-with-a-toxic-secret
1•thunderbong•2m ago•0 comments

The Advent of Compiler Optimisations 2025

https://xania.org/202511/advent-of-compiler-optimisation
1•nly•3m ago•0 comments

Improve your code by separating mechanism from policy

https://lambdaisland.com/blog/2022-03-10-mechanism-vs-policy
1•moonlessday•3m ago•0 comments

Worksheet for Harada Method – PDF, PNG, and LaTeX Code

https://www.adithyan.io/blog/harada-method-worksheet
1•adithyan_win•7m ago•0 comments

Show HN: Listiary – A FOSS wiki engine built on nested, interactive lists

https://github.com/listiary/Listiary
1•demon_of_reason•11m ago•0 comments

Joscha Bach in Epstein Files

https://journaliststudio.google.com/pinpoint/search?collection=092314e384a58618
1•Rebuff5007•22m ago•1 comments

UK's first small nuclear power station to be built in north Wales

https://www.bbc.com/news/articles/c051y3d7myzo
3•ksec•22m ago•0 comments

Speedrunning a CPU: RISC-V in a Week

https://daymare.net/blogs/speedrunning-a-cpu/
2•daymare•23m ago•0 comments

The France National Intelligence Strategy 2025

https://www.dirittoue.info/the-france-national-intelligence-strategy-2025/
1•kaven1234•25m ago•0 comments

Markdown files not openable because of GitHub Copilot (VSCode)

https://github.com/microsoft/vscode/issues/277450
1•pjmlp•33m ago•1 comments

Why I Don't Need a Steam Machine

https://brainbaking.com/post/2025/11/why-i-dont-need-a-steam-machine/
24•ingve•40m ago•20 comments

Maybe You're Not Actually Trying

https://usefulfictions.substack.com/p/maybe-youre-not-actually-trying
3•eatitraw•47m ago•0 comments

Show HN: TunnelBuddy – Share your internet via HTTPS proxy over WebRTC

https://www.tunnelbuddy.net/
1•xrmagnum•52m ago•1 comments

Ten years and 100B dollars later: where is Meta's metaverse?

https://www.heise.de/en/background/Ten-years-and-100-billion-dollars-later-where-is-Meta-s-metave...
2•Prunkton•59m ago•3 comments

Comparing the run-time performance of Fil-C and ASAN

http://bannalia.blogspot.com/2025/11/comparing-run-time-performance-of-fil-c.html
1•ingve•1h ago•0 comments

Show HN: HashCodeTools – 17 Free Privacy-Focused Dev Tools

https://hashcodetools.com/
1•rsunnythota•1h ago•0 comments

Meta Replaced the Native WhatsApp for Windows 11 with a Shitty Web App

https://daringfireball.net/2025/11/meta_whatsapp_windows_shitty_web_app
2•SoKamil•1h ago•0 comments

Examining the cognitive and mental health correlates of short-form video use

https://www.researchgate.net/publication/397584857_Feeds_feelings_and_focus_A_systematic_review_a...
1•ksec•1h ago•0 comments

Personal Business

https://www.are.na/editorial/personal-business
1•vinhnx•1h ago•0 comments

Poet-Diplomat

https://en.wikipedia.org/wiki/Poet-diplomat
1•sph•1h ago•0 comments

Rusty sudo holes quickly welded shut

https://www.theregister.com/2025/11/13/ubuntu_rust_sudo_hole/
2•weinzierl•1h ago•1 comments

New Vatican document examines potential and risks of AI (Jan, 2025)

https://www.holyseegeneva.org/news/new-vatican-document-examines-potential-and-risks-of-ai/
2•totetsu•1h ago•0 comments

Day 45, Term Sheet Signed

https://supremefounder.com/term-sheet-signed.html
1•fmfamaral•1h ago•0 comments

Tube: A subway route planner in Dyalog APL (2011)

https://dfns.dyalog.com/tube_n_index.htm
1•shawa_a_a•1h ago•0 comments

Show HN: Facebook Album Downloader

https://chromewebstore.google.com/detail/facebook-album-downloader/dooboogmafemmhgfpkgjnliiplbipbgm
1•qwikhost•1h ago•0 comments

Western Digital's Ultrastar Data102 Holds 102 Drives for Up to 3.26 PB Capacity

https://www.techpowerup.com/342924/western-digitals-ultrastar-data102-holds-102-drives-for-up-to-...
1•ksec•1h ago•1 comments

An exposed .git folder let us dox a phishing campaign

15•spirovskib•1h ago•3 comments

Why Reality Has a Well-Known Math Bias

https://linch.substack.com/p/why-reality-has-a-well-known-math
1•eatitraw•1h ago•0 comments

What predicts involuntary singlehood: effects of self-esteem/desirable traits

https://psycnet.apa.org/record/2022-66533-001
4•mpweiher•1h ago•2 comments

Show HN: Wiki&Database for Escape from Duckov Game

https://duckovwiki.org
1•WanderZil•1h ago•0 comments
Open in hackernews

Ask HN: Why is web auth not a solved issue?

2•zwnow•6mo ago
Personally, every project I start, I quit due to not being comfortable with the auth implementation.

I've been into web development for 4 years now. During my research regarding auth in this timeframe, I have found a million reasons on why I should not roll it myself. The reason is always it being to difficult to implement, too much responsibility and basically no matter how I'd do it, it would be unsafe.

The general consensus among web developers seems to be to just let a third party do it. And I understand the reasoning, they are experts and have decades of experience on that specific thing. It makes sense as long as you're fine with third party service dependencies for your application. However, I don't want that. I do not feel comfortable submitting my users data to tech giants for obvious reasons.

I am wondering why it's so difficult to implement secure auth? Why can frameworks like Laravel or Phoenix just generate auth solutions? Why should I trust them, if everyone is saying I shouldn't roll it myself?

After all, if Laravels or Phoenix generated auth isn't safe, I am the one taking responsibility anyway, no?

To my understanding web auth has been an issue for decades now, why aren't there protocols in place to solve it? Or if they are, why aren't they talked about a lot?

Considering how often I read about auth breaches with the big players in the game (Firebase as an example) I am not comfortable trusting third parties with that task either.

So how is one supposed to do it? There are so many JWT tutorials on youtube, but apparently JWTs aren't safe either. Then there are session cookies, which also aren't safe? Why is that?

I am also not talking about authorization. I specifically mean authentication. If I wanted a micro blog platform where users can log into their accounts and write about stuff, how would I make sure it's secure without having to trust third parties, especially big tech companies who repeatedly prove they cant be trusted over and over again?

Comments

arrowsmith•6mo ago
> if Laravels or Phoenix generated auth isn't safe

What makes you think they're not safe? Zillions of successful apps have been built using Laravel and Phoenix and (afaik) no-one has hacked their auth code yet. The code is open-source for anyone to inspect for vulnerabilities. I wouldn't feel unsafe using them.

You seem to misunderstand what it means to "roll your own auth".

"Don't roll your own auth" doesn't mean "use a third-party auth provider". It means "use an existing, expert-made auth solution and don't try to write it yourself."

That can be a third-party provider like Firebase, it can be a code dependency like Rails's Devise, it can be generated by `phx.gen.auth` in Phoenix, it doesn't matter - the point is that you're using a tried-and-tested auth solution written by someone who knows what they're doing.

Writing your own auth code is generally a bad idea because it's complicated, time-consuming and easy to get wrong. But there are zillions of off-the-shelf solutions you can use that have been created by security experts and battle-tested in thousands of production apps. As far as I'm concerned, web auth is a solved problem.

zwnow•6mo ago
Interesting. When I generate auth for Phoenix the API endpoints are not piped through any security pipes. Only the browser endpoints. Why wouldn't I secure my API endpoints? The same kind of requests that are made for browser requests are sent to the API routes, so this is really confusing.
arrowsmith•6mo ago
Ah yes. `phx.gen.auth` generates a cookie-based auth system, which is fine for the :browser pipeline but it's not generally what you want for a JSON API.

The Phoenix docs include a suggestion for how you can extend `phx.gen.auth` to add token-based authentication to your API: https://hexdocs.pm/phoenix/api_authentication.html

(No, this isn't "rolling your own auth" either, it's using someone else's pre-written auth code.)

johncoltrane•6mo ago
> The general consensus among web developers seems to be to just let a third party do it.

Outside of personal projects, third-party auth providers must be audited (think GDPR or PIPL), budget must be allowed, contracts signed, etc. so web developers rarely, if ever, have their say on the matter. The decision is taken long before anyone wrote a single line of code. From a project management perspective, it's an easy trade-off to make: one sprint for integrating Okta versus who knows how many for badly implementing something that requires a level of expertise that no one on the team has reached.

For personal projects, the trade-off is a bit different. Resources are scarce so, even if implementing auth is actually not very complicated(1) and can even be quite fun, there are probably more immediately interesting things to do. So you integrate a third-party solution in a wednesday night and you move on.

[1] https://thecopenhagenbook.com/