Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Adminhead Verified Orgv0.4.3In 1 marketplace
PreToolUse guard (needs bun) that denies unsafe tofu, terraform and terragrunt applies, destroys, imports and state surgery, gates subagent plan, init, state, output and aws calls, asks before destructive aws, pulumi and helmfile operations, and guards kubectl, helm, talosctl and omnictl changes on production clusters, through common aliases and wrappers. By default it no longer auto-approves plan, init or other read-only forms (option autoAllowReadOnly).
Run automatically on Claude Code events. Claude doesn't decide.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Enable the guardenabled
Off removes the guard: tofu, terraform, terragrunt, aws, pulumi, kubectl, helm, talosctl and omnictl calls are no longer denied or asked about, and subagents no longer need the brief token, so your permission rules decide. Only an exact false turns it off.
booleandefault true
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
prodPatternRegex (at most 200 characters) matched case-insensitively as a whole word against kube contexts, kubeconfig paths, pulumi stacks and helmfile environments. An invalid pattern makes every production check ask.
stringdefault prod(uction)?\d*|prd|live
Auto-approve read-only formsautoAllowReadOnly
Approve a few exact forms without a prompt: tofu/terraform plan, init, validate, fmt, version, state list and state show (also through mise run tofu <env> and mise exec), and aws --version or help. plan, init and mise tasks run code from the repo. Off: the guard has no opinion on them and your permission rules decide. Subagents still need the brief token either way.
booleandefault false
A PreToolUse hook on Bash (needs bun) that guards infrastructure commands: OpenTofu, Terraform, Terragrunt, the AWS CLI, Pulumi, and kubectl, helm, helmfile, talosctl and omnictl on production clusters. It denies the commands that should never run unreviewed, asks when it cannot tell, and otherwise says nothing so your own permission rules decide.
/plugin install cloud-ops-guard --marketplace Adminhead/claude-plugins
This is a direct install. iac-meta and aws-meta do not include it. Install it at the project's scope (--scope project or --scope local).
Migration: a project that got the guard through either meta before iac-meta/aws-meta 0.2.0 should run claude plugin install cloud-ops-guard@adminhead --scope <same scope as the meta> before claude plugin prune, or prune removes it as an orphan.
| Decision | Examples |
|---|---|
| deny | tofu apply without a saved plan, apply -auto-approve, destroy, import, state rm/mv/push; kubectl delete of PVs, PVCs, CRDs or nodes on a production cluster |
| ask | destructive aws operations (delete-*, terminate-*, s3 rm, kms schedule-key-deletion, …) and ones that open access or remove data or names (ec2 authorize-security-group-ingress and -egress, iam create-access-key, s3api put-bucket-acl, sqs purge-queue, ecr batch-delete-image, route53 change-resource-record-sets, iam create-user, create-login-profile, attach-user-policy and update-assume-role-policy, s3api put-object-acl and put-public-access-block, lambda add-permission, ec2 modify-security-group-rules); pulumi destroy/up/refresh/watch, --show-secrets and stack export; helmfile destroy/delete/sync/apply; a pulumi or helmfile verb held in a variable; kubectl and helm changes on production or on a cluster it cannot identify; talosctl and omnictl resets, upgrades, deletes and applies anywhere, and a talosctl verb held in a variable; output -json, state pull, console; commands it cannot parse |
| subagent gate | a subagent's plan, init, state show, output, apply of a saved plan, pulumi preview, aws call or production cluster change is denied unless its brief has a line ALLOW: cloud-ops, and asks when the brief cannot be read |
| allow | only with autoAllowReadOnly on (below) |
Aliases and wrappers count: tf, tg, k, kubecolor, oc, nix run nixpkgs#terraform -- … (versioned attributes such as terraform_1 too), nix shell … -c, busybox sh -c, fish -c, python3 -m awscli, sudo, timeout, env, mise exec --, npx and the like.
-h or --help next to an ask verb still asks (pulumi destroy --help), because the guard cannot tell whether an unknown flag takes -h as its value (pulumi destroy --yes --event-log -h runs the destroy).
The subagent token is the user's approval. The deny message tells the model to have the main session run the command or to ask the user, not to add the token itself.
Set these in /config under cloud-ops-guard:
| Field | Default | Meaning |
|---|---|---|
enabled | true | Off removes the guard. Only an exact false turns it off. |
autoAllowReadOnly | false | On: approve without a prompt the exact forms tofu/terraform plan, init, validate, fmt, version, state list and state show, also through mise run tofu <env> and mise exec --, and aws --version or aws … help. Off: the guard has no opinion on them. |
prodPattern | prod(uction)?\d*|prd|live | Regex, at most 200 characters, matched case-insensitively as a whole word against kube contexts, kubeconfig paths, pulumi stacks and helmfile environments. An invalid pattern makes every production check ask. Keep it linear: no nested quantifiers such as (a+)+, since the hook runs it on command text the model writes. |
plan, init and mise tasks run code from the repository (providers, modules, the task's own script), so the default leaves them to your permission rules and adds a prompt for users who relied on the old auto-approval. Turn autoAllowReadOnly on to restore it. A subagent still needs the brief token with the option on.
npx claudepluginhub adminhead/claude-plugins --plugin cloud-ops-guardBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground