Skip to main content

Create a guardrail

A custom guardrail bundles one or more rules under a name, a scope, and an effect. Authoring one takes four decisions: what to call it, which resource type it inspects, what happens on violation, and which rules belong inside it.

Before you start​

  • Author the rules first (or pick existing ones). A guardrail must reference at least one rule. See Create rules.
  • You need account Admin or Owner to create, update, or delete a guardrail. Other members can read but not edit.
  • The guardrail name must be unique inside the account.

Create​

  1. Open the Guardrails tab and click Create New Guardrail.

    Create new guardrail button

  2. Enter a Name and an optional Description.

    Name and description form

  3. Pick a Scope — the resource type this guardrail inspects.

    ScopeWhat it evaluates
    ProjectProject name and description.
    EnvironmentEnvironment name and description.
    ServiceService name and description.

    Scope picker

  4. Attach one or more Rules from your rule library. If the list is empty, see Create rules first.

    info

    A single guardrail can carry multiple rules — all evaluated together. Every rule in the same guardrail must share the same scope.

    Attach rules to guardrail

  5. Pick an Effect — what happens when a rule inside the guardrail is violated.

    EffectBehavior
    BlockThe create or update operation is rejected. The actor sees the guardrail's message.
    WarnThe operation is allowed; the violation is surfaced in audit results and in the console.

    Effect picker with block and warn options

  6. Review the configuration and click Create.

    Review and create

  7. To validate the new guardrail against your existing resources, click Run Audit from the guardrail list.

    Run audit button

The guardrail is created in the enabled state by default. Toggle it off from the guardrail row if you want to author it now and activate it later.

Edit a guardrail​

Edits replace the full guardrail — send every field you want preserved.

  1. Open the Guardrails tab. Click the row's action menu.

    Action menu on a guardrail row

  2. Click Edit Guardrail and adjust the fields. Scope is editable but rules must continue to match the new scope.

    Edit guardrail form

Delete a guardrail​

Deletes are permanent. The audit history captured under the guardrail stays in the audit log; the guardrail itself stops evaluating immediately.

  1. Open the Guardrails tab and click the row's action menu.

    Action menu on a guardrail row

  2. Click Delete Guardrail and confirm.

    Delete guardrail confirmation

Honest limits​

  • Name is unique per account. Two guardrails in the same account can't share a name.
  • Status toggles the whole guardrail, not individual rules. Disable the bundle to silence every rule inside it; remove rules individually to keep the rest evaluating.
  • Effect applies to every rule in the bundle. Mixed block + warn behavior requires separate guardrails.
  • Scope is fixed at create. Re-create the guardrail under a new scope if the resource target changes.
  • Every change is recorded. Create, update, status toggle, and delete each write an entry the Activity log captures and the audit log keeps for compliance review.

What's next​