frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Is this an worse moment for a math career?

https://mathoverflow.net/questions/511484/is-this-an-even-worse-moment-for-a-math-career
1•bananaflag•2m ago•0 comments

The Fall of the Theorem Economy

https://davidbessis.substack.com/p/the-fall-of-the-theorem-economy
2•tmp10423288442•4m ago•1 comments

When AI can write your code, do you still need a CMS?

https://www.bitsandletters.com/ideas/do-you-still-need-a-cms-with-ai
1•demaree•5m ago•0 comments

Pica 10.0 has been released, delivering the first major modernization update

https://github.com/nodeca/pica
1•javatuts•5m ago•0 comments

Mind-Blowing Growth Is About to Propel Anthropic into First Profitable Quarter

https://www.wsj.com/tech/ai/mind-blowing-growth-is-about-to-propel-anthropic-into-its-first-profi...
4•sigmar•6m ago•1 comments

Temporal Primer – Building Long-Running Systems

https://arpitbhayani.me/blogs/temporal-primer/
1•Samarrrtthh•6m ago•0 comments

Prompt Injection in a Brazilian Courtroom: When the Attack Left the Lab

https://www.pentesty.co/blog/prompt-injection-brazil-labor-court-2026
1•davikr•8m ago•0 comments

Trump Sued Himself and Walked Away with a $100M Tax Debt Erased

https://www.techdirt.com/2026/05/20/trump-sued-himself-and-walked-away-with-a-100-million-tax-deb...
3•latexr•11m ago•0 comments

Congress Banned a Gun Registry. AI Doesn't Need One

https://medium.com/statute-circuit/congress-banned-a-gun-registry-ai-doesnt-need-one-8c1beb9e7374
3•delschlangen•12m ago•1 comments

How to Set Up a Remote MCP Server for Your SaaS

https://docsalot.dev/blog/how-to-set-up-a-remote-mcp-server-for-your-saas
2•fazkan•12m ago•0 comments

Show HN: Git-based front-end interface for Hugo

https://github.com/arashthr/hugo-flow
2•arashThr•13m ago•0 comments

SK Hynix flooded with offers from Big Tech to secure memory chips

https://www.reuters.com/world/asia-pacific/sk-hynix-flooded-with-unprecedented-offers-big-tech-fi...
2•p_stuart82•13m ago•0 comments

Researchers Design and Build First Artificial Protein (2003)

https://www.hhmi.org/news/researchers-design-and-build-first-artificial-protein
2•noleary•15m ago•0 comments

Nvidia commits $90B to AI deals

https://www.semafor.com/article/05/20/2026/nvidia-commits-90-billion-to-ai-deals
2•logickkk1•15m ago•0 comments

Sam Altman makes 'mic drop' offer to every Y Combinator startup

https://techcrunch.com/2026/05/20/sam-altman-makes-mic-drop-offer-to-every-y-combinator-startup/
2•evo_9•17m ago•0 comments

Starting June 1 Copilot code review runs will consume minutes on GitHub

https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing
2•rcy•18m ago•0 comments

Show HN: Visual Studio for Cloud

https://github.com/light-cloud-com/ice
2•julia-kafarska•19m ago•0 comments

Samsung vs. MPEG LA appeals arguments [video]

https://www.youtube.com/watch?v=ixVEsTbt9LU
1•tehwebguy•19m ago•1 comments

The hermeneutic circle: a key to critical reading

https://nesslabs.com/hermeneutic-circle
1•andsoitis•24m ago•0 comments

Cloudflare CEO on how he chooses which employees to replace with AI

https://www.wsj.com/opinion/how-i-choose-which-cloudflare-employees-to-replace-with-ai-40a197e5
4•oradwan•24m ago•0 comments

A beginner-friendly approach to Pratt Parsing

https://washingtonramos.com/posts/1
2•PotatoFarmsKing•25m ago•1 comments

LocalFlow, run and protect n8n from laptop to cloud

https://github.com/karimbaidar/n8n-localflow
2•baidarkarim•25m ago•0 comments

NTSB Animation for UPS flight 2976 [video]

https://www.youtube.com/watch?v=iWkLZjJXaos
2•yupmat•26m ago•0 comments

Starship's Twelfth Flight Test

https://www.spacex.com/launches/starship-flight-12
19•pantalaimon•28m ago•7 comments

PostgreSQL backup tool gets some backup of its own after maintainer sounds alarm

https://www.theregister.com/databases/2026/05/20/postgresql-backup-tool-gets-some-backup-of-its-o...
2•Bender•29m ago•1 comments

Adding Foreground Tab Tracking to the Chrome Devtools Protocol

https://www.browserbase.com/blog/cdp-foreground-tab-tracking
1•nikisweeting•30m ago•1 comments

Bye-bye, Gemini CLI; Google's gone and swapped you for a closed-source AI

https://www.theregister.com/ai-ml/2026/05/20/bye-bye-gemini-cli-google-nudges-devs-toward-antigra...
1•Bender•30m ago•0 comments

NASA's Psyche spacecraft returns unfamiliar views of a familiar world

https://arstechnica.com/space/2026/05/nasas-psyche-spacecraft-returns-unfamiliar-views-of-a-famil...
1•Bender•31m ago•0 comments

Intuit to cut 17% of global jobs to streamline operations

https://www.reuters.com/business/world-at-work/intuit-cut-17-global-jobs-streamline-operations-me...
3•DGAP•32m ago•0 comments

What I Learned Building 8 Tbps of CDN

https://elijah.com.au/writing/built-8tbps-cdn/
1•ghuntley•32m ago•0 comments
Open in hackernews

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

2•zwnow•1y 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•1y 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•1y 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•1y 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•1y 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/