The requirement

ARCH-R363 — A service declaring network = { fenced = true } MUST NOT also take via. lemonfiber MUST write it into the network namespace of a fence container, <service>-fence, run from the fence image the bundle pins by digest; the fence MUST hold the service's networks and published ports and MUST alone hold NET_ADMIN. The fence is lemonfiber's own container rather than a service a manifest declares, so ARCH-R234 and ARCH-R237 do not hold it; it MUST be written with a read-only root, no kernel capability but NET_ADMIN, the image's own user, which is root inside its own namespace, no mount, no new privileges, at most 1024 processes and a memory limit of 32 MiB. At start the fence MUST install nftables rules refusing every new connection from that namespace to each range lemonfiber's check on a name somebody else wrote refuses, read from the same list, to every IPv6 range whose addresses carry an IPv4 one, and to each address of the engine's host lemonfiber hands it, while passing every new connection out of that namespace's own loopback interface to any address but 127.0.0.11, which reaches nothing outside the namespace, the engine's resolver at 127.0.0.11 on port 53 alone, and the answers to connections other services opened. lemonfiber MUST ask the engine for those addresses on every apply and every start, by running the fence image's fence addresses once in a throwaway container on the host's network with every capability dropped, a read-only root filesystem, no mount, and removed once it ends, and MUST hand the fence what it answers; where the answer is empty, cannot be read or holds anything that is not an address, lemonfiber MUST NOT start the fenced service and MUST name why. The fence MUST refuse to start where it is handed no address. The service MUST start only once the fence reports healthy with every rule in place, and MUST be restarted whenever the fence restarts. lemonfiber MUST refuse to start a fenced service it cannot write inside a fence, such as one that is host_managed or one on an engine whose containers cannot hold nftables rules, naming the service and why, and MUST never start one unfenced.

This goal is met. There is nothing to claim.

Where it is built