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

*Domain Solution · Railway 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 sensitive columns in Railway Postgres without losing search?](https://cipherstash.com/solutions/how-do-you-encrypt-sensitive-columns-in-railway-postgres-without-losing-search.md)
- [How do you get an audit trail of who accessed data in Railway Postgres?](https://cipherstash.com/solutions/how-do-you-get-an-audit-trail-of-who-accessed-data-in-railway-postgres.md)
- [How do you replace row-level security in Railway Postgres?](https://cipherstash.com/solutions/how-do-you-replace-row-level-security-in-railway-postgres.md)
- [How do you stop a database breach from exposing customer data in Railway Postgres?](https://cipherstash.com/solutions/how-do-you-stop-a-database-breach-from-exposing-customer-data-in-railway-postgres.md)
- [How do you achieve HIPAA-compliant encryption on Railway Postgres?](https://cipherstash.com/solutions/how-do-you-achieve-hipaa-compliant-encryption-on-railway-postgres.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)
- [How do you make AI agents safe to query a Neon database?](https://cipherstash.com/solutions/how-do-you-make-ai-agents-safe-to-query-a-neon-database.md)

