I have an interesting use-case for fly wireguard that would benefit from being able to enumerate the tunnels from the instance. Maybe this is not a good idea security wise, but maybe it could be opt-in?
Similar to how other apps are discoverable via DNS, it would be cool to be able to retrieve a wireguard peer’s ip from a TXT record that a service could enumerate inside a fly machine.
_peer.internal TXT record should return the names of the peers. <peername>._peer.internal AAAA record should return the IP address of the specific peer.
One note - the list of peers doesn’t include interactive peers that flyctl creates automatically when needed (peers whose name start with interactive-).