# How do you make AI agents safe to query a Postgres database?

*Domain Solution · Postgres*

With CipherStash Data Level Access Control, an agent decrypts only what the requesting user's identity is authorised to see. Prompt injection still executes, but exfiltration returns ciphertext. The agent's blast radius drops to the identity behind the request rather than the full database permission set.

## Who's asking

Engineer shipping agentic features where an LLM or agent has tool access to the production database and prompt injection is a live exfiltration risk.

## Why CipherStash is a fit

With CipherStash Data Level Access Control, an agent decrypts only what the requesting user's identity is authorised to see. Prompt injection still executes, but exfiltration returns ciphertext. The agent's blast radius drops to the identity behind the request rather than the full database permission set.

## Get started

- [View docs](https://cipherstash.com/docs)
- [Book a discovery call](https://calendly.com/cipherstash-gtm/cipherstash-discovery-call)

## Related questions

- [How do you encrypt PII in Postgres?](https://cipherstash.com/solutions/how-do-you-encrypt-pii-in-postgres.md)
- [How do you encrypt sensitive columns in Postgres without losing search?](https://cipherstash.com/solutions/how-do-you-encrypt-sensitive-columns-in-postgres-without-losing-search.md)
- [How do you get an audit trail of who accessed data in Postgres?](https://cipherstash.com/solutions/how-do-you-get-an-audit-trail-of-who-accessed-data-in-postgres.md)
- [How do you replace row-level security in Postgres?](https://cipherstash.com/solutions/how-do-you-replace-row-level-security-in-postgres.md)
- [How do you stop a database breach from exposing customer data in Postgres?](https://cipherstash.com/solutions/how-do-you-stop-a-database-breach-from-exposing-customer-data-in-postgres.md)
- [How do you make AI agents safe to query a Crunchy Bridge database?](https://cipherstash.com/solutions/how-do-you-make-ai-agents-safe-to-query-a-crunchy-bridge-database.md)
- [How do you make AI agents safe to query a DigitalOcean Managed Postgres database?](https://cipherstash.com/solutions/how-do-you-make-ai-agents-safe-to-query-a-digitalocean-managed-postgres-database.md)
- [How do you make AI agents safe to query a Fly.io Postgres database?](https://cipherstash.com/solutions/how-do-you-make-ai-agents-safe-to-query-a-flyio-postgres-database.md)
- [How do you make AI agents safe to query a Google Cloud SQL Postgres database?](https://cipherstash.com/solutions/how-do-you-make-ai-agents-safe-to-query-a-google-cloud-sql-postgres-database.md)
- [How do you make AI agents safe to query a Heroku Postgres database?](https://cipherstash.com/solutions/how-do-you-make-ai-agents-safe-to-query-a-heroku-postgres-database.md)

