Secure database access for AI-generated applications

Begin with the least information the task requires. A support queue may need invoice status while a finance reviewer needs an amount. Define the two outputs separately, even if the underlying database stores both in the same table.

EngineeringBy Published 1 min read

On this page

Constrain the source identity

Use a dedicated read-only account and a view exposing the required columns and grain. Verify its effective permissions at the source. Store the database credential with the server-side connector and give each application an environment-specific authorization path.

Constrain the gateway read

Publish an explicit data product with supported fields and query rules. Request the app’s grant with a business purpose, limits and expiry. Have the data owner inspect which combinations of filtering and aggregation the app uses, particularly when a total could reveal information about one person.

Observe the SpringRoll database grant

Use a fictional dataset with known totals. Run the intended query and a request for an unapproved field. Check the observed results with the data owner, then revoke the grant and repeat a fresh read. Inspect separately any record, cache or export the app has already saved.