Building with context For engineering leaders
Context engine security review: is read-only access enough?
A context engine security review needs more than read-only access. Read-only limits what one connector credential can change at the source, but you must also verify what data the tool reads, where it goes, who can use it, how long copies persist and how you stop access and remove retained data.
Is read-only access enough to approve a context engine?
No. Read-only access answers one question in a context engine security review: can this credential change the source? It does not say which data the tool can read, where excerpts travel, who can use retained copies or how you remove them. Treat read-only as one line in the approval, not the approval.
The same review applies to any AI coding tool that connects to company repositories or documents. Read the provider's documentation for your actual plan, because defaults and terms differ by plan and change over time.
Identify the credential and the source it can read
The credential check starts with the installed connector, not the marketing page. Read-only describes a permission category, while the effective scope describes which repositories and folders that permission reaches.
Ask the repository owner to show the installed connector's effective permissions and the repositories it can reach. A permission category and the scope of the grant answer different questions. GitHub's fine-grained token documentation lists repository contents endpoints by required access. For example, reading repository contents and creating or updating a file have different access requirements. Check the actual installation and credential type against the provider's documentation.
Record the repository or folder the team approved and compare it with the scope the source actually enforces. If the team approved one repository and the installation covers several, narrow the grant before connecting. Check other credentials and tools in the workflow separately. The coding assistant may have its own local file or shell permissions.
Follow the data to the assistant and any retained copies
The data-flow check traces one real query from the source to every service that receives a result. Each hop needs a named recipient, an access rule and a retention answer.
Draw the path for one real query using the vendor's data handling terms and the configuration for your plan. Identify what the connector reads, what the context service receives and stores, and what the coding assistant or its model provider receives when a result is returned. Record whether each recipient can use the data for model training and which people or service accounts can access retained copies.
The NIST Generative AI Profile says third-party generative AI integrations may give rise to increased intellectual property, data privacy or information security risks. It points to the need for clear guidelines for transparency and risk management regarding the collection and use of third-party data for model inputs. Use the table to capture evidence for your workflow and route open decisions to the person responsible for them.
| Question | Who verifies it | Evidence to record |
|---|---|---|
| Can the connector change the source? | Repository owner | Actual credential, effective permissions and documented read or write operations. |
| Which company data can it read? | Data owner and repository owner | Approved sources alongside the installed scope and any enforced exclusions. |
| Where does that data go and who can use it? | Security reviewer | Data flow, services and model providers that receive data, access rules and training terms for the actual plan. |
| How long do copies persist? | Security reviewer | Retention for relevant source copies, derived indexes, query logs and backups, including exceptions. |
| How do we stop access and clear retained data? | Connector administrator and data owner | Revocation steps, deletion process, expected timelines and evidence of each result. |
Give revocation and deletion separate checks
Revocation and deletion are different controls with different owners, so verify them separately. Revoking a credential stops new reads. Deletion addresses copies that already exist.
Revocation stops future access through the revoked credential once the provider enforces it. Verify that boundary with an authorized test on a non-sensitive source or with the source provider's confirmation. Handle copies already sent to another service through that service's deletion process. Record what deletion covers, any remaining backup or logging period, and how the owner can confirm completion.
If the assistant received an excerpt, include its conversation history and the assistant provider's applicable retention terms in the review. The connector administrator can own revocation while the data owner tracks the requests and confirmations for retained copies.
What should the approval checklist contain?
A usable approval checklist has seven items, each with a named owner and a piece of evidence. Work through them in order and hold the connection until every item has an answer or a documented exception.
- Record the credential type, its effective permissions and the exact repositories or folders it reaches.
- Compare that scope with what the data owner approved, and narrow the grant if it is wider.
- Draw the data path for one real query, naming every service and model provider that receives a result.
- Get the training, retention and access terms for your actual plan, in writing from the provider.
- List retained copies: source copies, derived indexes, query logs, backups and assistant conversation history.
- Test revocation on a non-sensitive source and record how the provider confirms it.
- Name the administrator who revokes access and the owner who confirms deletion if the trial ends.
Example (fictional): one approval worked through
Example (fictional): A billing team wants its coding assistant to retrieve decisions from a dedicated repository that contains sanitized engineering notes. The repository owner confirms a contents-read credential scoped to that repository. The vendor's diagram shows that excerpts travel from the context service into the coding assistant. The security reviewer still lacks the service's retention terms for query logs and the assistant provider's training terms for the team's plan.
The team holds the connection for company work. The security reviewer owns both open questions. If policy permits, engineers can use a synthetic repository while the reviewer obtains the plan-specific terms. Before enabling company data, the data owner records the approved scope and applicable terms, and names the administrator who will revoke access and the owner who will confirm deletion if the trial ends.
Where are built-in controls enough?
Built-in controls are enough when the data never leaves a boundary you already govern. A coding assistant that reads local files under your existing file and shell permissions, with no connector and no third-party service receiving excerpts, needs the assistant provider's terms and little more.
A single synthetic or sanitized repository also needs a lighter review, because a leak exposes nothing sensitive. Use that setup for trials while the full review runs. Once a connector reaches real company repositories, or a service stores derived copies, the checklist above applies in full.
Frequently asked questions
Is read-only access enough to approve an AI coding tool?
No. Read-only access limits what one connector credential can change at the source. It does not tell you which data the tool can read, where excerpts go, who can use retained copies or how you delete them. Approve the tool only after those answers are recorded with evidence for your actual plan.
What should a context engine security review check?
Check the credential and its effective scope, the data path for one real query, retention of source copies, indexes, query logs and backups, and assistant conversation history. Add training terms for your plan and named owners for revocation and deletion. Record evidence for each item before connecting company repositories.
Does revoking access delete the data a tool already read?
No. Revoking a credential stops future access through that credential once the provider enforces it. Copies already sent to another service need that service's own deletion process. Record what deletion covers, any remaining backup or logging period and how the owner can confirm it is complete.
When can I skip a full security review for a context tool?
A lighter review can be enough when the tool reads only local files under your existing permissions, with no connector or third-party service receiving excerpts, or when it touches only a synthetic or sanitized repository. Once real company repositories or stored derived copies are involved, run the full checklist.
Sources and further reading
- GitHub REST documentation, fine-grained token permissions for repository contents
- NIST AI 600-1, Appendix A.1.3 on third-party generative AI integrations
Prepared with AI assistance and reviewed for source fidelity and practical usefulness. Examples marked fictional are illustrations, not customer results.