frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How to safely let LLMs query your databases via sandboxed materialized views

https://www.pylar.ai/blog/5-layer-architecture-connecting-agents-databases
1•Hoshang07•2h ago

Comments

Hoshang07•2h ago
The 5 layers of safely connecting agents to your databases:

Most AI agents need access to structured data (CRMs, databases, warehouses), but giving them database access is a security nightmare. Here's a layered architecture that addresses this:

Layer 1: Data Sources Your raw data repositories (Salesforce, PostgreSQL, Snowflake, etc.). Traditional ETL/ELT approaches to clean and transform it needs to be done here.

Layer 2: Agent Views (The Critical Boundary) Materialized SQL views that are sandboxed from the source acting as controlled windows for LLMs to access your data. You know what data the agent needs to perform it's task. You can define exactly the columns agents can access (for example, removing PII columns, financial data or conflicting fields that may confuse the LLM)

These views: • Join data across multiple sources • Filter columns and rows • Apply rules/logic

Agents can ONLY access data through these views. They can be tightly scoped at first and you can always optimize it's scope to help the agent get what's necessary to do it's job.

Layer 3: MCP Tool Interface Model Context Protocol (MCP) tools built on top of agent data views. Each tool includes: • Function name and description (helps LLM select correctly) • Parameter validation i.e required inputs (e.g customer_id is required) • Policy checks (e.g user A should never be able to query user B's data)

Layer 4: AI Agent Layer Your LLM-powered agent (LangGraph, Cursor, n8n, etc.) that: • Interprets user queries • Selects appropriate MCP tools • Synthesizes natural language responses

Layer 5: User Interface End users asking questions and receiving answers (e.g via AI chatbots)

The Flow: User query → Agent selects MCP tool → Policy validation → Query executes against sandboxed view → Data flows back → Agent responds

Agents must never touch raw databases - the agent view layer is the single point of control, with every query logged for complete observability into what data was accessed, by whom, and when.

This architecture enables AI agents to work with your data while maintaining: • Complete security and access control • Reduces LLMs from hallucinating • Agent views acts as the single control and command plane for agent-data interaction • Compliance-ready audit trails

If you're building agents that touch sensitive customer information stored across your data stack, Pylar can help!

Former EU commissioner and activists barred from US

https://www.theguardian.com/technology/2025/dec/24/us-state-department-visa-ban-former-eu-commiss...
1•robin_reala•12m ago•0 comments

Show HN: SatoriDB – embedded vector database written in Rust

1•joeeverjk•13m ago•1 comments

Handy Phone Features Can Save You Holiday Time

https://www.nytimes.com/2025/12/24/technology/personaltech/save-holiday-time-with-these-handy-sma...
1•fleahunter•20m ago•0 comments

Memory is running out, and so are excuses for software bloat

https://www.theregister.com/2025/12/23/memory_software_opinion/
2•pjmlp•22m ago•1 comments

Microarchitecture: What Happens Beneath [video]

https://www.youtube.com/watch?v=BVVNtG5dgks
1•dernett•29m ago•0 comments

Synadia response to Jepsen test of NATS 2.12.1

https://www.synadia.com/blog/jepsen-nats-2-12-1
1•Kinrany•29m ago•1 comments

No Stars

https://adactio.com/journal/22317
1•ArmageddonIt•31m ago•0 comments

Scope Creep- Why website projects don't finish on time

https://psavage.net/why-website-projects-go-off-the-rails-scope-creep-explained/
1•phillsav•32m ago•0 comments

New project idea and need company to Adopt it

https://www.google.com/
1•abdelazizElhor•36m ago•1 comments

Permission Systems for Enterprise That Scale

https://eliocapella.com/blog/permission-systems-for-enterprise/
2•eliocs•38m ago•0 comments

US sanctions EU government officials behind the DSA

https://mastodon.social/@fj/115773761468906515
4•pojntfx•46m ago•0 comments

Show HN: Free QR Code Generator – Dynamic Tracking and Custom Logo – QrBarKit

https://qrbarkit.com/
1•daniel0306•48m ago•0 comments

Microsoft rolls out hardware-accelerated BitLocker in Windows 11

https://www.bleepingcomputer.com/news/security/microsoft-rolls-out-hardware-accelerated-bitlocker...
1•thunderbong•52m ago•2 comments

LongCat Avatar: Turn Any Photo into a Talking Video

https://www.longcatavatar.net/
1•chengzeyi•52m ago•1 comments

Slate AX: Wi-Fi 6 Gigabit travel router

https://www.gl-inet.com/products/gl-axt1800/
1•cl3misch•53m ago•0 comments

Unintentional Type Theory

https://ncatlab.org/nlab/show/unintentional+type+theory
1•measurablefunc•53m ago•0 comments

Google 2025 recap: Research breakthroughs of the year

https://blog.google/technology/ai/2025-research-breakthroughs/
2•Anon84•58m ago•0 comments

UK to ban deepfake AI 'nudification' apps

https://www.bbc.co.uk/news/articles/cq8dp2y0z7wo
3•GaryBluto•1h ago•1 comments

Ten mistakes marred firewall upgrade at telco, contributing to 2 deaths

https://www.theregister.com/2025/12/19/optus_emergency_outages_cause_report/
1•GaryBluto•1h ago•0 comments

Airplane lands itself after in-flight emergency, a first for aviation automation

https://www.cnn.com/2025/12/23/us/airplane-lands-itself-first-aviation-automation
1•breve•1h ago•1 comments

Starlink satellite fails, polluting orbit with debris and falling toward Earth

https://www.theregister.com/2025/12/23/starlink_satellite_fails_debris/
4•beardyw•1h ago•0 comments

Is This Normal? My new projector's picture is dull even though I paid for 4K

1•SorabAlavi•1h ago•1 comments

Ask HN: Anybody here ever write apps for Windows Phone?

1•ge96•1h ago•0 comments

What happened next:how a rape and murder case was solved 58 years later

https://www.theguardian.com/lifeandstyle/2025/dec/24/what-happened-next-how-a-shocking-and-case-w...
2•zeristor•1h ago•2 comments

I built an AI app for deep research, reverse image search, and price comparison

https://apps.apple.com/us/app/claritycheck-deep-search-ai/id6747683917
1•mamunaso•1h ago•2 comments

Trump Admin Reinvents US Digital Services Program After Elon Musk Fired Experts

https://www.techdirt.com/2025/12/23/trump-admin-reinvents-us-digital-services-program-after-elon-...
3•beardyw•1h ago•0 comments

Appark

https://appark.ai/en
1•xuechen006•1h ago•0 comments

Next JavaScript app is hacked, you just don't know it yet

https://audits.blockhacks.io/audit/your-next-js-app-is-already-hacked
3•block_hacks•1h ago•1 comments

The dpkg shell implementation (by Ian A. Murdock)

https://www.dpkg.org/history/ancient/dpkg-0.93beta.sh
1•fisheuler•1h ago•0 comments

Nobody knows how large software products work

https://www.seangoedecke.com/nobody-knows-how-software-products-work/
1•danielfalbo•1h ago•0 comments