Package swiss.trustbroker.config.dto
Class NetworkConfig.NetworkConfigBuilder
java.lang.Object
swiss.trustbroker.config.dto.NetworkConfig.NetworkConfigBuilder
- Enclosing class:
NetworkConfig
-
Method Summary
Modifier and TypeMethodDescriptionbackendConnectTimeoutSec(int backendConnectTimeoutSec) Backend service connect timeout in seconds.build()canaryEnabledValue(String canaryEnabledValue) Value forcanaryMarkerName.canaryMarkerName(String canaryMarkerName) Running on K8S supporting canary routing using cookies, a test instance.internetNetworkName(String internetNetworkName) Name for the Internet network used in configurations (e.g.intranetNetworkName(String intranetNetworkName) Name for the Intranet network used in configurations (e.g.mobileGatewayIpRegex(String mobileGatewayIpRegex) networkHeader(String networkHeader) HTTP header delivering the client network.Default proxy URL.testNetworkHeader(String testNetworkHeader) HTTP header for simulating the client network.toString()tracingEnabled(boolean tracingEnabled) Allow disabling OpenTelemetry traceparent propagation to backends that might block use otherwise.
-
Method Details
-
mobileGatewayIpRegex
- Returns:
this.
-
intranetNetworkName
Name for the Intranet network used in configurations (e.g. INTRANET).
Set only if your network infrastructure always sets thenetworkHeader. This ensures that a request from the Internet cannot control the network.
Default: null- Returns:
this.
-
internetNetworkName
Name for the Internet network used in configurations (e.g. INTERNET).
Default: null- Returns:
this.
-
networkHeader
HTTP header delivering the client network. Usually sent by load balancer.
Default: Client_Network (should be X-Client-Network)- Returns:
this.
-
testNetworkHeader
HTTP header for simulating the client network.
Sent by test agents to test HRD rules. This is only evaluated for requests from the Intranet according tonetworkHeader.
Default: "X-Simulated-Client-Network- Returns:
this.
-
canaryMarkerName
Running on K8S supporting canary routing using cookies, a test instance.- Returns:
this.- Since:
- 1.7.0
-
canaryEnabledValue
Value forcanaryMarkerName.- Returns:
this.- Since:
- 1.7.0
-
tracingEnabled
Allow disabling OpenTelemetry traceparent propagation to backends that might block use otherwise.- Returns:
this.- Since:
- 1.7.0
-
proxyUrl
Default proxy URL.- Returns:
this.- Since:
- 1.9.0
-
backendConnectTimeoutSec
Backend service connect timeout in seconds.
Default: 30- Returns:
this.- Since:
- 1.10.0
-
build
-
toString
-