Last9: give an AI incident helper read-only access to production
Last9 published a checklist for letting an AI agent investigate incidents without letting it break anything. The main rule: the instructions you give the model are not access control, so limits must live in the tool server, the credentials and the audit log. It sorts actions into allow, approve and deny groups, with examples.
Last9 dated its post December 1. It covers its own MCP server (connectors that let AI assistants use tools), but the pattern applies anywhere.
The steps: mark every tool read-only or write, and enforce it on the server. Last9's flag is `last9-mcp --read-only`, with named exceptions allowed. Give each agent its own credential, separate from humans and from remediation workflows. Require service, environment and an absolute time window on every query, and cap results, retries and run time. Return `MISSING_INPUT` or `PARTIAL` instead of guessing. Keep raw logs out of prompts by default, and log every run: trigger, tools called, approvals.
The buckets: allow read-only telemetry and change events. Require approval for dashboard edits, alert changes and remediation. Deny production shells, `kubectl exec`, cloud IAM, secret stores, deploy and rollback systems, and open web clients. Last9 says its sensitive-data detection covers logs only, not traces, metrics or prompts.
New to this? The key idea
Telling an AI 'please don't delete anything' is a request, not a lock. A real lock sits outside the AI, in the system it calls, so the answer is no even if the AI is fooled or confused. Engineers call this least privilege: give the helper only the keys the job needs.
Use it at work
Use it for: SRE and platform teams about to connect an AI assistant to observability tools or a cluster.
Try it: write your own allow, approve and deny list for the tools your agent can reach, then enforce the deny list in the tool server, not in the prompt. For Last9 self-hosted, start with `last9-mcp --read-only` and add exceptions such as `--allow-write-tools=patch_alert` only when needed.
Before you roll it out: Last9 does not publish rate limits for its MCP server, so set your own. Its sensitive-data detection does not cover traces, metrics or MCP payloads. The post is vendor guidance, not an independent audit.
Summaries are written by AI from the linked source. Always check the original.