Skip to main content

Create a guardrail

Write a rule that holds matching changes during a time window, or lets them run only inside one.

R
Written by Romy Haik

A guardrail is a time window plus the changes it applies to. Without any guardrail, a change cleared to run unattended runs when it is approved.

Who can do this: Admins and Operators. Viewers see the rules, read-only.

Open the editor

  1. Go to Configurations > Guardrails.

  2. Scroll to Guardrails and click New guardrail (or Write the first one if there are none).

Fill it in

  1. Name this rule: type a name at the top.

  2. Choose what the rule does:

    • Never in this window: matching changes are held while the window is open.

    • Only in this window: matching changes wait for the window.

  3. Choose when:

    • Weekly: click the day letters, or a preset (Weekdays, Weekend, Nights). Set a start and end time and a timezone. A range that crosses midnight belongs to the day it starts.

    • Once: set a start and end date and time, and a timezone.

    • Any time: no window. The rule applies at every moment.

  4. Choose what it applies to. With no condition, it applies to every change. To narrow it:

    1. Click Add condition.

    2. Pick a field, is or is not, and one or more values.

    3. Add more conditions to narrow further. All conditions must match.

Fields you can use: Environment, Sensitivity, Host role, Host group, Host, Vendor, Software, Installed version, Priority, Change risk, Version jump, Safety, Deployed, Action. Values come from your open changes, so you can pick only what exists in your estate.

Check it before you save

  • This rule reads the rule back as one sentence, for example "Never deploy changes where environment is prod weekdays 08:00–18:00 (UTC)." Click Code to see it as code.

  • Dry run on the open changes shows how many open changes the rule names, how many it holds right now, and how many of the next 168 hours changes can run. It also lists changes that would move from running to held, or be released.

Save

  1. In Why this change? (required), type a reason or pick one of the suggestions.

  2. Click Save rule.

If something is missing, the editor lists it, for example A rule needs a name. or Pick at least one day.

See also: Manage guardrails.

Did this answer your question?