Architecture
Sigillum is one reconciler, the NetworkConfigManager.
A reagent renders one NetworkConfig into each instance namespace; sigillum turns it into a NetworkPolicy and, for exposures, into Gateway API objects.
Everything it writes is owned by the NetworkConfig and applied with server-side apply.
Who may connect
The NetworkPolicy lets in, in this order of precedence:
-
every namespace, when
spec.allowAllNamespacesis set, -
otherwise the claim’s namespace, read from the instance namespace’s chrysopoeia annotation,
-
the namespaces in
spec.allowedNamespaces, -
the gateway pods of the
ExposureClasses the exposures resolve to, so exposed traffic is not blocked by the policy that is meant to protect it.
A namespace without a claim, no allowed namespaces and no exposures gets no policy at all, rather than one that allows everything by mistake.
Exposures
For each entry in spec.expose, sigillum:
-
resolves the
ExposureClass: the one the entry names, or the class named after its protocol, for exampletcp, -
picks a shard: a Gateway matching the class’s
shardSelectorwith room for another listener, -
picks a free port from the class’s
portRange, -
writes a
ListenerSetand aTCPRoutenamed<network config>-<exposure>, -
reports the shard, address, port and URL in
status.exposures[].
Sigillum never creates Gateways; the platform provides them. See Exposures for what has to be there.
Without the Gateway API CRDs on the cluster, exposures are disabled and only the NetworkPolicy is written.
Sigillum checks once at start, so restart it after installing them.
A change to an ExposureClass reconciles every NetworkConfig using it.