A client with network policy has each connection to a running target
whose network policy isn't in force refused (unenforced). devvm now warns
of such a target before that, refusing nothing, with the connection's own
check: link_target_unenforced names the target and the client and says to
run devvm restart in the target's folder. A stopped target isn't warned
of, as its policy applies when it next starts.
- internal/vm/linksession.go: policyUnenforced (policyEnforced's verdict
for a warning), Links.warnUnenforced (the target's backend, running,
then policyUnenforced)
- internal/vm/links.go: Add warns for a new link and for one that exists;
Publish warns, through publishUnenforced, for each client with network
policy that links to a port published now and not before
- internal/vm/linkrun.go: warnTargets, at the client's launch, warns of a
running target whose policy isn't in force
- locales/en.toml, internal/msg/docs.go: link_target_unenforced, linked to
using/links#links-and-network-policy
- TestWarnUnenforced (enforced, unconfined, self-check failed, stopped,
a client without policy; agrees with the connection's check),
TestLinksAtLaunch's unenforced target; link.txtar: add, link_exists and
publish warn, a client without policy isn't warned
- tests/e2e.sh: lk_policy_unenforced also checks link add's and the
client's launch's warning
- docs: using/links.md, safety/network.md, the design note, contributing's
link section
Co-Authored-By: Claude Opus 5.5 <[email protected]>