Skip to main content
A Rule names one kind of write, such as ec2:StopInstances on your staging AWS account, and decides it before the Approval mode does, once CloudThinker turns on Rule enforcement for your workspace. It’s off by default: while the Rules step says In preview, Rules only record what they would decide and the Approval mode alone decides, so choose Manual for writes that must wait for a person (details). Agents propose Rules as they work, and nothing changes until a workspace Admin accepts one.

Prerequisites

  • The workspace Admin role to accept, edit, disable, or restore a Rule. Developers and Viewers can read Rules.
  • At least one cloud account or cluster connection to use Find rules.

What a Rule contains

A Rule never matches a read, sensitive reads included, because reads always run. An Allow Rule never matches a call CloudThinker cannot identify, such as a command that builds its arguments at run time, a program CloudThinker doesn’t model, or an API path outside the connection’s catalog. An Allow on every operation must name its connections. Each Rule shows an access badge so you can spot risky ones fast:

Find Rules for your workspace

A check-up is a chat where CloudThinker reads your connections, Optimize findings, incidents, alerts, and approval history, then proposes Rules for you to accept.
1

Open the Rules tab

Open Approvals in the sidebar, then the Rules tab.
Rules tab with Active, Needs review, and Dismissed tabs, and the Add from template and Find rules buttons

The Rules tab: active Rules, Rules waiting for review, and Add from template or Find rules

2

Pick what to look for

Click Find rules. Keep or clear each focus:
3

Start the check-up

Click Start check-up. It takes 5–10 minutes and uses credits. While it runs, the button reads Check-up running and opens that chat.Success state: the banner on the Rules tab says how many Rules need your review, with a Review button.
You can also start a check-up from any chat by typing /find-rules.

Ask for one Rule in chat

When you already know the Rule you want, type /create-policy in a chat. CloudThinker asks what you need, checks what your Rules do today, and posts a proposal card.
To turn a call you just approved into a Rule, click Approve and draft rule on its approval card. The call runs now, and a side chat drafts the Rule.

Review and accept Rules

1

Open the review

On the Rules tab, click Review in the banner, or open the Needs review tab.
2

Check each Rule

Open a Rule to read it. What would change replays the last 7 or 30 days of calls against it and tells you how many would run without asking, ask first, or be refused, with example commands.
3

Select and accept

Nothing is selected at first. Select up to 50 Rules, then click Accept or Dismiss. An Allow on every operation, a destructive Allow, or a flagged Allow (one imported from an old grant that covers a risky access class, such as session calls) asks you to confirm first.Success state: a toast says “Accepted N Rules” and offers Undo. A Rule that failed stays in the list with its reason.
The same proposals show as cards in the chat that made them. Accept on the card does the same as Accept on the Rules tab.
A proposal that overlaps Always blocked, the built-in list of calls that never run, cannot be accepted. It would never take effect, so dismiss it.

Edit, disable, or restore a Rule

Open a Rule on the Rules tab. As an admin, you see the edit form straight away.

Windows

A Window is a short-lived Rule made with one click: Approve for… on an approval card. It covers the exact operation and connection that was approved, only in that one chat or incident. It always ends: after 1 hour, when the incident ends (This incident), or after 30 days. A 30-day Window still never applies outside the chat where you approved it. Windows show on the Rules tab with the source Window and their end time. You cannot edit a Window. To end it early, click Disable in its row menu.

Filter the list

The Active, Needs review, and Dismissed tabs show their counts. Filter by Source, Connector, Runs from, or Approved by, or search by name.

Export and import your policy

Keep your policy as a file, for example in Git, and load it into another workspace. Both actions are in the … menu next to Find rules.
  • Export active Rules downloads policy-<workspace>-<date>.yaml. It holds your active Rules, approver groups, Approval modes, and the two-person setting. It never holds Windows, proposals, or secrets.
  • Import policy reads a YAML or JSON file of up to 1 MB. It shows what would change and lists each problem by line and field first. It applies the file only when you click, and keeps the file if the apply fails. Import merges: Rules in the file are added or updated by slug, and Rules missing from the file stay as they are. Select Remove Rules that are not in the file to dismiss them instead. Imported Ask first and Deny Rules start active. An imported Allow Rule waits for review unless you turn on Activate Allow Rules.

Troubleshooting

The agent’s policy tool isn’t turned on for your CloudThinker deployment, so check-ups, Change with AI, and the /find-rules and /create-policy commands are hidden. It’s not a setting on this page. Contact CloudThinker support, or whoever runs your self-hosted deployment, to ask for it. You can still edit Rules in the form, add them from a template, or import a policy file.
A check-up needs at least one cloud account or cluster. Add one in Connections, then try again.
You need the workspace Admin role, or the Rule overlaps Always blocked. If the Rule changed after you opened it, reload it and review it again.
Rules do not decide yet in this workspace. Each call is checked against them and only the result is recorded, so you can review and accept proposals now. Until enforcement is on, the Approval mode alone decides each write. CloudThinker turns enforcement on per workspace; contact CloudThinker support to ask for it.
Check enforcement first: if the Rules tab says Rules are in preview, no Rule decides anything yet (see above). Then check the mode: Manual asks before every write, even one an Allow Rule covers. Then check Runs from and Connections. A Rule only matches the run types and connections it names.

Next steps

Approval mode

Decide what happens to a write that no Rule covers

Approvers and Activity

Choose who answers an Ask first Rule and audit what Rules decided