Skip to content

Commit

Permalink
Azure LB trust
Browse files Browse the repository at this point in the history
  • Loading branch information
hakonhall committed Mar 22, 2024
1 parent 04879cf commit 1f42018
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package com.yahoo.vespa.hosted.provision.node;

import com.google.common.collect.ImmutableSet;
import com.yahoo.config.provision.CloudName;
import com.yahoo.config.provision.NodeType;
import com.yahoo.config.provision.Zone;
import com.yahoo.vespa.hosted.provision.Node;
Expand Down Expand Up @@ -80,6 +81,13 @@ public static NodeAcl from(Node node, NodeList allNodes, LoadBalancers loadBalan
// - proxy nodes
trustedNodes.addAll(TrustedNode.of(allNodes.nodeType(NodeType.config), ipSpace));
trustedNodes.addAll(TrustedNode.of(allNodes.nodeType(NodeType.proxy), ipSpace));

// AZURE does not support proxy protocol, but instead passes through the source IP address.
// Which means we must accept any source IP.
if (zone.cloud().name().equals(CloudName.AZURE) &&
node.allocation().map(a -> a.membership().cluster().type().isContainer()).orElse(false)) {
trustedPorts.add(4443);
}
}
case config -> {
// Config servers trust:
Expand Down

0 comments on commit 1f42018

Please sign in to comment.