> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Inbound PrivateLink for Private Cloud on AWS

> Learn how to connect your AWS Virtual Private Clouds (VPCs) to your Auth0 Private Cloud on AWS space over AWS PrivateLink.

> [!WARNING]
>
> **The Inbound PrivateLink feature is in [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages.md).**
>
> To participate, contact Auth0 Support.
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

Inbound PrivateLink lets you connect from your own AWS Virtual Private Cloud (VPC) directly to your Auth0 Private Cloud space over [AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html). Requests from your AWS workloads to Auth0 stay on the AWS network.

Inbound PrivateLink works alongside the public internet edge, and you decide which traffic uses it. Requests from VPCs connected through PrivateLink use the private path. All other traffic, like end-user browser logins, continues to use the internet edge. Auth0 calls this Hybrid Mode, and it's the only mode available during Early Access.

Use Inbound PrivateLink to:

* Keep authentication traffic private
  * Send token requests, machine-to-machine (M2M) requests, and Management API calls from your AWS workloads to Auth0 without crossing the public internet. This can help you meet network-isolation and Zero Trust requirements, remove public egress from those workloads, and replace IP allowlisting with endpoint-level access controls.
* Reduce latency
  * Requests travel directly between VPCs in the same AWS region instead of routing out to the internet edge and back.
* Support compliance and data residency requirements
  * Authentication traffic from your workloads doesn't transit third-party edge networks.

## Prerequisites

