Observed Traffic Is Not a Segmentation Policy
Turn flow records into scoped workload rules, uncover hidden dependencies, and stage enforcement without breaking restores or weakening adjacent boundaries.
A traffic capture shows what crossed a sensor while it was watching. A segmentation policy has to allow the connections each workflow needs, including those it makes only under unusual conditions.
In an illustrative billing rollout, the observation window includes backup uploads and repository integrity checks. It captures both workloads’ connections to the repository and the egress proxy’s connection to the certificate status responder. The only missing restore edge is the worker’s connection to the proxy for an Online Certificate Status Protocol (OCSP) lookup on a cold start.
Reconstruct who initiated each connection
A flow record describes traffic at a particular vantage point. With packet-sampled flow export, every packet in a short connection can be missed, so an occasional control request may disappear from the inventory while bulk transfers remain visible. East-west traffic switched locally between workloads on the same host can bypass an uplink sensor entirely, leaving a systematic gap for co-located workloads. Downstream of source NAT, a terminating proxy, or a load balancer that rewrites the source, several callers may appear under one address. That merges distinct caller edges into one apparent dependency and can make the intermediary look like the workload that initiated the operation.
Record the sensor location and resolve each sampled endpoint to the workload or intermediary that owned it at the time. For co-located workloads, compare uplink records with host or virtual-switch telemetry. For translated paths, correlate the original and translated tuples against the mapping’s lifetime. An inventory snapshot taken during review can assign a recycled address to the wrong workload. At proxies and gateways, use request logs and authenticated caller metadata where available. When a proxy pools upstream connections, a backend flow can carry requests from several callers, so tuple and timestamp evidence at the network layer cannot attribute individual requests. If the evidence cannot resolve a caller, leave the observed edge unexplained.
Write each candidate edge as a source workload, destination service and environment, transport, operational purpose, and accountable owner. “Application needs database” is more useful than “normal traffic,” but it still leaves open which database endpoint the caller needs and whether that access belongs in production. Define what application authorization must enforce alongside the network rule. A billing worker may need the production database listener, while its database role limits it to the objects and operations required for invoice processing.
Shared endpoints such as API gateways and reverse proxies serve multiple functions on one port. TLS hides request details from passive sensors that lack decryption access. Use gateway route configuration and request logs to determine which function the caller needs, then enforce route authorization where the request is visible. In a pull-based monitoring setup, an inbound allow from a management subnet shared by collectors and jump hosts also admits the jump hosts to the workload’s metrics listener and any other port the rule covers. Grant the monitoring collector identity or managed endpoint group access to the metrics listener, with separate rules for administrative access.
Classify what the capture saw
At owner review in the billing example, the team classifies 80 observed edges into 50 required, 12 temporary, 10 obsolete, and 8 unexplained. Give required edges scoped allows and temporary edges expiring rules. Deny obsolete edges and investigate unexplained edges before granting access. Copying all 80 into permanent allows would grant access to the 18 obsolete or unexplained edges and remove the time limit on the 12 temporary dependencies.
Figure 1 — At owner review, a blanket allow for the 80 captured edges would also preserve 10 obsolete paths and grant 8 unexplained ones. Another 12 edges qualify only for temporary access. Illustrative billing inventory.
Account for the edges the sensor missed
At review, the owners identify 6 edges absent from the capture and queue them for validation. The same restore worker identity runs integrity checks on a long-lived instance. Its cache holds a current OCSP response throughout the observation window, so the checks open connections to the repository without making a fresh lookup. The proxy’s approved upstream connection to the responder appears in the same capture because another authorized workload uses it. The worker-to-proxy leg is the only quiet candidate this restore adds.
A fresh restore worker starts with an empty cache, and recovery policy requires a valid, current good response before the client completes TLS with the repository. Soft-failing on an unreachable responder would let the worker accept a repository certificate whose current revocation status it could not establish. Stapling or pre-fetching could supply the response ahead of the handshake, but the repository provides no staple and the restore image has no way to receive and refresh pre-fetched responses through certificate rotation. Keep the hard-fail check and give the worker a scoped path to the responder through the proxy.
Allow the restore worker to reach the proxy listener. At the proxy, bind the access rule to the authenticated worker identity. An opaque HTTP CONNECT tunnel exposes the requested host and port to the proxy, with the URL path inside the encrypted session. This client sends OCSP GET requests over plain HTTP, so the proxy can inspect the path. As specified in RFC 6960 Appendix A, GET-mode OCSP appends the encoded request to the responder path. Match the configured responder host and port and its path prefix, including the separating slash, so the rule covers the request suffix as the certificate changes. Keep the worker-to-proxy permission distinct from the proxy’s existing upstream permission. In the cold-start exercise, the worker’s audit log shows a would-deny at egress while current enforcement still permits recovery. Correlate that event with the proxy request log to confirm the authenticated caller and the responder it reached.
Use the operating calendar to select exercises, then read the configuration of the component that initiates each request. Restore, failover, certificate renewal, scheduled exports, and cold starts can select different peers or run under different identities. Inspect which resolvers a replacement worker uses for DNS, which time sources keep Kerberos within its clock-skew tolerance, and which directory servers it contacts for authentication. Check certificate revocation list (CRL) distribution points and OCSP responders against the client’s actual revocation settings. Confirm the load balancer’s health probe source and target port. A probe blocked by the candidate policy can remove healthy instances from rotation even when direct client requests to those instances still succeed.
Map the protocol’s secondary traffic
The first connection in a workflow may point to a discovery endpoint. For RPC deployments with dynamic server ports, reaching the endpoint mapper can succeed even though the subsequent connection to the negotiated server port fails. Scope the configured server port range to the peers that require it. A stateful firewall can admit responses using connection state. A stateless filter needs explicit return permission, which for a TCP client can mean matching traffic from the service port to the client’s ephemeral port range. That match alone provides no proof of an established connection. Attribute the return leg to the client’s original connection before deciding whether the service needs any independent initiating access. Where classic path MTU discovery depends on ICMP, preserve the relevant errors, such as ICMPv6 Packet Too Big. A handshake and small response can succeed while a larger transfer stalls on a path with a smaller MTU.
Promote rules inside a workflow boundary
Use the directed workload graph to select the first group. Look for a cluster of workloads that call one another frequently and complete their main workflows inside the cluster. Favor a group whose remaining cross-boundary edges have identifiable owners and recovery procedures. Preserve low-volume recovery edges when grouping. Raw byte volume can make a shared backup platform look tightly coupled to every service while understating the importance of a tiny authentication flow. Document shared services as explicit crossings so the initial group does not absorb authentication or monitoring for the entire estate.
Replay the captured flow inventory against the candidate policy offline. Evaluate recorded connection initiations with the identity and direction the proposed enforcement point would see. Then run the candidate in production audit or log-only mode while current enforcement remains active. Generate a would-deny alert with workload identity, matched rule or default action, direction, and policy revision. Deduplicate alerts by dependency edge and correlate them with workflow outcomes. An alert on a periodic health probe can matter more than a burst of retries from an obsolete agent. Also test explicit deny expectations on the enforced slice. For the billing worker, verify its production database workflow and check that the same worker cannot reach the development database or the administrative listener.
An inherited subnet allow can keep a first rollout quiet by admitting everything the proposed default deny would stop. Inspect effective policy at the enforcement point, including priority or additive allow semantics, and check whether each test matched its intended rule. Promote validated rules individually where the engine supports it, or use small policy revisions that let you attribute a regression to one rule change. Put the narrow allows in place before removing each inherited grant that shadows them. Keeping a broad grant during the transition buys time to validate its replacements and leaves every path it covers open. Enforce default deny first on a representative slice of the group with its own rule scope, then extend it across the group after the allowed workflows and neighboring deny checks pass on that slice.
In the billing example, owner review leaves 8 observed edges unexplained and validates none of the 6 quiet candidates. Configuration tracing brings the unexplained count down to 4 and validates 2 quiet edges against deployed configuration and runtime identity bindings. Exercises leave 1 observed edge unexplained and bring the validated quiet count to 6, including the worker-to-proxy edge. Of the 7 observed edges resolved by that point, 4 become required, 2 temporary and 1 obsolete. A final trace attributes the remaining edge to a retired collector. Its owner confirms the dependency is obsolete, and the team records a deny before promotion. The resulting inventory has 54 required, 14 temporary and 12 obsolete observed edges, plus 6 validated quiet dependencies that need scoped allows. On the enforced slice, start a fresh restore worker with an empty OCSP cache. Verify that the restore finishes, that the proxy logs the expected responder request, and that its access rule rejects a request from the same worker identity to a destination outside the grant.
Figure 2 — Exercises validate all 6 quiet dependencies. Final tracing brings the unexplained count from 1 to 0 when the team classifies the retired collector’s edge as obsolete and records the deny. Illustrative billing rollout.
Roll back one dependency group at a time
Version policy by dependency group and precompute the effective permissions of the previous revision. If a selector change breaks new billing workers across several approved services, restore the previous billing revision and leave adjacent groups enforced. If the break is confined to one verified dependency, prefer a temporary rule for that caller, destination, and protocol, with an expiry enforced by the policy system or deployment controller. A group revert can revive every inherited grant that revision originally carried, so compare the difference before choosing it.
Capture the deny event, source identity, policy revision, and enforcement point before changing rules. Check that the affected enforcement points have applied the recovery revision, then repeat the failed workflow and its neighboring deny check. If the deny appears on a downstream proxy leg, inspect that policy before broadening the caller’s permissions.
Keep the edge decisions with the policy revision. Record which workflow justified each grant, which evidence settled its disposition, and who owns it when the topology changes. A later capture may omit the proxy lookup again because the worker is warm. The cold-start exercise remains the reason to preserve that rule until the restore design changes, just as renewal and failover exercises justify paths that may be silent on an ordinary day.