# Create a banner and change confirmation policy

Define a policy that allows you to display a custom banner with your chosen text and color across a specified group of environments, helping users clearly distinguish between them.

This policy also lets you configure a confirmation prompt that appears whenever a user applies a change to those environments, adding an extra layer of protection for sensitive workloads.

To create a banner and change confirmation policy, in the menu, under **Environment-related**, select **Policies** then select **Create policy**. From the policy type list, navigate to the **All (Kubernetes, Docker, Podman and Swarm)** > **Banner and change confirmation** section, select either a predefined template or the **Custom** policy, then select **Continue** to begin configuring the policy.

| Field/Option               | Overview                                                                                                                                                                                                                              |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                       | Define a name for this policy.                                                                                                                                                                                                        |
| Environment groups         | <p>Select one or more environment <a href="/pages/-MgcuVpHfggt_wDn_a0N">groups</a> from the dropdown menu.<br>If the selected group is already included in an existing policy, a warning icon will appear next to the group name.</p> |
| Highlight environment      | Enable this option to display a colored border around all pages for environments within the selected environment groups.                                                                                                              |
| Highlight color            | Specify the color of the border. You can select a color using the color picker or enter a hex code directly.                                                                                                                          |
| Banner message             | Optionally specify a message to display within the border.                                                                                                                                                                            |
| Enable change confirmation | Enable this option to display a confirmation dialog whenever changes are made in environments within the selected environment groups.                                                                                                 |
| Confirmation title         | Specify the title displayed in the confirmation dialog.                                                                                                                                                                               |
| Confirmation message       | Specify the message displayed within the confirmation dialog.                                                                                                                                                                         |
| Confirmation style         | Select the style of the confirmation dialog. See below for examples of each style.                                                                                                                                                    |

<figure><img src="/files/wqW0TctwEXYFXZd8AsEo" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/TZafwODEA3NZi8pcre5g" alt=""><figcaption></figcaption></figure>

### Example banner styles

<table data-header-hidden><thead><tr><th></th><th data-type="image"></th></tr></thead><tbody><tr><td>Default</td><td><a href="/files/NzeZX0OQPWMQ3hivbqOY">/files/NzeZX0OQPWMQ3hivbqOY</a></td></tr><tr><td>Warning</td><td><a href="/files/zxdGFYEC3PHQL3m49GEC">/files/zxdGFYEC3PHQL3m49GEC</a></td></tr><tr><td>Error</td><td><a href="/files/V3s5jZLpjWCqlYz8ZziC">/files/V3s5jZLpjWCqlYz8ZziC</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.portainer.io/sts/admin/environments/policies/any-environment-type-policies/create-a-banner-and-change-confirmation-policy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
