public static TrustedNode of(Node node, Set<Integer> ports, IP.Space ipSpace) {
            Set<String> ipAddresses = node.ipConfig()
                                          .primary()
                                          .stream()
                                          .filter(ip -> ipSpace.contains(ip, node.cloudAccount()))
                                          .collect(Collectors.toSet());
            return new TrustedNode(node.hostname(), node.type(), ipAddresses, ports);
        }
Trust given ports from node, and primary IP addresses shared with given cloud account
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/NodeAcl.java