frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Enjoyable Tasks, Contracting and Automation [pdf]

https://www.nber.org/system/files/working_papers/w35309/w35309.pdf
1•pupperino•36s ago•0 comments

Fable in a Data Analyics Harness

https://chris-parmer.com/first-look-at-fable/
1•robertclaus•39s ago•0 comments

History of WYSIWYG editors and CMS: a timeline (2022)

https://www.tiny.cloud/blog/history-of-cms-wysiwyg/
1•peter_d_sherman•1m ago•0 comments

The Missing Link Between Agents and Applications

https://www.langchain.com/blog/agents-and-applications
1•cbromann•2m ago•0 comments

The White House Freakout over the Epstein Files

https://www.nytimes.com/2026/06/10/magazine/trump-epstein-files-white-house-vance-doj.html
4•JumpCrisscross•3m ago•0 comments

Claude Fable 5 missed a bug that Sonnet 4.6 caught

https://alikhallad.com/i-tested-claude-fable-5-against-private-benchmarks-it-has-never-seen-here-...
3•startages•3m ago•0 comments

SoftBank Attempt to Get $6B OpenAI Margin Loan Stalls

https://finance.yahoo.com/markets/stocks/articles/softbank-attempt-6-billion-openai-042525869.html
2•adriand•4m ago•0 comments

The first century Roman aqueduct at Segovia carried water into the 1970s

https://maketecheasier.com/j-the-roman-aqueduct-at-segovia-built-around-the-first-century-ad-with...
3•dxs•4m ago•0 comments

Building a serializable database in Rust, and measuring what it costs

https://www.yahyaehsan.dev/writing/building-crackeddb.html
2•YahyaEhsansub•4m ago•0 comments

Speed Is a Signal: When Faster Replies Increase Hiring Likelihood

https://pubsonline.informs.org/doi/abs/10.1287/mnsc.2024.06185
2•speckx•5m ago•0 comments

Show HN: Which F1 Team Website Is Fastest?

https://lightest.app/reports/kcokc
2•defly•5m ago•0 comments

Dimidium – terminal color scheme crafted with science

https://github.com/dofuuz/dimidium
2•microflash•6m ago•0 comments

nanoarrow

https://github.com/apache/arrow-nanoarrow
2•tosh•6m ago•0 comments

Reviewing Code in the Agent Era

https://twitter.com/penzington/status/2064387219079462948
2•cristinacordova•6m ago•0 comments

Infinite precision intermediate arithmetic: how much would break?

https://internals.rust-lang.org/t/infinite-precision-intermediate-arithmetic-how-much-would-break...
2•logickkk1•7m ago•0 comments

Social media platforms warned over role in fuelling Belfast riots

https://www.ft.com/content/4b62b71c-949a-4600-b03c-813636cf9071
2•mmarian•7m ago•0 comments

The Dynamo and the Computer: The Modern Productivity Paradox (1989) [pdf]

https://www.almendron.com/tribuna/wp-content/uploads/2018/03/the-dynamo-and-the-computer-an-histo...
4•simonpure•7m ago•0 comments

Show HN: I built a microlearning app to learn personal finance

https://finance.usescroll.app
4•maclinz•8m ago•1 comments

Show HN: Vocast – Turn articles into self-hosted podcast feeds using local TTS

https://github.com/cnrmurphy/vocast
2•8bitsout•9m ago•0 comments

I Hacked into the Worst E-Bike and Fixed It [video]

https://www.youtube.com/watch?v=hPrtVGimBYs
4•alexis-d•10m ago•0 comments

A day after discovery, Meta pulls facial recognition code from its smart glasses

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
3•thunderbong•10m ago•0 comments

Why SpaceX 2040 Revenue FCST $4.3T in highly unlikely

https://www.matteast.io/spacex-escape-velocity.html
3•meast•10m ago•0 comments

A small, self-hosted HTTP API that turns HTML, URLs and JSON into PDF/A-3a

https://pdf-ua-api.bambamboole.com/
2•robin_reala•13m ago•0 comments

Show HN: Meadow Mind – a 7B diffusion LLM plays Gym games with zero training

https://github.com/Hey-Meadow/meadow-mind
2•akaiHuang•13m ago•0 comments

Flock Blocks Itself from Wayback Machine: How Companies Can Erase Their History

https://ipvm.com/reports/flock-wayback
3•jhonovich•14m ago•0 comments

SplitShot

https://splitshot.co/
2•kolachalama•14m ago•0 comments

GeoLibre 1.0

https://geolibre.app/
5•jonbaer•15m ago•0 comments

Using biotelemetry to assess drone effects on whale sharks

https://esajournals.onlinelibrary.wiley.com/doi/10.1002/ecs2.70575
2•PaulHoule•15m ago•0 comments

CC-Ledger: Cost Controls for Claude Code

https://ccledger.dev
2•tejpalv•16m ago•1 comments

Beware the Benedict Bot

https://firstthings.com/beware-the-benedict-bot/
2•cratermoon•17m 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/