Skip to content

Commit a3984b1

Browse files
mr-milesjohntmyers
authored andcommitted
docs(policies): placeholders outlive policy changes and their TTL
The policy DNS paragraph said a placeholder stays the same only while its endpoint policy is unchanged, and that policy changes invalidate cached mappings. A placeholder now stands for its hostname for the life of the sandbox and each connection is judged by the current policy; an expired mapping is refreshed on connect, and a hostname the policy no longer allows is denied. Signed-off-by: mr-miles <miles.waller@gmail.com>
1 parent c0ea3e0 commit a3984b1

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

‎docs/how-it-works/policies/network-rules.mdx‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -687,13 +687,14 @@ payload addresses.
687687
OpenShell answers DNS queries for the hosts in your rules with placeholder
688688
addresses whose TTL is between 1 and 30 seconds. This applies to every endpoint, not
689689
only `protocol: tcp`. The sandbox applies no DNS search domains, so request each
690-
hostname exactly as your rules name it. When a new connection uses a cached
691-
placeholder after its DNS mapping expires, OpenShell refreshes the destination
692-
through its trusted resolver and validates the new addresses before connecting.
693-
The placeholder stays the same while its endpoint policy is unchanged. A failed
694-
refresh denies the connection; OpenShell does not use expired upstream addresses.
695-
Policy changes can still invalidate cached mappings and require a new client DNS
696-
lookup. OpenShell returns an
690+
hostname exactly as your rules name it. A placeholder keeps standing for its
691+
hostname for the life of the sandbox, so clients can cache it past its TTL and
692+
across policy changes. Each new connection is authorized by the current policy.
693+
When a new connection uses a placeholder whose DNS mapping has expired, OpenShell
694+
refreshes the destination through its trusted resolver and validates the new
695+
addresses before connecting. A failed refresh, or a hostname the current policy
696+
no longer allows, denies the connection; OpenShell does not use expired upstream
697+
addresses. OpenShell returns an
697698
empty answer to AAAA queries, so dual-stack clients must fall back to the A
698699
record.
699700

0 commit comments

Comments
 (0)