# Monitoring and Access Policies for HTTP Egress Traffic

DevFeed: [Monitoring and Access Policies for HTTP Egress Traffic](<https://devfeed.tech/articles/monitoring-and-access-policies-for-http-egress-traffic-48666.md>)

Original publisher: [Read original article](<https://istio.io/latest/blog/2018/egress-monitoring-access-control/>)

Author: Vadim Eisenberg and Ronen Schaffer (IBM)

Published: 2018-06-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [Istio](<https://devfeed.tech/sources/istio-blog.md>)

Topics: [istio](<https://devfeed.tech/topics/istio.md>), [service-mesh](<https://devfeed.tech/topics/service-mesh.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [gateway](<https://devfeed.tech/topics/gateway.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [egress](<https://devfeed.tech/tags/egress.md>), [external-services](<https://devfeed.tech/tags/external-services.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [http](<https://devfeed.tech/tags/http.md>), [ingress](<https://devfeed.tech/tags/ingress.md>), [istio](<https://devfeed.tech/tags/istio.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [logs](<https://devfeed.tech/tags/logs.md>), [mesh](<https://devfeed.tech/tags/mesh.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [permissions](<https://devfeed.tech/tags/permissions.md>), [policies](<https://devfeed.tech/tags/policies.md>), [services](<https://devfeed.tech/tags/services.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>), [traffic](<https://devfeed.tech/tags/traffic.md>), [traffic-management](<https://devfeed.tech/tags/traffic-management.md>)

## AI overview

A tutorial on using Istio to monitor HTTP egress traffic and enforce access policies. It describes restricting access to specific external URL paths, granting exceptions to selected applications or users, analyzing logs for unauthorized requests, and routing traffic through an egress gateway.

## Source excerpt

While Istio's main focus is management of traffic between microservices inside a service mesh, Istio can also manage ingress (from outside into the mesh) and egress (from the mesh outwards) traffic. Istio can uniformly enforce access policies and aggregate telemetry data for mesh-internal, ingress and egress traffic. In this blog post, we show how to apply monitoring and access policies to HTTP egress traffic with Istio. Use case Consider an organization that runs applications that process content from cnn.com. The applications are decomposed into microservices deployed in an Istio service mesh. The applications access pages of various topics from cnn.com: edition.cnn.com/politics, edition.cnn.com/sport and edition.cnn.com/health. The organization configures Istio to allow access to edition.cnn.com and everything works fine. However, at some point in time, the organization decides to banish politics. Practically, it means blocking access to edition.cnn.com/politics and allowing access to edition.cnn.com/sport and edition.cnn.com/health only. The organization will grant permissions to individual applications and to particular users to access edition.cnn.com/politics, on a case-by-case basis. To achieve that goal, the organization's operations people monitor access to the external services and analyze Istio logs to verify that no unauthorized request was sent to edition.cnn.com/politics. They also configure Istio to prevent access to edition.cnn.com/politics automatically. The organization is resolved to prevent any tampering with the new policy. It decides to put mechanisms in place that will prevent any possibility for a malicious application to access the forbidden topic. Related tasks and examples The Control Egress Traffic task demonstrates how external (outside the Kubernetes cluster) HTTP and HTTPS services can be accessed by applications inside the mesh. The Configure an Egress Gateway example describes how to configure Istio to direct egress traffic through a