# Policy Gate

### Policy Gate

An approval gate stops the pipeline and waits for approval either from a human user or from a computer based on data from a supported plugin.

You can add a **Policy** Gate after creating a pipeline to the application. To add a **Policy Gate** follow the steps below:

If you haven’t created an application already,  click [**here**](https://docs.opsmx.com/release-history/previous-releases/isd-4.0/knowledgebase/manage-application/create-an-application)**.**

If you haven’t created your pipelines yet, click [**here**](https://docs.opsmx.com/release-history/previous-releases/isd-4.0/knowledgebase/manage-pipelines/create-a-pipeline).

1. From the [**Application dashboard**](https://docs.opsmx.com/user-guide/dashboard/application-dashboard), select your application name which you need to edit a pipeline. Click **Three dots** at end of the application name and then select [**Edit Pipeline**](https://docs.opsmx.com/user-guide/manage-pipelines/edit-pipeline) as shown in the image below.

![](https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2F56OyOZYMdJjm1fXvO0p2%2Fimage.png?alt=media\&token=78a233a8-3318-4b0d-977f-cef811c4813b)

2\.  The **Pipelines** page appears, where you need to add the Approval Stage. Click [**Add Stage**](https://docs.opsmx.com/user-guide/manage-pipelines/add-stage)**,** select **Policy** from the **Type** drop-down as shown in the image below.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2FsAULz6rpml0AJnjdPFDV%2Fpolicygate1.png?alt=media&#x26;token=500244f0-a637-4180-aab0-78db213859e9" alt=""><figcaption></figcaption></figure>

3. The **Policy Configuration** page appears. You need to configure the policy configuration attributes as shown in the image below.

<figure><img src="https://2047464521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBEa1hoX6SqpDj-ymNs%2Fuploads%2Fq5trVijXYiX4HNrkOohp%2Fpolicygate2.png?alt=media&#x26;token=edacb0b4-bfae-4fed-b513-0858441b7fd9" alt=""><figcaption></figcaption></figure>

**Policy configuration attributes**

* **Environment**: Select the environment relevant to this stage from the drop-down menu&#x20;
* **Policy:** Select the policy you want to evaluate. You can manage policies from Setup > Policies
* **Payload:** You may pass an additional payload for the policy evaluation

4. Click **Save changes** and the Policy Gate is added to your pipeline.
