
How Do You Keep Customer Identifiers Out of a Gemini Enterprise Agent's Memory?
Replace account numbers and other identifiers with tokens before the Gemini agent reads the screen, so memory holds ACCT_001, not the value.
Research topic
Research on How-to guides: AI agent security, tokenization and checks for sensitive data access before allowing enterprise workflows to run.

Replace account numbers and other identifiers with tokens before the Gemini agent reads the screen, so memory holds ACCT_001, not the value.

Run one workflow and one record type with a page policy that replaces identifiers, a named approver and a reviewed record. Check it completes on tokens.

Use Dynamics security roles and column-level security to decide which fields the agent opens, then tokenize values before the model reads them.

Give the agent its own identity and only the apps the workflow needs, then add what none of the three documents: tokens for out-of-task values on screen.

Post a per-run record of screens as tokens, actions and approvers via the Logs Ingestion API or HTTP Event Collector, then add a parser and a denial rule.

Seed one record type with canary values the task does not need, run with and without a page policy, then score completion and exposure together.

With a browser control that recognizes the credential as the page renders, encrypts it to a key the agent lacks and substitutes a token in the view.

With two settings: a domain allowlist that bounds navigation and a destination policy that bounds where a real value is released.

Assume the run is compromised: give the agent placeholders, references instead of credentials, a grant that expires with the task and a named approver.

Seal it to a key that exists only inside that sandbox: generate the keypair there, register the public half with the grant service.

Put three answers in writing before the review: what the agent holds, what it can reach, and what the record shows. Name the approver.

Use the platform's temporary credential, such as an STS token, a short-lived Vault token or a fine-grained token with an expiry.

Put the lifetime in the grant: a named run, one repository, one operation, and an adapter outside the agent that stops honoring it when the run closes.

Use a GitHub App installation token or a fine-grained token limited to one repository, and keep it out of the agent's process by brokering the call.

Make the environment the resource the grant names, with each environment's credential in its own adapter. Is production reachable from the sandbox?

Scope a fine-grained token or app installation to that repository with contents read, hand it to an adapter, and write the grant as one repository.

Put the token in an adapter outside the sandbox: it fetches one repository and copies a snapshot into the workspace, so the agent never holds the token.

Deny the files and variables that hold keys in sandbox.credentials and mask the ones the agent must use. The Read tool, MCP servers.

Put the credential in a process on the other side of the boundary that makes the call for the agent: the agent sends a reference.

Only when each credential passes through a component that records its use, such as a proxy that swaps in the real value.

Only a broker that logs each release can tell you; an agent holding credentials in its own environment leaves you grepping transcripts.

A proxy or adapter between the agent and the API supplies the key on the way out, as Claude Code, Docker, Browser Use and Devin each describe.

Grant the adapter, not the agent, a role limited to the resource types and region the task needs, with approval for anything that costs money.

Redact the logs before the agent reads them, or give it a view where identifiers become placeholders it can still correlate on.

Separate build from deploy: the agent produces the artifact and opens the change; a deploy step holding the credential runs outside its reach.

Give the agent a way to request the action, not the credential: a broker holding a repository-scoped token performs the push and the pull request for it.

Do not; seed a synthetic database or put the real one behind a view that returns placeholders. Every coding agent reviewed reads query results as text.

Never put long-lived keys in the agent's environment: have it assume a role for short-lived STS credentials with a task-scoped session policy.

Give the contractor's agent a credential scoped to one repository and one operation, held outside their reach and set to expire with the engagement.

A hijacked agent can only send to places it can reach, so bound the network first, bound where real values resolve second.

With three fields in the grant: which hosts the run may reach, which destination may receive a real value, and what the model reads on the page.

Give the agent an adapter, not the token: the adapter holds a repository-scoped token, the agent calls the adapter, and the adapter calls GitHub.

Plan from metadata: which accounts exist, which credentials exist by name and scope, and which service each belongs to, so the planner never reads a value.

With a record produced by design: the model received a reference such as GITHUB_TOKEN_01, the value resolved only at an approved destination.

Revoke the grant where the service enforces it, at the identity provider, gateway or adapter, and the next call fails. Clearing context is a race.

Give each developer a separate vault path and key, cap any one grant with a team policy, and hold shared credentials in a service layer.

Rotate at the service, revoke the old value and update the one place that holds it. If that place is the agent's environment.

Give each agent its own environment and its own grant on the shared repository, so a credential one agent holds is useless in another's hands.

Write the grant as five fields, service, resource, operation, destination and lifetime, then issue a credential that can do only that via a session policy.

Write the rule as four bounds: services a credential may unlock, operations it may perform, how long it stays live, and the second approver for production.

Only by changing what the browser renders to the agent: a render-layer control detects the token as it appears, stores it and shows a reference.

Write the grant as a slip: a planner turns the sentence into a service, resource, operation, destination and lifetime, resolves each against metadata.

Only if the receiving service checks the grant itself: scope, term and approver, against a key or policy the requester cannot edit.

Zero seconds is the right default: a credential the agent never receives cannot outlive its task. Where it must hold one.