Skip to content

Commit

Permalink
Merge pull request #30721 from vespa-engine/hakonhall/azure-lb-trust
Browse files Browse the repository at this point in the history
Azure LB trust
  • Loading branch information
hakonhall committed Mar 24, 2024
2 parents 419c836 + 1f42018 commit c3be0b5
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 c3be0b5

Please sign in to comment.