Skip to content

Apply an ACP via an Ingress

Old documentation for Hub v1

This page describes how to apply an Access Control Policy (ACP) via an Ingress.


After you created an ACP in your cluster, you have to assign it to the Ingress of the service you want to secure.

Traefik Hub uses the Ingress Controller features to set access control on top of your Ingresses.

The Traefik Hub Agent supports the following Ingress Controllers:

Ingress Controller Version
Traefik Proxy > v2.7
Nginx Community > v1

Before you begin

Before going further, please make sure have the following:

Web Interface

On the page of the service that was exposed by the Ingress, you can find the service details.

Find the Edit button next to the Ingress section and, in the form, select the Access Control Policy.

Apply the changes by saving the form. Applying the update can take a few moments.

Custom Resource Definition

Edit the Ingress resource, and add the following annotation to the metadata:

  annotations: <..acp-name..>

Apply the changes and wait a few seconds before accessing the service through the Ingress.