frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How do you catch schema drift and security gaps in Firestore?

1•Madia120•1h ago
Schema drift happens when:

    User documents start with { name: "John", email: "john@..." }

    Later, someone adds { name: "Jane", email: "jane@...", profile: {...} }

    Even later: { name: "Bob", email: "bob@...", profile: "basic" }
Now profile is sometimes an object, sometimes a string, sometimes missing entirely.

When this breaks:

javascript// This works for some docs, fails for others user.profile.avatar // TypeError: Cannot read property 'avatar' of undefined

Security gaps emerge because:

    You write rules assuming a consistent schema: allow read: if resource.data.profile.role == "admin"

    But when profile is a string or missing, this rule behaves unexpectedly (usually throwing evaluation errors and blocking access for legitimate users, or worse, leaving loopholes if rules are overly permissive).

    Collections get added without proper rules (bankInfo, userSecrets, etc.)

    Test collections (debugUsers, tempData) stay in production with open access.
The real problem: Firestore doesn't enforce schemas, and there's no built-in way to audit for these issues across your entire database.

I got burned by this enough times that I built an open-source CLI tool to scan for schema inconsistencies and security red flags:

npx lintbase scan firestore --key ./service-account.json

It samples your collections, flags type mismatches, and pattern-matches collection names against common sensitive data indicators.

GitHub: github.com/lintbase/lintbase

Question for the community: How do you currently catch these issues in your Firestore projects? Manual audits? Or do you just wait for production bugs?

The Triumph of the Moon: Ronald Hutton

https://www.thepsmiths.com/p/guest-review-the-triumph-of-the-moon
1•barry-cotter•46s ago•0 comments

Traffic Light Louvres

http://orindevon.blogspot.com/2016/10/the-best-angle-for-traffic-light-louvres.html
1•valzevul•54s ago•0 comments

Show HN: You don't have to code MCPs with Earl

https://github.com/brwse/earl
1•jrandolf•2m ago•0 comments

Local governments provide proof that polarization is not inevitable

https://theconversation.com/local-governments-provide-proof-that-polarization-is-not-inevitable-2...
1•PaulHoule•2m ago•0 comments

Show HN: C9watch – macOS menu bar app to monitor all Claude Code sessions

https://github.com/minchenlee/c9watch
1•minchenlee•4m ago•0 comments

Filesystems Are Having a Moment

https://madalitso.me/notes/why-everyone-is-talking-about-filesystems/
1•rafaepta•4m ago•0 comments

BMW using Patents and Trademark to Make DIY Car Repairs Much Harder

https://www.jalopnik.com/2093749/bmw-patents-way-to-make-diy-car-repairs-harder/
1•ryan_j_naughton•4m ago•0 comments

Leaker Says Apple's Lower-Cost MacBook Will Have These 8 Limitations

https://www.macrumors.com/2026/02/25/lower-cost-macbook-alleged-limitations/
1•speckx•5m ago•0 comments

Bash commands outperform vector search for complex questions

https://chrisweves.com/posts/bash-outperforms-vector-search
1•Weves•6m ago•0 comments

AI Agents Need Permission Slips – NDC London 2026

https://www.youtube.com/watch?v=NI6sTgOlK74
1•iosifache•7m ago•0 comments

MarkFlow

https://markdowntoword.pro
1•sosojustdo•7m ago•0 comments

AI-Generated Products Won't Trigger a SaaSpocalypse

https://pawelbrodzinski.substack.com/p/ai-generated-products-wont-trigger
1•flail•8m ago•0 comments

RAGScore – Evaluate RAG pipelines in 2 commands, works offline with Ollama

https://github.com/HZYAI/RagScore
1•antitopquark16•8m ago•1 comments

OpenAI Raises $110B

https://www.wsj.com/tech/openai-raises-110-billion-a2a34d23
1•harscoat•8m ago•0 comments

Show HN: Skills to share and reuse workflows with the community (open source)

https://github.com/epismoai/skills
1•hirokiyn•8m ago•0 comments

OpenAI closes $110B funding round in largest private financing

https://www.cnbc.com/2026/02/27/open-ai-funding-round-amazon.html
1•elsewhen•9m ago•0 comments

Show HN: Open-source agentic video editor for dev tools and side projects

https://subconscious-remotion-demo.vercel.app/
1•ohstep23•10m ago•0 comments

The MySQL-to-Postgres Migration That Saved $480K/Year

https://medium.com/@dusan.stanojevic.cs/the-mysql-to-postgres-migration-that-saved-480k-year-a-st...
1•dusanstanojevic•11m ago•0 comments

Nano Banana 2 – Google's Free 4K AI Image Generator

https://nanobananaflash.io/image/nano-banana-2
2•xbaicai•11m ago•1 comments

Block Cuts 40% of Its Work Force Because of Its Embrace of A.I

https://www.nytimes.com/2026/02/26/technology/block-square-job-cuts-ai.html
1•fauria•11m ago•0 comments

Let's Talk About the Humanoid Robot in the Room

https://matthiasplappert.com/blog/2026/humanoid-robot-in-the-room
1•mplappert•12m ago•0 comments

Show HN: Crewship – Deploy AI agents to production in one command

https://www.crewship.dev/
5•vhalasi•13m ago•0 comments

How Brothel Workers in Nevada Just Made Labor History

https://www.thenation.com/article/economy/sheris-ranch-union-united-brothel-workers/
1•randycupertino•13m ago•0 comments

Show HN: Rasteret-library for fast table like access to Satellite Imagery

https://github.com/terrafloww/rasteret
2•sid_tf•13m ago•0 comments

OpenAI's Sam Altman Calls for De-Escalation in Anthropic Showdown with Hegseth

https://www.wsj.com/tech/ai/openais-sam-altman-calls-for-de-escalation-in-anthropic-showdown-with...
1•jscottmiller•14m ago•0 comments

Show HN: Tswap–Yubikey-backed secret injection for IaC and AI-assisted workflows

https://github.com/stevedcc/TokenSwap
1•stevedcc•14m ago•0 comments

Energym [video]

https://www.youtube.com/watch?v=zdkBUuWCZg4
2•amai•15m ago•0 comments

The Martians of Budapest

https://www.cantorsparadise.com/the-martians-of-budapest-618d62612d3d
1•tzury•15m ago•0 comments

Ask HN: Why do so many digital banks have such unreliable APIs?

1•am3101•16m ago•0 comments

Show HN: My app got featured in 2 German publications and crossed $1K in sales

https://getsteps.app
3•hieu_dinh•18m ago•0 comments