> [card] Before you start
>
> * An Auth0 Private Cloud on AWS space.
>   * Inbound PrivateLink isn't available for Public Cloud tenants or Private Cloud on Azure.
> * An AWS VPC in the same AWS region as your Auth0 space.
> * The ARNs of the AWS account principals that will create VPC endpoints, for example `arn:aws:iam::123456789012:root`. You can connect from as many VPCs and AWS accounts as you need. AWS service quotas apply to your account.
> * If you plan to use Private DNS, workloads that use the VPC's default DNS resolver (Amazon Route 53 Resolver). Private DNS doesn't change the public DNS records for your hostnames. If your workloads use a different resolver, [manage DNS yourself](#manage-dns-yourself).
>
> Auth0 doesn't charge extra for Inbound PrivateLink. AWS bills you for the VPC endpoints you create, at standard [AWS PrivateLink pricing](https://aws.amazon.com/privatelink/pricing/).

## Inbound and Outbound PrivateLink

Private Cloud on AWS supports PrivateLink in both directions. You can use them together for a fully private path between your AWS environment and Auth0.

| | Inbound PrivateLink | Outbound PrivateLink |
| - | - | - |
| Direction of traffic | Your network → Auth0 | Auth0 → your network |
| Who starts the request | Your applications | Auth0 |
| Examples | Token requests, client credentials (M2M) requests, Management API calls, login traffic from apps in your VPC | Actions calling internal APIs, custom database action scripts, webhooks, custom log streams |

To learn more about Outbound PrivateLink, read [Secure Outbound Networking](https://auth0.com/docs/deploy-monitor/deploy-private-cloud/private-cloud-on-aws.md#secure-outbound-networking).

## How Inbound PrivateLink works

When Inbound PrivateLink is enabled, Auth0 exposes a PrivateLink endpoint service for your space in each region your Private Cloud deployment uses. The endpoint service only accepts connections from AWS principals that Auth0 has added to its allowlist. You connect to it by creating a VPC interface endpoint in your own AWS account, in the same region as your space. In AWS terms, you're the service consumer and Auth0 is the service provider. To learn more, read [AWS PrivateLink concepts](https://docs.aws.amazon.com/vpc/latest/privatelink/concepts.html).

You choose how your workloads resolve your space hostnames to the endpoint:

| | Private DNS | Manage DNS yourself |
| - | - | - |
| How it works | Turn on **Enable DNS name** on your VPC endpoint. Inside your VPC, your space hostnames (`*.<spacename>.auth0app.com`) resolve to the endpoint's private IP addresses. | Leave Private DNS off and create your own DNS records that point the hostnames you choose to the endpoint. |
| Which traffic uses PrivateLink | All requests from workloads that use the VPC's DNS resolver | Only the hostnames you point to the endpoint |
| Best for | Sending all workload traffic from a VPC over PrivateLink | Moving traffic over gradually, or workloads that use their own DNS resolver |
| Auth0 support | Fully supported | Limited. Your DNS setup is your responsibility. |

With either option, your applications keep using the same hostnames, and Auth0 serves the same [TLS certificates](https://auth0.com/docs/customize/custom-domains/self-managed-certificates/tls-ssl.md) it serves on the internet edge, so you don't need to change application code or certificates. Traffic from everywhere else keeps using the internet edge.

One endpoint service serves your whole space, so every tenant in the space is reachable through it. To limit which of your workloads can use it, read [Restrict access to your endpoint](#restrict-access-to-your-endpoint).

## Set up Inbound PrivateLink

**1. Request Inbound PrivateLink**

File a request in the [Support Center](https://support.auth0.com/). Include your Private Cloud space name and the AWS principal ARNs that will connect.

**2. Auth0 enables Inbound PrivateLink on your space**

Auth0 turns on the PrivateLink infrastructure for your space. This is a one-time step that takes effect during your space's next scheduled deployment.

Auth0 then adds your AWS principals to the allowlist and sends you the endpoint service name, for example `com.amazonaws.vpce.us-east-1.vpce-svc-0123456789abcdef0`. If your space uses [Geo high availability (GeoHA)](#geoha-spaces), you get one endpoint service name for each region.

**3. Create a VPC interface endpoint**

Once Auth0 confirms your principals are on the allowlist, create an interface VPC endpoint in your AWS account that connects to the Auth0 endpoint service. Auth0 accepts connection requests from allowlisted principals automatically, so the connection is available as soon as you create the endpoint. To learn more, read [Connect to an endpoint service as the service consumer](https://docs.aws.amazon.com/vpc/latest/privatelink/use-endpoint-service.html) in the AWS documentation.

> [!WARNING]
>
> Private DNS takes effect as soon as the endpoint is available. If the VPC already runs production workloads that call Auth0, create the endpoint with Private DNS off, [verify the connection](#verify-the-connection), and then turn on Private DNS.

> [tab] AWS console
>
> 1. In the Amazon VPC console, go to **Endpoints** and select **Create endpoint**.
> 2. For **Type**, select **Endpoint services that use NLBs and GWLBs**.
> 3. For **Service name**, enter the service name Auth0 sent you, then select **Verify service**.
> 4. Select your VPC, and select subnets in each Availability Zone your workloads use.
> 5. Select security groups that allow inbound HTTPS (TCP 443) from your workloads.
> 6. To use Private DNS, select **Enable DNS name**. To manage DNS yourself, or to verify the connection first, leave it cleared.
> 7. Select **Create endpoint**.

> [tab] AWS CLI
>
> ```bash theme={null}
> aws ec2 create-vpc-endpoint \
>   --vpc-endpoint-type Interface \
>   --vpc-id vpc-0123456789abcdef0 \
>   --service-name com.amazonaws.vpce.us-east-1.vpce-svc-0123456789abcdef0 \
>   --subnet-ids subnet-0123456789abcdef0 subnet-0fedcba9876543210 \
>   --security-group-ids sg-0123456789abcdef0 \
>   --private-dns-enabled
> ```
>
> To verify the connection before you turn on Private DNS, use `--no-private-dns-enabled` instead.

**4. Verify the connection**

If you turned on Private DNS, check from a host inside your VPC that your space hostname resolves to the endpoint's private IP addresses:

```bash theme={null}
dig <tenant>.<spacename>.auth0app.com
```

You should get private IP addresses from your VPC's CIDR range. If you use a custom domain, check it too, for example `dig login.example.com`.

Then send a test request, for example to your tenant's OpenID Connect discovery endpoint:

```bash theme={null}
curl -v https://<tenant>.<spacename>.auth0app.com/.well-known/openid-configuration
```

If Private DNS is off, test through the endpoint's regional DNS name instead. You can find it in the VPC console under the endpoint's **Details** tab. Keep the `Host` header and SNI set to your space hostname so that TLS validation succeeds:

```bash theme={null}
curl -v https://<tenant>.<spacename>.auth0app.com/.well-known/openid-configuration \
  --connect-to <tenant>.<spacename>.auth0app.com:443:<endpoint-regional-dns-name>:443
```

## Change your AWS principals

To add or remove AWS principals later, file a request in the [Support Center](https://support.auth0.com/) with the ARNs. Changes don't need a deployment, but they're made manually by the Auth0 team, so allow time for your request to be routed and completed.

## Manage DNS yourself

If you leave Private DNS off, you control DNS resolution for your space hostnames. You decide which hostnames resolve to your VPC endpoint and which resolve to the public DNS records, so you can choose which requests use PrivateLink, for example to move traffic over gradually.

A common approach is a Route 53 private hosted zone associated with your VPC, with records that point the hostnames you choose to the endpoint's regional DNS name. Include your canonical tenant domains and any custom domains you want to route over PrivateLink. If your space uses GeoHA, read [GeoHA spaces](#geoha-spaces) to choose which endpoint each record points to.

Because this setup depends on your own infrastructure, Auth0 Support can only offer limited help with it.

## Custom domains

Custom domains work over Inbound PrivateLink. What you need to do depends on the domain type:

| Domain type | How it resolves inside your VPC | What you need to do |
| - | - | - |
| Canonical domain (`<tenant>.<spacename>.auth0app.com`) | Private DNS answers for `*.<spacename>.auth0app.com` with your endpoint's private IP addresses. | Turn on Private DNS on your VPC endpoint. |
| Auth0-managed custom domain (for example, `login.example.com`) | Your `CNAME` record points the custom domain to its edge hostname, `<generated-id>.edge.tenants.<spacename>.auth0app.com`. The edge hostname resolves to your canonical domain, which Private DNS resolves to your endpoint. | Turn on Private DNS. |
| Self-managed custom domain (your own reverse proxy or CDN in front of Auth0) | Your `CNAME` record points the custom domain to your reverse proxy. The proxy forwards requests to your custom domain's [origin hostname](https://auth0.com/docs/customize/custom-domains/self-managed-certificates#origin-hostname-settings), `<generated-id>.edge.tenants.<spacename>.auth0app.com`, which resolves to your canonical domain and then, through Private DNS, to your endpoint. | Turn on Private DNS, and run your proxy in, or route it through, a VPC that has the endpoint. |

Private DNS only answers for clients that use your VPC's DNS resolver. End-user browsers and on-premises networks without DNS forwarding still resolve to the internet edge.

If you run your own private hosted zone or conditional forwarder for your custom domain, it can stop the `CNAME` chain from reaching the canonical domain. Run `dig login.example.com` from inside your VPC and confirm it returns your endpoint's private IP addresses.

With a self-managed custom domain, requests appear to come from your proxy. To keep anomaly detection, rate limiting, and MFA risk signals working, have your proxy send the end user's IP address in the `X-Forwarded-For` header, or in the header you set with `custom_client_ip_header`. To learn more, read [Configure Custom Domains with Self-Managed Certificates](https://auth0.com/docs/customize/custom-domains/self-managed-certificates).

## GeoHA spaces

If your space uses Geo high availability (GeoHA), it has an endpoint service in each of its two regions. Auth0 forwards requests that reach the secondary region's endpoint service to the active primary region. During a geo failover, Auth0 switches PrivateLink routing at the same time as public DNS, so you don't need to change anything.

Which regions to connect from depends on where your workloads run:

* If your workloads run only in your space's primary region, connect from a VPC in the primary region.
* If your workloads run in both regions, connect each region's workloads to the endpoint service in the same region.

Where you can, connect to both endpoint services. If the region Auth0 is failing over from is completely unreachable, Auth0 might not be able to switch PrivateLink routing, and traffic through that region's endpoint might not succeed.

## Restrict access to your endpoint

Private Cloud IP allowlists don't apply to requests that arrive over PrivateLink. Auth0 bypasses them for PrivateLink traffic, so access through your endpoint is controlled in your AWS account instead.

You can't bind a PrivateLink connection to a specific tenant, application, or [Organization](https://auth0.com/docs/manage-users/organizations.md). To control which of your workloads use it, use security groups on the VPC endpoint, [VPC endpoint policies](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html), and your own routing and DNS.

## Feature support

Requests over PrivateLink don't pass through the internet edge, and they reach Auth0 from Auth0's PrivateLink network addresses instead of the end user's IP address.

With a canonical domain or an Auth0-managed custom domain, Auth0 can't see the end user's IP address or location. The exception is token endpoint requests from applications that use the [Trust Token Endpoint IP Header](https://auth0.com/docs/get-started/applications/application-settings.md) setting. With a self-managed custom domain, your proxy forwards the end user's IP address, so features that depend on it keep working.

In the table, **Limited** means the feature works with restrictions, which are described in [Limited and unsupported features](#limited-and-unsupported-features).

| Feature | Canonical domain | Auth0-managed custom domain | Self-managed custom domain |
| - | - | - | - |
| [Breached Password Detection](https://auth0.com/docs/secure/attack-protection/breached-password-detection.md) | Supported | Supported | Supported |
| [Brute-Force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection.md) | Limited | Limited | Supported |
| [Suspicious IP Throttling](https://auth0.com/docs/secure/attack-protection/suspicious-ip-throttling.md) | Limited | Limited | Supported |
| [Bot Detection](https://auth0.com/docs/secure/attack-protection/bot-detection.md) | Limited | Limited | Limited |
| Attack protection IP AllowLists | Limited | Limited | Supported |
| [Adaptive MFA](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa.md): NewDevice | Supported | Supported | Supported |
| Adaptive MFA: UntrustedIP and ImpossibleTravel | Not supported | Not supported | Supported |
| [Tenant ACL](https://auth0.com/docs/secure/tenant-access-control-list) rules on end-user IP address, geolocation, or ASN | Not supported | Not supported | Supported |
| Tenant ACL rules on connecting IP address | Not supported | Not supported | Not supported |
| Tenant ACL rules on JA3/JA4 fingerprint, user agent, or hostname | Supported | Supported | Limited |
| [Rate limits](https://auth0.com/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy) per IP address | Limited | Limited | Supported |
| End-user IP address and location in logs and Actions | Limited | Limited | Supported |
| [Trust Token Endpoint IP Header](https://auth0.com/docs/get-started/applications/application-settings.md) | Supported | Supported | Supported |
| [Native to Web SSO](https://auth0.com/docs/authenticate/single-sign-on/native-to-web) device binding | Limited | Limited | Limited |
| [mTLS](https://auth0.com/docs/get-started/applications/configure-mtls) client authentication and certificate-bound tokens | Not supported | Not supported | Supported |
| [Akamai supplemental signals](https://auth0.com/docs/secure/attack-protection/configure-akamai-supplemental-signals.md) | Not supported | Not supported | Limited |
| Private Cloud IP allowlists | Doesn't apply | Doesn't apply | Doesn't apply |

### Limited and unsupported features

> [accordion] Brute-Force Protection
>
> All PrivateLink requests appear to come from a small set of IP addresses, so protection applies per user rather than per user and IP address. Repeated failed logins for one account block that account for all PrivateLink clients.
>
> Token endpoint requests that use the **Trust Token Endpoint IP Header** setting use the end user's IP address.

> [accordion] Suspicious IP Throttling
>
> All PrivateLink users share a small number of throttling limits, so one busy client can throttle many other users.
>
> Token endpoint requests that use the **Trust Token Endpoint IP Header** setting use the end user's IP address. For other PrivateLink traffic, don't rely on Suspicious IP Throttling.

> [accordion] Bot Detection
>
> Bot signals from the internet edge aren't available over PrivateLink. With a canonical domain or an Auth0-managed custom domain, IP address reputation isn't available either.
>
> TLS fingerprint signals still apply, but with a self-managed custom domain they describe your proxy, not the end user.

> [accordion] Attack protection IP AllowLists
>
> End-user IP addresses in your IP AllowList don't match PrivateLink requests. The exception is token endpoint requests from applications that use the **Trust Token Endpoint IP Header** setting.

> [accordion] Adaptive MFA
>
> The UntrustedIP and ImpossibleTravel risk assessments need the end user's IP address and location. With a canonical domain or an Auth0-managed custom domain, they're only available for token endpoint requests that use the **Trust Token Endpoint IP Header** setting.

> [accordion] Tenant ACL
>
> With a canonical domain or an Auth0-managed custom domain, Auth0 doesn't know the end user's IP address or location, so rules on them never match PrivateLink requests. A rule that blocks requests that don't match may block all PrivateLink traffic.
>
> With a self-managed custom domain, fingerprint rules match your proxy, not the end user.
>
> Rules on the connecting IP address don't work for any domain type.

> [accordion] Rate limits per IP address
>
> These limits apply to the combined PrivateLink traffic, so you can reach them sooner.

> [accordion] End-user IP address and location in logs and Actions
>
> Tenant logs and `event.request.ip` show an Auth0 private network address, and `event.request.geoip` is empty.
>
> Tenant logs for token endpoint requests that use the **Trust Token Endpoint IP Header** setting show the end user's IP address.

> [accordion] Native to Web SSO device binding
>
> With a canonical domain or an Auth0-managed custom domain, binding can fail when the native application and the web application reach Auth0 different ways, one over PrivateLink and the other over the internet edge.
>
> If both use PrivateLink, ASN binding always passes, so it doesn't protect the session transfer.

> [accordion] mTLS
>
> As on the internet edge, mTLS needs a self-managed custom domain. Your proxy must terminate the mTLS connection and forward the client certificate headers to Auth0.

> [accordion] Akamai supplemental signals
>
> As on the internet edge, Akamai supplemental signals need a self-managed custom domain with Akamai as your reverse proxy. Akamai can't connect to your VPC endpoint directly, so it must forward requests to a proxy in your VPC that sends them over PrivateLink.

## Limitations

During Early Access:

* You can't block the internet edge to make PrivateLink the only way into your space.
* Some Auth0 features are limited over PrivateLink. To learn more, read [Feature support](#feature-support).
* CDN assets, like Universal Login static assets from `cdn.auth0.com`, still load over the internet.

## Learn more

* [Private Cloud on AWS](https://auth0.com/docs/deploy-monitor/deploy-private-cloud/private-cloud-on-aws.md)
* [AWS PrivateLink documentation](https://docs.aws.amazon.com/vpc/latest/privatelink/what-is-privatelink.html)
