> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Prod AI Database security model

> How Prod AI Database isolates app data, limits AWS permissions, and keeps database access inside your VPC.

## Architecture and trust boundary

On [Managed BYOC](https://docs.prod.ai/deployment/cloud-prem/aws.md), both the control plane and your [data planes](https://docs.prod.ai/deployment/architecture/data-planes.md) run inside your AWS account under separate identities. For Prod AI Database, every AWS infrastructure action and every SQL query runs exclusively from the data plane inside your VPC:

* **No inbound network access required.** The data plane polls the control plane over outbound HTTPS; the control plane never opens an inbound connection to your Aurora clusters.
* **Data stays inside your VPC.** Application databases run in private subnets with no public endpoint. Security groups allow database connections only from the data plane that owns the pool.
* **Scoped AWS IAM permissions.** Provisioning and runtime database connections use separate least-privilege IAM roles scoped by resource tags and VPC boundaries. The control plane is not a principal in either role's trust policy.

## Per-app isolation

Each application gets its own logical PostgreSQL database and dedicated least-privilege runtime database role:

* **IAM database authentication.** At query time, the data plane authenticates to Aurora using short-lived AWS IAM authentication tokens (15-minute expiry) scoped to that specific application's database role rather than shared static passwords.
* **No cross-app access.** One app's runtime role can access only its own logical database and cannot read or modify another app's tables.
* **Environment separation.** Development and production databases live in separate logical databases (and separate VPCs/accounts when you run separate dev and production data planes), so builder edits never touch production data.

## Schema migrations and code security

* Schema migrations are stored as versioned `.sql` files inside the app and run under a dedicated migration flow during development and publish.
* No builder-supplied SQL executes as a cluster superuser.
* Every cluster is encrypted at rest (SSE-S3/AWS-managed KMS or your own KMS key) and enforces TLS in transit.
* All provisioning events, schema migrations, and access changes are recorded in [Audit logs](https://docs.prod.ai/admin/audit-logs.md).

For a detailed IAM policy review or security questionnaire covering your Managed BYOC deployment, contact your Prod AI deployment team.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.