What an AI agent's "always allow" should save, and where
When a developer told a coding agent not to ask again, the agent saved the exact command they had approved, password included, in a plain text file inside the project. Your product's agent is about to offer your customers' users the same choice, and whatever you save behind that button is a record your customers' security teams will ask to see. Design that record before you ship the button: the shape of the action instead of the command, a handle in place of any credential, kept on your server in the customer's own partition, scoped to one user in one tenant, with an expiry and a trail.
What did the "don't ask again" file save?
Security firm Apiiro reported in the first week of November 2026 that Claude Code, Anthropic's coding agent, saves a command to a settings file when a developer approves it with "don't ask again". Approve once and the agent runs that command later without asking. To recognise it next time, the agent keeps the command verbatim in .claude/settings.local.json, inside the project folder.
- 2,539
Secrets found in all.
Source: GBHackers - 1,122
Public copies of the settings file on GitHub.
Source: The Hacker News - Nearly 2,000
Public repositories affected.
Source: SecurityOnline
Apiiro research, reported in the first week of November 2026.
The command held whatever was typed into it. A database login with the password on the command line, or a script called with an API key as an argument, was approved once and landed in the file as written. The file lived in the project folder, so it went wherever the project went, public GitHub included. In November 2026, The Hacker News reported passwords and keys in 1,122 public copies of the file, GBHackers counted 2,539 secrets in all, and SecurityOnline put the spread at nearly two thousand public repositories.
Apiiro's advice, in short: rotate any secret that has been exposed, approve patterns of commands in place of literal ones, and keep secrets in environment variables, where the saved command never contains them.
Why is your own "always" button the same problem?
Any agent that asks "once or always?" has to store the "always" somewhere. That stored thing has an owner, a location and a lifetime whether or not anyone designed them. In a multi-tenant product it also belongs to a customer, and it outlives the click that created it.
Picture a dispatcher at a field service company, one of your customers, who clicks "always" on "update the job and text the technician". From then on the agent does that without asking. Six months later the dispatcher has moved to another branch, your team has rebuilt the texting integration, and the customer's security team is filling in your vendor questionnaire. Each of those events puts a question to the record behind that click, and the answers depend on what the record holds.
We covered agents that route around an approval in can an AI agent bypass human approval; this post starts after the approval is granted.
The dispatcher moves branch, the integration is rebuilt, and the grant still applies unless its record says otherwise.
What should an "always allow" grant record hold?
An "always allow" grant record should hold seven fields: the shape of the action, a handle for any credential, a home on your server in the customer's own partition, a scope, an expiry, the events that revoke it and a trail of what ran. Here is that record as we would design it for a product serving many customers, one field per row. Each field has a reason, and each reason answers a question a reviewer will ask.
The grant record, field by field
One row per field. Copy the columns into your design doc.
| Field | Store this | Why |
|---|---|---|
| Action | The shape: tool, operation, target pattern, parameter limits | The literal call carries whatever was typed into it |
| Credentials | A handle, resolved at run time from your secret store | A record with no secret field cannot leak a secret |
| Location | Server side, in the customer's own partition | A file on a laptop travels with the project |
| Scope | One user, one role, one customer tenant, one agent identity, one connected system | Change any of them and the grant should stop applying |
| Expiry | A fixed term by default | "Forever" is a policy nobody signed |
| Revocation | On role change, offboarding, or a change to the tool's definition | The person or the tool the grant was made for has gone |
| Trail | Every action taken under the grant points back to it | The reviewer asks what ran, as well as what was allowed |
Rows 1 and 2 build on Apiiro's published advice. Rows 3 to 7 are our recommendations for a product serving many customers.
Two ways to remember one approval
Scope and expiry are the two fields teams skip, because the first version of the button works without them. Scope matters on the day something changes: the user moves role, the customer connects a second system, or you ship a second agent. A grant keyed only to a user keeps applying through all of it. Expiry matters because an approval made in March reflects what the user knew in March. A fixed term, renewed with one click when it lapses, keeps every standing grant tied to a recent decision by a person who still holds the role.
Can you pass the one-tenant test?
Could you hand one customer a complete list of their standing grants, and revoke all of them in one action, without touching any other tenant? If the answer needs a migration or a script, the record is in the wrong place. Grants kept on a user's device, in browser storage or in a shared table with no tenant key all fail it, and they fail on the day a customer's admin asks.
The second half of the test concerns secrets. Once a secret is inside a record, the only remedy is to find every copy and rotate it, which is the first item in Apiiro's advice. A record with no field that can hold a secret never needs that clean-up: there is nothing in it to rotate.
Run this in staging before the button ships
- Create a test tenant and grant "always" on three different actions as two different users.
- Produce the list of that tenant's standing grants from one query, with user, role, scope and expiry on each.
- Revoke them all in one action and confirm another tenant's grants are untouched.
If any step needs a migration, move the record before you ship.
What will your customer's security reviewer ask?
Expect four questions in the first security review after the button ships: where standing approvals live, whether one can contain a credential, who can revoke them, and when they expire. The record above answers each in a sentence; here is each answer as you would give it to your customer.
- Where do standing approvals live? On our servers, in your tenant's own partition, and never on an end user's device.
- Can an approval contain a credential? No. It holds a handle, and the credential is resolved from our secret store at run time.
- Who can read and revoke them? The user who granted each one, and your admin, for every grant in your tenant at once.
- When do they expire, and what ran under them? Each grant has a fixed term, and every action taken under it points back to it in the trail.
Where does your agent's "always allow" live today?
Anonymous. One vote per browser.
Where SynOS fits
SynOS runs inside your product, white-labelled, and installs in your cloud, so customer data, traces and run logs stay inside your system boundary. Each agent acts as a named user in their role, revocably, and every run is traced. While an agent rehearses on live data, its writes are recorded rather than executed, so you can see what a standing approval would have allowed before anyone grants it. Tell us which approval your users click most, and we will rehearse it with you first.
Questions
Should an AI agent remember approvals at all?
Yes, when the alternative is users approving the same safe action many times a day. Remember the shape of the action, for a fixed term, for one user in one customer tenant, and keep a trail of what ran under it.
Can an approval record ever hold a password or API key?
Design it so it cannot. Reference each credential by a handle and resolve it from your secret store at run time. Apiiro's advice to keep secrets in environment variables, out of the approved command, points the same way.
How long should an always-allow approval last?
A fixed term by default, renewed with one click when it lapses, so each standing grant reflects a recent decision by a person who still holds the role. Revoke it sooner on a role change, on offboarding, or when the tool's definition changes.
Who should be able to revoke an always-allow grant?
The user who made it, and the customer's own admin, who should be able to revoke every grant in their tenant at once, from one screen, without a support ticket and without touching any other customer's grants.
Sources
- Research on coding agents leaking secrets through "don't ask again", Apiiro (November 2026; the mechanism, the settings file in the project, advice to rotate, approve patterns and keep secrets in environment variables)
- Claude Code's 'Don't Ask Again' File Exposes Passwords and Keys in 1,122 Public Copies on GitHub, The Hacker News (November 2026; 1,122 public copies of the file)
- Anthropic Claude Code's 'Don't Ask Again' Feature Exposes 2,539 Secrets on GitHub, GBHackers (November 2026; 2,539 secrets in all)
- Claude Code Leaking Secrets Across Nearly Two Thousand Public GitHub Repositories, SecurityOnline (November 2026; nearly two thousand public repositories)