Security and permissions
An AI app never gets your VaultLens password. You sign in to VaultLens yourself and approve a connection with the permissions you choose. You can disconnect it at any time.
Approving a connection
When you add VaultLens to an AI app, the app sends you to VaultLens to sign in. VaultLens then shows an approval screen titled Connect … to VaultLens, with the AI app’s name.
The screen shows:
- the AI app’s name and the site it returns to, for example
claude.ai; - the workspace it will use and the account you are signed in with;
- What it can do: the permissions, with the ones the AI app asked for already ticked;
- Apps it can see: either All apps, including ones connected later, or the apps you tick.
Click Approve to connect, or Cancel to refuse. The AI app can only do what your role allows, and only what you tick. Only approve apps you started connecting yourself.
A sign-in request is good for 15 minutes. If it expires, start connecting again from the AI app.
The “unverified app” warning
Any AI app can register itself with VaultLens and choose its own name. VaultLens recognizes the sites of common AI apps: claude.ai, claude.com, chatgpt.com, chat.openai.com, vscode.dev, insiders.vscode.dev and cursor.com.
If the app returns somewhere else, the approval screen shows a warning: VaultLens hasn’t verified this app. It also shows the full address the app returns to. Approve only if you started connecting it yourself and you recognize that address. If you didn’t start it, click Cancel.
If the app returns to a program on your own computer, such as Claude Code, the screen says “This sign-in returns to an app running on this computer”. That is normal for desktop and command-line tools.
Permissions
| Permission | What it allows |
|---|---|
| Read | Apps, schema, jobs, sync status, archive settings and runs. No record values. |
| Write | Start syncs (a reconcile) from the AI. |
| Run archives | Start archive runs that remove records from Knack. |
| Query data | Read records from the analytics copy with query_data. |
| Read PHI | HIPAA workspaces only. Needed with Query data, because record values are PHI. |
If the AI app doesn’t ask for specific permissions, VaultLens suggests Read and Query data.
Some permissions depend on your role:
- Only owners and admins can tick Query data and Read PHI. Members don’t see them on the approval screen. This matches the web app, where members can’t see record values.
- Write and Run archives can be ticked by anyone, but the tools that use them only work for owners and admins.
See Tools for which tool needs which permission, and Team and roles for roles.
Limiting a connection to some apps
On the approval screen, untick All apps, including ones connected later and tick the apps the AI may see. The AI can then only list and use those apps. Asking about any other app is refused.
Admins can also limit every connection in the workspace (see Admin controls). When both are set, the AI only sees apps allowed by both.
How long a connection lasts
- The AI app gets a key that lasts one hour and renews itself automatically.
- If the AI app isn’t used for 30 days, the connection stops renewing. Connect again from the AI app.
- Every request is checked again. A connection stops working at once if:
- you or an admin disconnect it;
- you are removed from the workspace;
- you, or an admin on the Team page, use Sign out everywhere in VaultLens;
- an admin turns off AI connections.
- If VaultLens sees signs that a connection’s key was copied and reused, it ends the connection. Connect again.
Disconnecting
- In VaultLens, go to Settings → AI connections.
- Find the connection. Each one shows the AI app, the site it returns to, its permissions, its apps, and when it was connected and last used.
- Click Disconnect, then Disconnect again to confirm.
The AI app loses access immediately. To use it again, connect it again from the AI app.
Members see and disconnect their own connections. Owners and admins see everyone’s connections, with who connected each one, and can disconnect any of them.
query_data guardrails
query_data is the only tool that reads record values. Several layers keep it read-only and contained:
- One SELECT only. The query must be exactly one
SELECTstatement. Inserts, updates, deletes,SELECT INTO,FOR UPDATEand other statements that change data are refused, including inside aWITHclause. - This app’s tables only. The query can only use the app’s own tables in its analytics copy. System tables, other schemas or datasets, and external or region queries are refused.
- Allowed functions only. Only standard aggregate, window, maths, text, date, JSON and array functions are allowed. Anything else is refused with a message naming the function.
- Read-only database login. On PostgreSQL, the query runs with the app’s read-only login inside a read-only transaction. On BigQuery, VaultLens checks the statement type and the exact tables the query touches before it runs.
- Row, size and time caps. At most 500 rows and about 100 KB of results are returned. Queries stop after 20 seconds. BigQuery queries are also capped at 5 GB scanned.
- Owners and admins only. A member’s connection can’t run
query_data. - Everything audited. Every query is recorded in the audit log with its SQL, also when it is refused.
If a query is refused, the AI gets a plain message, such as “Only SELECT queries are allowed: this tool is read-only.”, and usually fixes the query itself.
Admin controls
Owners and admins see Workspace controls under Settings → AI connections:
- Allow AI connections: when off, every AI app and agent is refused immediately, including API keys. Connections are kept for when you turn it back on.
- Read-only: the AI can look things up but can’t start reconciles or archive runs. Those tools are hidden from AI apps.
- Apps AI can see: All apps, or only the apps you tick. This applies to every connection and API key.
Click Save. Changes apply to the next AI request.
The same card shows this month’s number of AI tool calls, how many were refused or failed, and the most used tools. Click See every call in the audit log to see each call, with its inputs, outcome and who made it.
Limits
Each connection can make a limited number of tool calls a minute, set by your plan: 60 on Analytics and Archive, 120 on Studio, 300 on Business.