From a philosophical perspective, it is complex.
This is a a simple start on Lemmy's federation
-Allowlist: Explicitly list instances to connect to.
-BlockList: Explicitly list instances to not connect to. Federation is open to all other instances.
-Open: Federate with all potential instances.