Skip to main content

Modules to Traffic Policy Actions reference

Migration instructions per module

OAuth authentication (oauth)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

OpenID Connect authentication (oidc)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

IP policy (ip_policy)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

Mutual TLS and TLS termination (mutual_tls, tls_termination)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

Request headers (request_headers)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

Response headers (response_headers)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

Compression (compression)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

Webhook validation (webhook_validation)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

Circuit breaker (circuit_breaker)

Old config example:
New Traffic Policy YAML: Leverages the following actions:

SAML authentication (saml)

  • Traffic Policy does not currently natively support SAML.
  • You may want to try out the OIDC action or reach out to ngrok support.

✅ Quick checklist

🛡️ Final Tips

  • Always test your Traffic Policy in staging before production.
  • Validate YAML syntax carefully—indentation matters.
  • If you have complex expressions, validate them in small steps.
  • If unsure, rebuild small features first, then layer on more complex features.
  • Backup your endpoint configuration before deletion.