/plushcap/analysis/ngrok/ngrok-post-manage-traffic-traffic-policy-phases

Manage traffic at critical connection points with Traffic Policy phases

What's this blog post about?

The new phase-based approach to Traffic Policy in ngrok provides more granular control over traffic management, allowing for actions to be triggered at precise stages in the connection lifecycle. The new labels `on_tcp_connect`, `on_http_request`, and `on_http_response` replace the previous inbound and outbound directions, enhancing clarity and flexibility in managing traffic. This approach enables users to block unwanted connections early at the transport layer or manage TLS termination more effectively. The changes also simplify management by allowing users to provide local YAML or JSON files directly, preserving documentation and context. Additionally, SDKs have been updated to support the new Traffic Policy changes, and the Kubernetes Operator has been modified to work with the new phases. With this enhancement, users can now deny traffic before a connection is fully established, log metadata, restrict IPs, and apply actions at specific phases of the connection lifecycle, laying the groundwork for even greater control over traffic management.

Company
Ngrok

Date published
Nov. 21, 2024

Author(s)
Nijiko Yonskai

Word count
1391

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.