frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

ICE detains five-year-old Minnesota boy arriving home, say school officials

https://www.theguardian.com/us-news/2026/jan/21/ice-arrests-five-year-old-boy-minnesota
2•0x54MUR41•1m ago•0 comments

Seeking Co-Founder for Declarative Application Editor

1•mwhite•6m ago•0 comments

Authorization Before Retrieval: Making RAG Safe by Construction

https://www.windley.com/archives/2026/01/authorization_before_retrieval_making_rag_safe_by_constr...
1•mooreds•14m ago•0 comments

Week 1: EE 292P Atoms, Bits, and the National Interest

https://hnvr.medium.com/week-1-ee-292p-atoms-bits-and-the-national-interest-the-technology-enviro...
1•malchow•15m ago•0 comments

Why doing a mix of exercise could be the key to longer life

https://www.bbc.com/news/articles/cn0y9pqe2zro
2•kareemm•16m ago•0 comments

Monitor Cron Jobs Without Migration – DeadManPing

https://www.deadmanping.com/blog/monitor-cron-jobs
1•BlackPearl02•18m ago•0 comments

Starting a Startup at 25, 35, or 45 Is Not the Same Decision

4•alx_sukhanov•28m ago•1 comments

We spent 5 YEARS building New York City in Minecraft [video]

https://www.youtube.com/watch?v=ZouSJWXFBPk
1•KolmogorovComp•28m ago•0 comments

Rent-Only Copyright Culture Makes Us All Worse Off

https://www.eff.org/deeplinks/2026/01/rent-only-copyright-culture-makes-us-all-worse
5•hn_acker•28m ago•0 comments

Show HN: Memcachex, a high-performance Memcached client for Go

https://github.com/atsegelnyk/memcachex
1•atsegelnyk•29m ago•1 comments

Utah Continues to Ban More Books, Even as It Racks Up More Lawsuits

https://www.techdirt.com/2026/01/22/utah-continues-to-ban-more-books-even-as-it-racks-up-more-law...
3•hn_acker•29m ago•0 comments

Kona: Energy-Based Models (EBMs) for AI Reasoning

https://logicalintelligence.com/kona-ebms-energy-based-models
2•gfortaine•31m ago•0 comments

Revealjs-skill: a better way for Claude to make presentations

https://github.com/ryanbbrown/revealjs-skill
1•ryanbbrown•33m ago•0 comments

Stunnel

https://www.stunnel.org/
2•firesteelrain•34m ago•0 comments

Vibe a Guitar Pedal

https://polyend.com/endless/
4•mulhoon•35m ago•1 comments

Four Ingredients for Successful Retrofitting

https://bmin.ai/retrofitting/
1•nl•36m ago•0 comments

TikTok Strikes Deal for New U.S. Entity, Ending Long Legal Saga

https://www.nytimes.com/2026/01/22/technology/tiktok-deal-oracle-bytedance-china-us.html
5•jbegley•41m ago•0 comments

Why medieval city-builder video games are historically inaccurate (2020)

https://www.leidenmedievalistsblog.nl/articles/why-medieval-city-builder-video-games-are-historic...
25•benbreen•41m ago•5 comments

WAForth: Forth Interpreter+Compiler for WebAssembly

https://github.com/remko/waforth
1•publicdebates•45m ago•0 comments

Clean Web UI for Steve Yegge's Beads

https://github.com/nmelo/bdui
1•nmelo•45m ago•0 comments

Apple's John Ternus Takes over Design in Latest CEO Succession Move – MacRumors

https://www.macrumors.com/2026/01/22/john-ternus-apple-design-lead/
1•latexr•45m ago•0 comments

Guiding the Future of Chainguard OS: Announcing the FUD Committee

https://www.chainguard.dev/unchained/guiding-the-future-of-chainguard-os-announcing-the-fud-commi...
1•milkglass•46m ago•0 comments

Back to Bellevue

https://theamericanscholar.org/back-to-bellevue/
1•prismatic•46m ago•0 comments

Arkansas inmates restricted from receiving physical books, other media directly

https://arkansasadvocate.com/2025/12/19/arkansas-inmates-restricted-from-receiving-physical-books...
2•hn_acker•47m ago•2 comments

The Physicians of Decay

https://tantaman.substack.com/p/the-physicians-of-decay
1•tantaman•47m ago•0 comments

Yabai: A tiling window manager for macOS based on binary space partitioning

https://github.com/asmvik/yabai
2•behnamoh•47m ago•0 comments

Metastable Failures and Interactions Between Systems

https://charap.co/on-metastable-failures-and-interactions-between-systems/
3•PaulHoule•48m ago•0 comments

Node.js: New HackerOne Signal Requirement for Vulnerability Reports

https://nodejs.org/en/blog/announcements/hackerone-signal-requirement
2•latexr•49m ago•0 comments

Ispc: Origins (Part 1)

https://pharr.org/matt/blog/2018/04/18/ispc-origins
1•luu•50m ago•0 comments

Penis Size, height, and body shape influence assessment of male attractiveness

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3003595
4•doener•51m ago•1 comments
Open in hackernews

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

2•zwnow•9mo 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•9mo 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•9mo 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•9mo 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•9mo 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/