frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Vitalik Says Ethereum Just Solved Crypto's Biggest Problem

https://cryptonews.com/news/vitalik-says-ethereum-just-solved-cryptos-biggest-problem/
1•ogogmad•1m ago•0 comments

How to Vulkan in 2026

https://www.howtovulkan.com/
1•pjmlp•4m ago•0 comments

The Most Expensive Lettuce in Hawaii? Larry Ellison's $24/Lb Experiment

https://beatofhawaii.com/the-most-expensive-lettuce-in-hawaii-billionaire-larry-ellisons-24-lb-ex...
1•tosh•4m ago•0 comments

Donut Lab – first all-solid-state battery. Production Ready Today

https://www.donutlab.com/
1•kevinak•7m ago•0 comments

F3: The Open-Source Data File Format for the Future

https://github.com/future-file-format/F3
1•tosh•7m ago•0 comments

Pope Leo calls for Venezuela to remain an independent country

https://www.reuters.com/world/americas/pope-leo-calls-venezuela-remain-an-independent-country-202...
2•sipofwater•7m ago•1 comments

YouTube Censorship (Patrick Boyle)

https://www.youtube.com/watch?v=AJP6K2_rr90
1•ziptron•10m ago•0 comments

Checklist.design A collection of the best design practices

https://www.checklist.design/
1•BaudouinVH•14m ago•0 comments

Starlink goes dark in Uganda just days before elections

https://itweb.africa/article/starlink-goes-dark-in-uganda-just-days-before-elections/G98YdMLGPYZ7...
2•NewCzech•15m ago•0 comments

Danish PM tells Trump to stop 'threats' against Greenland

https://www.bbc.com/news/articles/c4g0zg974v1o
5•saubeidl•16m ago•0 comments

A "bridge month" cost to run Venezuela:$1.5B–$3.0B/month(public sources, charts)

https://www.thepricer.org/how-much-would-running-venezuela-cost-per-month/
2•jasonmomnah•17m ago•4 comments

Expensive food makes children fat

https://www.uni-bonn.de/en/news/001-2026
1•leobdkr•19m ago•0 comments

The Hive Mind

https://jacquesmattheij.com/the-hive-mind/
1•rcarmo•23m ago•0 comments

Ask HN: Would you back a standards proposal to taint AI output?

1•jacquesm•24m ago•0 comments

The Future of Coding Agents

https://steve-yegge.medium.com/the-future-of-coding-agents-e9451a84207c
1•TheAnkurTyagi•29m ago•0 comments

Secondhand Truth

https://voidtalker.com/secondhand-truth/
1•bovermyer•30m ago•0 comments

What we're talking about, when we talk about data destruction

https://free-dissociation.com/blog/posts/2019/01/what-were-talking-about-when-we-talk-about-data-...
1•fanf2•30m ago•0 comments

The French university where spies go for training

https://www.bbc.co.uk/news/articles/c98nqeqnylro
1•mellosouls•31m ago•0 comments

Show HN: I made an open-source app to interrupt nail biting

https://github.com/vaitko/stopbitingnails.app
1•vaitko•39m ago•0 comments

The Year in Computer Science

https://www.quantamagazine.org/the-year-in-computer-science-20251216/
1•isaacfrond•41m ago•0 comments

Recovering depth from images using Markov Random Fields

https://nghiaho.com/?page_id=1366
1•vitaelabitur•41m ago•0 comments

GNU Ddrescue 1.30 Released

https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00001.html
3•guiambros•48m ago•0 comments

Why I Cold-Called President Trump at 4:30 in the Morning

https://www.nytimes.com/2026/01/03/insider/trump-interview-venezuela-nyt-reporter.html
1•notmysql_•52m ago•1 comments

A Practical guide to building a parser in Go

https://gagor.pro/2026/01/a-practical-guide-to-building-a-parser-in-go/
1•todsacerdoti•54m ago•0 comments

China Urges United States to Release Venezuelan President Maduro

https://medium.com/@omshree0709/china-urges-united-states-to-release-venezuelan-president-maduro-...
3•OmShree0709•56m ago•1 comments

Show HN: Model2data – generate realistic synthetic data from data models

https://github.com/JB-Analytica/model2data
1•jarichb•1h ago•0 comments

How Twitch Tamed a Million Lines of TypeScript

https://www.joshribakoff.com/blog/lint-snapshots/
1•joshribakoff•1h ago•0 comments

Perp DEXs emerge as crypto's strongest growth story in 2025

https://altcoindesk.com/perspectives/expert-opinions/perp-dexs-emerge-as-cryptos-strongest-growth...
1•AishwaryaTiwari•1h ago•0 comments

How does a president becomes a dictator? By executive order

https://augustafreepress.com/news/john-whitehead-how-does-a-president-becomes-a-dictator-by-execu...
4•allgirl•1h ago•3 comments

Why Simple Everyday Objects Are Impossible to Make [video]

https://www.youtube.com/watch?v=pj0ze8GnBKA
1•areoform•1h ago•0 comments
Open in hackernews

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

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