# Two Keys and a Fence: Server-Scoped Access, Two-Person Approval and Runbook Templates

> As infrastructure teams grow, two questions come up: who can touch which servers, and who signed off on that production change? DevOps & SRE Intelligence now lets an admin limit who works with which servers, can require two approvers for production changes, exports its audit trail for auditors, and ships 13 runbook templates that still go through your approvals.

Source: https://www.ticketresolve.ai/blog/two-keys-and-a-fence · Published 2026-11-18 · TicketResolve AI

A managed-services company runs infrastructure for itself and for four clients. The team has grown from five engineers to nineteen, including two contractors who look after one client's staging servers. Everyone with the "Operate infrastructure" permission can run approved operations on every server in the workspace: the company's own production database, every client's fleet, everything.

Then a client's security questionnaire arrives with two questions. *"Can engineers who don't work on our account operate on our servers?"* And: *"For production changes, can you show us who requested and who approved each one, for the last twelve months?"*

The honest answers were "yes, they can" and "give us a week to dig through logs".

## First, the basics

If you don't work in infrastructure, here's what the words in this post mean.

- **A server** is a computer, usually in a data centre or the cloud, that runs part of your product. A company can have dozens or thousands of them.
- **Production** is the set of servers real customers use. **Staging** and **development** are copies used for testing, where a mistake doesn't hurt customers.
- **An operation** is a specific, pre-approved action TicketResolve can ask a server to do: restart a service, install security updates, reboot. Think of it as a button on a vending machine; the agent on the server only has the buttons you installed.
- **Approval** means a second person agrees to an operation before it runs. It's the infrastructure equivalent of a bank requiring two signatures on a large cheque.
- **A runbook** is a written recipe for fixing a common problem ("if the disk is full, do these five steps"), turned into steps the system can follow.
- **An audit trail** is the permanent record of who did what and when, the thing auditors ask to see.

Why does this matter to the business? Because the more people who can change production, the more likely an honest mistake becomes an outage, and the harder it is to prove to customers and auditors that changes are controlled. This release is about limiting *who* can act *where*, and proving it afterwards.

## The problem, in plain terms

1. **Roles say what, not where.** A role that allows "operate" allows it everywhere. As teams split by client, region or product, that becomes too broad.
2. **One approver isn't always enough.** For production, many teams and many auditors expect two people to agree on a change, not one.
3. **Audit evidence is a project.** The data exists, but turning it into something an auditor can read takes days.
4. **Runbooks start from a blank page.** Good runbooks are slow to write, so many problems are still handled by memory and whoever is on call.

## A fence: who works with which servers

Roles still decide **what** someone may do: view, operate, approve or administer. Now an infrastructure admin can also decide **where** they do it. In *Settings › Who works with which servers*, tick environments, server groups or single servers for a person.

From then on, that person sees **only their servers** in:

- the command center, inventory, alerts, checks and operations;
- fleet plans, patching, drift, capacity and maintenance plans;
- runbook runs, containers and databases, backups, security and cost findings;
- the AI DevOps engineer, whose investigations only gather evidence from servers they can see.

And every action is **refused outside that scope**: checks, operations and approvals, fleet and maintenance plans, baselines and runbook runs. A requested operation carries an **Access** rule in its policy decision, so the reason for a block is written down.

Some things deliberately stay as they were:

- **Incidents and the weekly report stay workspace-wide**, because incidents are coordinated across teams.
- **The workspace owner is never limited.**
- **Nobody can change their own access**, and every change lands in the audit trail.

## A second key in production

Turn on **Two-person approval in production**, and these changes on production servers need two approvers:

- Level 3 operations;
- fleet plans and maintenance plans;
- runbook runs.

The first approval is recorded and the request stays pending. A **second, different person** with the production approval permission completes it. Neither of them can be the requester, and both names appear on the request and in the export.

It's off by default; staging and development are unaffected.

## An export your auditors can read

Infrastructure admins can download two CSV files for any period up to a year:

- **The audit trail**: approvals, rejections, settings, access, baselines, plans and runbooks, each with who did it and when.
- **The operation history**: requester, first approver, approver, result, exit code, and whether the change verified.

Command output isn't in the export. Cells that would start a spreadsheet formula are neutralised (so a value like `=HYPERLINK(...)` can't run in Excel), and each export is itself recorded.

## Thirteen runbook templates

*Start from a template* covers 13 common problems: high CPU, memory exhaustion, disk capacity, a failed service, database connectivity, certificate expiration, security patching, a failed backup, container crashes, Kubernetes pod failures, network connectivity, application availability and server maintenance.

You fill in what only you know: the service, the host and port to test, and which operations to use. The template **doesn't skip your controls**:

- It creates a **draft**, which someone other than you approves.
- Every operation must be **allowlisted** on the server it runs on, and every run that changes something is approved again.
- **TR-AI never supplies the command behind an operation.** Built-ins like `SVC_RESTART` and `PATCH_SECURITY` are fixed in the agent. Anything else, like `ROTATE_LOGS` or `K8S_ROLLOUT_RESTART`, is declared on your own server.

