Fix Invalid Controls

In this guide, you will identify and fix controls in an Invalid state using the Guardrails console.

A control enters the Invalid state when its configuration is internally inconsistent, typically because a control is enabled but its required sub-policies are all set to Skip. For example, setting GCP > Storage > Bucket > Active to Check: Active without configuring any of its sub-policies (Age, Last Modified) leaves the Active control with nothing to evaluate, so it reports Invalid with the reason "All sub-policies set to Skip".

Invalid is different from Error (the control tried to run but failed) or Alarm (the control ran successfully but the resource doesn't comply). Invalid means the control can't even evaluate, because its policy configuration is incomplete.

Prerequisites

Step 1: Filter Controls by Invalid State

Select Controls in the sidebar, then drill into the provider you want to inspect. On the node's Controls tab, switch the scope to Descendant so the list covers everything beneath it, then use the State filter to select Invalid.

Controls list filtered to Invalid state, showing bucket Active controls with their reason

Each row shows the control type, the reason for the Invalid state, and the resource. Seeing the same reason repeated across many rows, as here, is the usual signature of one missing sub-policy setting affecting every resource of a type.

Step 2: Open the Control Detail

Select an invalid control to open its detail page. The Control tab leads with the state and the reason.

Control detail page showing Invalid state, the reason, and both sub-policies set to Skip

Below the reason, the control lists the sub-policies it consulted and the value each resolved to. Both Age and Last Modified are Skip here, which is precisely why the control has nothing to evaluate. This alone is often enough to diagnose the problem.

Step 3: Investigate the Sub-Policies

Select the Policies tab to see the primary policy and its sub-policies together.

Control Policies tab listing the primary Active policy and its Age and Last Modified sub-policies

Select the primary policy (Bucket > Active) to confirm it's set to a value that enables the control, such as Check: Active. Then select each sub-policy in turn to find the ones resolving to Skip.

Selecting Bucket > Active > Age shows its effective value of Skip. Because no setting exists for it anywhere in the hierarchy, the action link reads CREATE SETTING rather than SETTING, which tells you the value is coming from the policy type's default.

Age sub-policy showing an effective value of Skip and a CREATE SETTING link

Step 4: Set a Sub-Policy

To resolve the Invalid state, give the control at least one sub-policy to evaluate. Click CREATE SETTING to open the policy setting form with the policy type and resource already filled in, then choose a value other than Skip.

Create Policy Setting form with the Age policy type, project resource, and a value selected

Choose the resource level deliberately. Setting the value on an account or project applies it to every matching resource beneath, which is usually what you want when many controls went Invalid at once.

[!NOTE] The sub-policy defines the criterion, not the enforcement. An Age value of Force inactive if age > 365 days only tells the Active control how to judge a bucket. Because the primary policy here is Check: Active, the control alarms and takes no action. It would only delete resources if the primary policy were set to one of the Enforce: Delete inactive values.

Click Create. Guardrails re-evaluates the affected controls automatically, so you don't normally need to run them by hand. If a control looks stale, Run Control on its detail page forces a fresh evaluation.

Step 5: Review

Verify the control has moved out of the Invalid state.

Control detail page showing OK state with the Age sub-policy resolving to Active

The control is now OK, the reason names the sub-policy that decided the outcome (Active: Age), and the sub-policy list shows Age resolving to Active with the dates behind that judgment.

Troubleshooting

IssueDescriptionGuide
Control remains Invalid after setting a sub-policyThe control may need to be re-run manually, or the setting may be at the wrong level in the hierarchy.Click Run Control on the control, then check the Policies tab to confirm the effective value changed.
"All sub-policies set to Skip" but I set oneThe setting may be at a lower precedence or overridden by a higher-level setting.Open the sub-policy and use its Hierarchy view to see which setting is winning.
Many controls Invalid at onceA policy pack may have been attached that enables controls without configuring their sub-policies.Review recently attached policy packs and add the missing sub-policy settings.
Further assistanceIf the issue persists after investigation.Open a Support Ticket with screenshots of the control and its Policies tab.