Innerwall
Design note

Why inbound came first

Avinash PapineniADR-0010

Innerwall enforces the connections that reach a workload before the ones that leave it. That order was a decision, and this is the reasoning behind it.

01 · Today

What inbound enforcement covers

Every connection has two ends, and a segmentation product has to choose where it decides. Innerwall decides at the destination. An inbound rule answers one question for one workload: which peers may connect to it, and on which services.

Take a ledger service that should accept connections from the checkout service on tcp/8443 and from nothing else. The rule is written over labels: workloads labelled app=ledger accept tcp/8443 from workloads labelled app=checkout. Nobody types an address. The control plane resolves app=checkout to the addresses of the workloads that carry the label today, and sends each ledger host a rendered policy that holds addresses and ports.

A rule over labels, rendered for one host

What is written names labels. What a host receives is addresses and ports.

The agent on each ledger host programs that policy into the host’s own firewall, in a table Innerwall owns. It never edits a rule outside that table, and no other software’s rules are touched. Every change is one kernel transaction, so a host runs the previous ruleset or the new one and never a mixture of the two.

The chain in that table is short:

  • Loopback traffic is accepted.
  • Traffic that belongs to a connection already established is accepted.
  • Each rule accepts its protocol and ports from the addresses in its set.
  • Anything else is dropped, and the drop is logged.

When a checkout host is added or replaced, only the set of addresses behind the rule changes. The rule itself stays as it was.

The second line of that chain is what makes an inbound-only product safe to turn on. Replies to connections the ledger host opened itself come back in as established traffic, so enforcing what reaches a workload does not break what it reaches out to.

When both ends of a connection are managed, the destination’s decision settles it. A connection from checkout to ledger is admitted or dropped at ledger, whatever checkout’s own host would have allowed on the way out. The decision record puts the consequence this way: a workload that accepts connections only from its declared dependents is a hard target regardless of its neighbors’ egress.

02 · The limits

What it does not cover

Deciding at the destination works only where there is an agent at the destination. Three things follow, and they are worth stating plainly.

  • A managed workload can still reach anything unmanaged. A compromised host can open connections to the internet, or to any host with no agent, and nothing in Innerwall stops it. Controlling what a compromised host can reach is deferred, and the decision record says so.
  • Those connections are not seen either. Each agent reports the connections that reach its own workload. A connection between two managed workloads is seen once, at its destination. A connection from a managed workload to an unmanaged destination is not seen at all.
  • The flow map is a map of arrivals. It shows who depends on a workload. It does not show everything that workload depends on.

If the threat you most need to contain is data leaving a compromised host, inbound enforcement alone does not contain it. What it does contain is movement between managed workloads, which is the path an intruder takes from the first host to the ones that matter.

03 · The decision

Why not both directions at once

Shipping both directions together was the obvious plan, and it was set aside for three reasons.

It doubles what an operator must get right before anything can be enforced. Enforcement is only safe once the rules match real traffic. Two directions means two sets of rules to observe, test and trust for every workload, before the first one is switched on.

The two directions fail differently. An inbound rule that is too tight shows up at once, and legibly: a known dependency stops reaching a workload, and someone can name the connection that broke. An outbound rule that is too tight breaks the things every host leans on without anyone having declared them, such as name resolution, directory services, time and package mirrors. That does not look like a blocked flow. It looks like a host misbehaving for no reason, and the search for the cause starts in the wrong place.

Outbound has a structural problem that inbound does not. Every application shares the same infrastructure dependencies. If each application’s rules must declare them again, the result is either the same rules repeated everywhere or gaps where someone forgot.

So the first releases enforce one direction and do it completely. Operators reach enforcement they can understand much sooner, and much of the protection against lateral movement is already delivered from the inbound side.

One thing was done early to keep the door open: the policy schema has carried a direction from the start. Adding outbound extends the schema. It does not migrate any rule that exists today.

04 · Next

What outbound adds

In design, not releasedThis section describes outbound enforcement as it is being designed. Released versions enforce inbound only.

Outbound is designed as two layers, which is the answer to the structural problem above.

What one workload reaches outbound

ObservedShared baseline
  • Baseline policies belong to the platform operators. They declare the dependencies the whole estate shares, once.
  • Application policies belong to the application teams, and are composed over the baseline. They declare only what is particular to the application.

Outbound observation arrives together with outbound enforcement, not before it. How the two layers compose, which one takes precedence, and how simulation works across them are design questions with decision records of their own still to come.

The inbound path today runs in three steps: observe, simulate against real traffic, then enforce, one workload or label scope at a time. See Visibility, simulation, enforcement for why it runs in that order.