Yes, an AI SRE should start in read-only mode, and "read-only" has to mean a cloud credential that cannot write, not a setting inside the agent. A chat mode, a command policy, a user role and an approval prompt narrow what the agent attempts and record who asked, but each can be misconfigured or clicked through, and none of them is a security boundary. The credential is. Aurora SRE has six such layers; this page gives each one's default, the setting that changes it, and where read-only is weaker than it sounds or blocks a harmless command.
We got the "who asked" half wrong first. Until October 2026, an @mention in Slack from someone with no linked Aurora account did not run as that person. The code fell back, in its own words, to "the Aurora user who connected this workspace as a shared, read-only "team identity" so anyone in the workspace can ask questions". The run was in Ask mode, so it could not write. It still carried the connector access of the account that installed Slack, and every such question was filed under that one account (the change that ended it).
What makes a read-only AI SRE deployment actually read-only?
Six checks sit between a question and a command, all readable in the repo at v1.5.31.
| Layer | What it stops | Default | Where it changes |
|---|---|---|---|
| 1. Cloud credential | Any write the provider refuses, whatever the agent sends | AWS Quick-Create role carries ReadOnlyAccess; the GCP read-only service account gets roles/viewer and other viewer roles; the on-prem kubectl agent's ClusterRole is get, list, watch | Your cloud account; rbac.rules in the kubectl-agent chart |
| 2. Ask mode | Write tools leave the tool list; a command the read-only classifier does not recognise returns READ_ONLY_MODE | Background runs (alert investigations, Slack mentions) default to mode="ask"; the web chat's mode selector starts on Agent, and a message that sends no mode gets agent | Per chat, by whoever is typing; not per org or per role |
| 3. Org command policy | A deny-rule match, or no allow-rule match: POLICY_DENIED. It is a regex filter on the command text, not a boundary | Both lists on, seeded with the Observability Only template when the org is created | Settings > Security |
| 4. Guardrails | Known-bad patterns (SIGNATURE_MATCHED) and commands an LLM judge rates dangerous (SAFETY_BLOCKED) | On (GUARDRAILS_ENABLED=true); the judge fails closed | Environment variable |
| 5. No human present | A command blocked by layer 3 or 4 is denied with no prompt; a structured write (Terraform apply, a PR merge) returns BACKGROUND_DENIED | Always on, except tools pre-approved under action tool permissions, and some are pre-approved by default (listed below) | Settings > Security |
| 6. Role and connector access | Who may chat, edit memory, read other people's chats, and which connector and credential a role gets. On Slack the role is the sender's (next section) | Roles are viewer, editor, admin; invites default to viewer; viewers can chat; connectors are open to every role until an admin limits one | Settings > Organization > Access |
Layers 3 and 4 are covered in AI agent kubectl safety, and where vendors draw the approval line in how vendors gate AI agent autonomy.
Which layer catches what?
Take three commands.
aws ec2 terminate-instances during an alert investigation. The run is in Ask mode, so the classifier refuses it first. If the classifier had a hole, the command policy has no allow rule for the verb. If the policy were off, the role's ReadOnlyAccess returns AccessDenied. Only the last of the three is outside our code, and it is the only one we would call a guarantee.
kubectl delete pod typed by an engineer in an Agent-mode web chat. The deny rule "Mutating kubectl operations" fires, and because a person is present the gate asks instead of refusing. Whoever is in that chat can click Yes for that one invocation; only an admin is offered "Yes, Always", which rewrites the org policy. In a foreground chat, then, layers 3 and 4 are an approval prompt and layer 1 decides. The mode selector offers Agent to every role and the server takes the mode from the chat message with no role check, so a viewer is not forced into Ask mode. If viewers must not change production, enforce it at the credential: connect only a read-only role, or limit the connector on the Access tab and grant the role the read-only credential, which per the code "never assumes a separate modify role, including in Agent mode".
A Terraform apply proposed by a scheduled run. There is no shell command for a regex to match, so it goes through a second gate:
if _is_org_tool_permitted(tool_name):
return _ALLOWED
if not user_id:
# Preserve prior behavior of wait_for_user_confirmation helpers,
# which required a user and otherwise denied.
return _block("TOOL_NOT_ALLOWED", "Tool call not allowed: no user context")
foreground, session_id = _get_context()
if not foreground:
return _block("BACKGROUND_DENIED", "Tool call not allowed in background context")
That is command_gate.py. The org's pre-approval list is consulted before the background check, so BACKGROUND_DENIED is a structural refusal with one deliberate door through it. The same list skips the prompt in a foreground chat.
Who does a Slack mention run as?
In a chat platform the session is not the user. The bot token belongs to the workspace, the question comes from whoever typed it, and the agent needs an identity with a role. The shared team identity was our first answer, and it failed twice once per-role connector limits existed: a restriction on viewers did not apply to a question asked from Slack, and the audit trail named the installer for other people's questions. Memory had the same flaw: per the follow-up, the memory tools and the background collector "otherwise ran as the admin who connected Slack".
Since v1.5.12, the mention handler looks up the sender's Slack profile email and resolves one of four outcomes (slack_events_helpers.py):
def classify_slack_sender(
*,
matched_user_id: Optional[str],
installer_user_id: Optional[str],
is_full_member: bool,
workspace_user_id: Optional[str],
allow_unregistered: bool,
) -> tuple:
"""Who an @mention runs as: (user_id, as_general_viewer, refusal)."""
# Slack email is an account in this org, so that role and team apply.
if matched_user_id:
return matched_user_id, False, None
# The person who connected Slack, when the profile email doesn't match.
if installer_user_id:
return installer_user_id, False, None
# Guest, external, or users.info failed. Don't guess a viewer.
if not is_full_member or not workspace_user_id:
return None, False, _NOT_A_MEMBER
# No Aurora account. The manage-page toggle is the only way in.
if not allow_unregistered:
return None, False, _NO_ACCOUNT
return workspace_user_id, True, None
Guests, Slack Connect users and bots are refused: the check reads is_restricted, is_ultra_restricted and is_stranger from Slack's user object. A full member with no Aurora account is let in only while "Allow people without an Aurora account" is on, which is the default, and is then checked as a general viewer with no team. That person never gets chat audit access, and memory writes follow the viewer switch.
Three limits. The mapping is as strong as your workspace's control of profile emails; Slack's docs say the email "can only be changed by admins for users on paid teams". It needs the users:read.email scope, and without an email the sender counts as having no account. And an unregistered member's chat is still stored under the account that connected Slack, with access pinned to viewer; the audit list has no column for the Slack sender, whose name appears only in the message's "Asked by" prefix.
All of this is Slack. At v1.5.31 a Microsoft Teams message still runs, in Ask mode, as the Aurora account that connected the tenant, which is the shared identity we removed from Slack; Google Chat matches the sender's email to an Aurora account, requires the editor or admin role, and runs as that account.
How can I audit actions taken by an AI agent back to an accountable owner?
Activity > History lists every chat in the org from every source: web chat, Slack, Google Chat, Teams, incident RCA, actions, scheduled and background runs. It has filters for source, status, user and period, full-text search over questions and replies, and a read-only transcript.
The Issues column is the part worth copying, because engineers rarely report that the agent was refused something. A classifier sorts each failed tool call, with the gate's machine codes winning over free text: READ_ONLY_MODE, POLICY_DENIED, SAFETY_BLOCKED, SIGNATURE_MATCHED, USER_DECLINED and BACKGROUND_DENIED become "Blocked command", and CONNECTOR_DENIED or an AccessDenied or 403 becomes "Missing permission". After a week of read-only you have a list of what the policy cost and which permissions were missing, per person and per source.
Admins can always read it, editors only when "Editors can audit chat history and tool calls" is checked on the Access tab (off by default), viewers and Slack guests never, and a failed lookup is a refusal. Before the audit change, any org member could open any chat by its id; that now returns 403 unless you own the chat, may audit, or can read the incident or action it belongs to.
Where is read-only weaker than it sounds, and where does it annoy?
Limits in the shipped defaults:
- A command allowlist filters what the agent tries. It is not a security boundary. Ours is a list of regular expressions over the command string, and a pattern that admits a general-purpose tool cannot tell what that tool will do with its arguments. So let the policy reduce noise and record intent, and get the guarantee from a credential that cannot write: a read-only IAM role, a read-only ClusterRole.
- Reading is not harmless. The kubectl agent's default ClusterRole lists
secretsunderget,list,watch, andkubectl getis allowed by the template. Overriderbac.rulesin your values file without thesecretsentry if the agent should not read them. - Tool permissions are seeded with some writes on: creating and updating GitHub issues, commenting, creating branches, pushing files to a branch, opening pull requests, re-running or cancelling CI workflows, and the GitLab equivalents including committing Terraform files with a merge request. In Agent mode, including a background run such as an action, those run with no prompt. Merges, file and branch deletion, repository creation and Terraform apply or destroy are seeded off. Turn the rest off in Settings > Security if a pilot should open nothing.
- Policy rules are cached per process for 30 seconds, so a tightened rule can take that long to reach the background worker.
- On AWS, when no separate read role is configured, a role named
AuroraReadOnly-*orAuroraReadOnlyRoleis treated as read-only by its name and assumed with no session policy (README). The name is not an IAM check, so do not give a role with that name anything beyondReadOnlyAccess.
Annoyances, each a refused read:
kubectl rollout historyis still denied at v1.5.31. The deny rule matches the bare wordrollout, as measured in the rollout history post, and the fix is an open pull request.- On Azure, every command was prefixed with
azbefore the policy saw it, sokubectl logswas judged asaz kubectl logsand denied, whilekubectl getpassed becausegetis anazverb. The fix gates standalone CLIs as written. Review found the same bug forgsutilandbq, so the gate and the executor now read one table and judge the same string.ocis still prefixed on Azure. - The Ask-mode session policy on AWS is an allow-list, and AWS computes a session's permissions as the intersection of role and session policy. On an already read-only role it could only remove reads it did not list, so we skip it for those roles.
Read-only diagnostics, recommended actions, approved automation, autonomous remediation: which can you set?
| Rung | What it is in Aurora | Setting |
|---|---|---|
| Read-only diagnostics | Ask mode on a read-only credential under Observability Only | The default for background runs |
| Recommended actions | Investigations end with suggested commands; a Slack button runs one in Agent mode as the person who clicked | The command still has to pass the org policy, and with nobody at a prompt a block is a denial |
| Approved automation | Named structured tools pre-approved for runs with no human | Settings > Security, action tool permissions |
| Autonomous remediation | Not a mode | Widening the template and pre-approving tools is as far as it goes, and each is an explicit admin setting |
How do I pilot an AI SRE without disrupting production?
- Connect AWS with the Quick-Create link so the only role is
AuroraReadOnly-<stack>withReadOnlyAccess. For GCP use the read-only service account. For a cluster, install the kubectl agent and overriderbac.ruleswithout thesecretsentry if it should not read them. This step is the guarantee; the rest narrow and record. - In Settings > Security, confirm both lists are on and the template is Observability Only. Use the test box to try your ten most common commands; it reports the policy verdict and whether Ask mode would allow each.
- In the same tab, turn off every action tool permission you do not want exercised with nobody watching.
- Invite the pilot group as viewers. On Settings > Organization > Access, leave "Viewers can modify memories" off and limit each cloud connector so viewers and editors get only the read-only credential. Ask the group to pick Ask mode in web chat; it is a per-chat choice, which is why step 1 matters.
- On the Slack manage page, turn off "Allow people without an Aurora account" so every Slack question maps to a named account. Teams does not map senders yet.
- Leave
GUARDRAILS_ENABLEDunset; the default istrue. - Each week, open Activity > History and read the Issues column. Add a narrow allow rule for each harmless read that was blocked. Do not switch a list off.
What is still unsolved
- A role does not select the mode, and a foreground approval is not tied to a role.
- The command policy matches text. It does not understand what a permitted program does with its arguments, and we do not have a design that would make it a boundary.
- Teams still answers under one shared account.
- History has no tool-call list view since 1.5.30 (the endpoint remains), tool calls in regular chats are recorded only from 1.5.25 on, and the table has no retention policy. The log is not signed.
- Command policy edits are not written to the Audit Log tab. The rule row records
updated_byand nothing else.
Try it
A new org starts with the Observability Only template and both lists on, so steps 1, 3, 4 and 5 are the ones to do by hand. The self-hosted AI SRE guide covers the install and open-source AI SRE agents compared the alternatives.
- GitHub: github.com/Arvo-AI/aurora
- Hosted: aurora-ai.net
- Book a demo: cal.com/arvo-ai/demo
Sourcing note. Verified against Aurora v1.5.31 on 2026-12-02. Every behaviour above was read from the source at that tag or the linked pull requests; there was no lab run for this page. Slack and AWS claims were checked on the linked pages the same day.