Actions
What each action of a rule names, what it can carry, and where Pod checks it
| Action | The thing it names | What it can carry | Checked |
|---|---|---|---|
read | A granted folder of Pod's shared drive, by name, with an optional path beneath it | at <mount point>; to policy:<name> or from policy:<name> to share across policies | When the folder is mounted |
write | The same; write includes read | The same | The same |
net | A host name, exact or *.; an address or range; or everything else, with optional ports | Protocol; methods and path prefixes where traffic is read; address-only | On every lookup and connection |
use | A connected tool | Nothing: the tool carries its own traffic rule | On every request that carries the tool's placeholder |
msg | to policy:<name> or from policy:<name>, or a topic | Topic, role, kind and size conditions | On every message between a swarm's sandboxes |
call | A connected tool that says how it carries calls | An operation and where tests on its arguments | On every call through the tool |
Not available yet Rules on message topics and on tool calls are checked and compiled, and decide Deny until the sandboxes read them.
The verdict for each
| Verdict | net | use |
|---|---|---|
| Allow | The connection goes through, recorded | The key is attached, recorded |
| Deny | Refused at once and recorded; a web request gets a 403 naming the rule | Refused and recorded, never sent without the key |
| Ask | Refused at once with an ask_ reference; the retry goes through once a person allows it | The same |
A rule that names nothing for an action allows nothing for it: a policy with no read rule mounts no folder, and one with no net rules reaches no host.
What no rule can open
Pod's fixed baseline blocks these for every sandbox, whatever its policy says:
| Always blocked | Ranges |
|---|---|
| Cloud metadata addresses | 169.254.169.254, fd00:ec2::254 |
| Link-local | 169.254.0.0/16, fe80::/10 |
| Private networks | 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10 |
| Unique-local | fc00::/7 |
| Loopback and "this network" | 127.0.0.0/8, 0.0.0.0/8, ::1, :: |
| IPv4 written as IPv6 | ::ffff:0:0/96, 64:ff9b::/96, 2002::/16, 2001::/32: checked as the IPv4 address inside, or dropped |
| Multicast, reserved and broadcast | 224.0.0.0/4, 240.0.0.0/4, ff00::/8 |
| Pod's own servers | Every address of the servers, their networks, and other sandboxes |
| Outbound mail | TCP ports 25, 465 and 587, to any address |
A name that resolves to a blocked address is refused too. A sandbox's peers in the same swarm are the one exception to "other sandboxes", under the swarm's rules.