cd /news/ai-safety/show-hn-zenstack-access-control-at-t… · home topics ai-safety article
[ARTICLE · art-58473] src=zenstack.framer.website ↗ pub= topic=ai-safety verified=true sentiment=↑ positive

Show HN: ZenStack – access control at the ORM layer, built for coding agents

Jiasheng, co-creator of ZenStack, launched a tool that enforces access control (RBAC/ABAC/relation-based) at the ORM layer on top of Kysely, ensuring every database query is authorized regardless of who writes the code. The approach aims to reduce security risks from missing authorization checks, especially when code is generated by AI agents, and is database-agnostic unlike PostgreSQL Row-Level Security.

read1 min views1 publishedJul 14, 2026

Hi HN, I'm Jiasheng, co-creator of ZenStack.

Access control usually ends up scattered across app code instead of living with the data model — and that's riskier when the code is written by an agent, since it's easy to ship a query with a missing or incomplete authorization check. ZenStack enforces policy (RBAC/ABAC/relation-based) directly at the ORM layer, on top of Kysely, so every query gets checked the same way regardless of who wrote it and who is calling it.

Postgres RLS is an option too, but it's hard to maintain and scale, and it's Postgres-only — ZenStack's approach is database-agnostic.

One of our users, MermaidChart, put it well after launching their team feature on ZenStack: "much cleaner and easier to maintain than writing RLS policies or application-level checks that will surely leak after some time."

Happy to answer anything.

Comments URL: [https://news.ycombinator.com/item?id=48903199](https://news.ycombinator.com/item?id=48903199)

Points: 1

── more in #ai-safety 4 stories · sorted by recency
── more on @zenstack 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-zenstack-acc…] indexed:0 read:1min 2026-07-14 ·