Runbooks also gained two things:

- `SVC_*` steps and rollbacks now **name the service** they act on.
- An optional **limit on runs per day per server**, so a runbook triggered by a recurring alert can't keep "fixing" the same thing every ten minutes.

Two new Workflow OS events let you react: `infra.runbook_failed` (a run stopped on a failed, blocked or unverified step) and `infra.maintenance_finished` (a maintenance plan ended, with its outcome).

## The engineer answers more questions

The AI DevOps engineer now answers these **from calculated data, without the language model**:

- *Which servers are missing security patches?*
- *How is production configured differently from staging?*
- *Which servers will run out of disk in the next 30 days?* Forecasts are labelled as estimates.
- *Did last night's maintenance verify?*
- *What failed overnight?*

Ask it to *prepare a patch plan* and it lists the servers that need one and why. It doesn't create the plan: you start that from Patching, and someone else approves it.

## Four real-world scenarios

### 1. Contractors who only see one client's staging

**How TR handles it.** The admin ticks *Client B › staging* for the two contractors. They now see only those 14 servers everywhere, including the AI engineer's investigations. When one of them tries to approve a restart on the company's own production database, it's refused with the **Access** rule in the policy decision. The client's first questionnaire answer is now "no, and here's the setting".

### 2. Two keys for the payments database

**How TR handles it.** With two-person approval on, a reboot of the production payments database is requested by an SRE, approved first by the team lead, and completed by the head of infrastructure. Both names appear on the request. A single tired approver at 2 a.m. can't push it through alone.

### 3. Twelve months of evidence in two clicks

**How TR handles it.** The admin downloads the audit trail and operation history for the last year. The auditor sees requester, first approver, approver, result, exit code and whether each change verified, with no command output and no formulas that execute. The export itself is recorded.

### 4. The disk-full runbook that wasn't written yet

**Situation.** Disk alerts on log servers are handled by memory, differently by every engineer.

**How TR handles it.** An SRE starts from the **disk capacity** template, fills in the log path and the declared `ROTATE_LOGS` operation, and sets a limit of 2 runs per day per server. A colleague approves the draft. The next alert runs the same steps every time, and a recurring alert can't loop it.

## Before and after

**Before.** Everyone can operate everywhere, one approver signs off production, audit evidence takes a week, and runbooks live in people's heads.

**After.** Access is fenced by environment, group or server. Production changes can need two keys. Audit evidence is a download. Runbooks start from templates that still respect every approval and allowlist.

## Who it's for

- **Infrastructure admins and heads of SRE** who need least-privilege access as teams grow.
- **Managed-service providers** who must separate client environments.
- **Compliance and audit owners** who need requester and approver evidence on demand.

## Where this is tested

Automated tests cover scope matching, the refusals (your own access, the owner, members of other workspaces), filtering of what a limited person sees, two-person approval for operations and runbook runs, the daily limit, every template filling into valid, non-destructive steps, and the export. The CSV format hasn't yet been checked against specific audit tools.

## Mistakes to avoid

- **Fencing people out of incident response.** Incidents stay workspace-wide on purpose. Don't try to work around that.
- **Turning on two-person approval with only one production approver.** Make sure at least two people hold the permission first.
- **Copying templates without setting a daily limit** for alert-triggered runbooks.

## Do it in TicketResolve, step by step

**Where:** DevOps & SRE → Settings and Runbooks (`/dashboard/devops/settings`). **You'll need:** an infrastructure admin for settings and exports; runbook drafts are approved by someone else. **Full guide:** [Access, two-person approval and runbook templates](https://www.ticketresolve.ai/docs/guide/devops-governance).

1. **Fence access where it helps.** **Settings → Who works with which servers → Change**: for each contractor, tick only *Client B › staging*. They then see and act only on those servers. Nothing ticked means every server.
2. **Turn on the second key.** **Settings → Two-person approval in production.** First make sure at least two people hold the production approval permission.
3. **Start a runbook from a template.** **Runbooks → Start from a template** → *Disk capacity*. Fill in the log path, the declared `ROTATE_LOGS` operation from your allowlist, and a **limit of runs per day per server** (for example 2). Create the draft; someone else approves it.
4. **Connect it to Workflow OS.** Add a workflow on **A runbook run stopped** or **A maintenance plan finished** that opens a ticket, posts to a channel or pages someone.
5. **Export for your auditors.** **Settings → Audit export**: choose a date range and download the audit trail or the operation history as CSV.

**How to check it worked:** a fenced contractor's view shows only their servers, and an attempt outside them is refused with the Access rule. A production reboot request shows *1 of 2* after the first approval, and the export lists both approvers.

## Frequently asked questions

**Can a limited engineer still see incidents?**
Yes. Incidents and the weekly report stay workspace-wide.

**Does two-person approval affect staging?**
No. It applies to production servers only, and it's off by default.

**Does the export include command output?**
No. It includes who, what, when, results and verification, with formula-like cells neutralised.

**Do templates let TR-AI run commands?**
No. Built-in operations are fixed in the agent, and anything else is declared on your own server.
