SaltDns.Shaker.Source.Proxy (Salt v1.0.0)

The real SaltDns.Shaker.Source: what a node of a proxy group (SaltDns.Proxy) must hold. Set as the source when SALT_DNS_SHAKER=on.

desired_state/1 builds the contract's state with SaltDns.Proxy.State from the node's group and renders the configuration for this node (its reported socket group and whether it runs in a container). A node that belongs to no real group (enrolled before groups existed, or its group was deleted) gets the empty state of SaltDns.Shaker.Source.Empty.

certificate/3 returns the key and chain of a certificate version, and only when the group the node belongs to serves exactly that certificate and version now; SaltDns.Shaker.certificate_for/3 has already checked the state names it, and this asks the group again, so a certificate that left the group between two messages is not handed out.