Every business system contains data that should never be modified by a model. The ledger. The order book. The customer record. The payroll file.
Connecting AI to those systems requires a hard boundary: read everything, write nothing. The boundary has to be enforced by the system, not by the model's good behavior.
The risk of write access
Financial errors compound. A miscategorized transaction, a payment applied to the wrong invoice, an expense in the wrong period. Each one flows through the books and into every report built on them.
Data corruption is quiet. An overwritten record, a duplicate entry, a deleted row that looked irrelevant. The system does not complain. The report just changes.
Compliance breaks. Audit trails assume records are not altered after a close. An AI that edits a record can break the trail without anyone noticing.
The attack surface grows. Write access is a broader permission. If the credential is compromised, every system it can write to is compromised.
A wrong sentence costs an edit. A wrong ledger entry costs a reconciliation, an audit finding, or a restatement.
How read-only OAuth works
- You sign in to the connected system, such as QuickBooks or Shopify.
- You grant the connector a read-only scope.
- The connector receives a token limited to read operations.
- Every call uses that token, and the system's own API rejects a write attempt.
The boundary is enforced at the API level. That is the important part. An instruction in a prompt ("do not modify anything") can be overridden by a clever input. A scope cannot.
Per-source authentication
Each system gets its own token. No shared master key.
The benefit is blast radius. If one connector is compromised, the others are unaffected. If one is revoked, the rest keep working. A shared credential turns a single leak into a company-wide incident.
A per-source design also makes the audit readable. The log says which connector was used, for which system, by which user. A shared token makes every entry ambiguous.
What read-only does not mean
It does not mean no access control. A read-only token can still read too much. Scope it to the tables, fields, and records the workflow needs.
It does not mean no logging. Read access to sensitive records is still access. Log who read what.
It does not mean the answer is safe. A read-only system can return a wrong number. The boundary protects the source, not the interpretation.
It does not cover control-plane writes. Some platforms expose configuration operations outside the data path. Those change scoped platform state and should be named and annotated separately, not folded into a read-only claim.
When a write is genuinely required
Sometimes it is. A workflow that creates a ticket, posts an invoice, or updates a status needs a write.
The design is different, and it needs five things:
- A separate credential with the narrowest write scope.
- An approval rule that names who or what can trigger the write.
- A dry-run mode that shows what would change.
- An audit record with before and after values.
- A rollback path that has been tested.
Without all five, the write is an experiment on production data.
The control-plane distinction
A platform can be read-only for your business data and still accept writes to its own configuration. That is a different risk category, and it should be labeled.
A connector that changes a setting, a schedule, or an integration is not doing retrieval. It is operating the platform. Name it, scope it, log it, and limit who can call it.
A read-only checklist
- The OAuth scope is read-only and visible in the token.
- The token is per source, not shared.
- The scope is limited to the tables and fields the workflow needs.
- Every call is logged with user, source, and record.
- A write attempt fails at the API, and the failure is tested.
- Control-plane operations are named separately.
- A revoke test has been run.
- The data class is approved for this destination.
Eight items. The fifth is the one that proves the boundary is real.
Where read-only programs fail
The scope was widened for a demo. Someone needed a write to finish a demo, and the scope was never narrowed.
The token is shared across systems. The isolation is nominal.
The log records a request count. It cannot answer who read a customer's records.
The revoke was never tested. The first attempt happens during an incident.
The read scope is too broad. Read-only access to every table is still access to every table.
Related
- Connect business tools to AI: the five boundaries.
- AI agent security: the agent permission model.
- Private AI security: the full control set.
- CorpusIQ case study: a read-only connector build.
Questions owners ask
Trust is not the control. The scope is. A model with a read-only token cannot write, regardless of what it decides.
Then the connector has to enforce it, and you should verify how. A connector that promises read-only while holding a write token is a risk.
It removes the ability to update a record automatically. If the workflow needs that, it needs a separate write design, not a wider read token.
Attempt a write with the token in a staging environment. If it succeeds, the scope is wrong.
It is one control. Compliance also needs retention, access review, logging, and an incident procedure.

