fix(device-plane): constrain B2 discovery to loopback
This commit is contained in:
@@ -91,7 +91,7 @@ DEVICE_PLANE_B2_DISCOVERY_INGRESS_PREDECESSOR_ARTIFACT_SHA256 = (
|
||||
"6fdd5a12c310786db1753882fc1378184fe378d2cc533633a8c73c951521b7bf"
|
||||
)
|
||||
DEVICE_PLANE_B2_DISCOVERY_INGRESS_COMPOSE_SHA256 = (
|
||||
"50bc7842481ea73b89891a65bf243c2ecb7bbb4c093e95e3c20ddbfaa8ad6726"
|
||||
"eb1018cc0ffeaa0c019944d8810e2daa01eeca4c06289efff175785fb16457e7"
|
||||
)
|
||||
DEVICE_PLANE_FOUNDATION_FAILED_PATCH_ID = (
|
||||
"device-plane-foundation-20260725-001"
|
||||
@@ -8362,14 +8362,14 @@ def validate_device_plane_foundation_network_publication_payload(payload_dir):
|
||||
def expected_device_plane_b2_discovery_ingress_descriptor():
|
||||
return {
|
||||
"schemaVersion": "nodedc.device-plane.b2-discovery-ingress.v1",
|
||||
"mode": "verified-b2-discovery-only",
|
||||
"mode": "verified-b2-loopback-discovery-only",
|
||||
"predecessorPatchId": (
|
||||
DEVICE_PLANE_B2_DISCOVERY_INGRESS_PREDECESSOR_PATCH_ID
|
||||
),
|
||||
"predecessorArtifactSha256": (
|
||||
DEVICE_PLANE_B2_DISCOVERY_INGRESS_PREDECESSOR_ARTIFACT_SHA256
|
||||
),
|
||||
"sourceAction": "publish-verified-b2-discovery-ingress-source",
|
||||
"sourceAction": "publish-verified-b2-loopback-discovery-source",
|
||||
"runtimeAction": "build-and-recreate-stateless-services",
|
||||
"selectedServices": [
|
||||
"device-control-core",
|
||||
@@ -8381,7 +8381,7 @@ def expected_device_plane_b2_discovery_ingress_descriptor():
|
||||
"publishedPorts": [
|
||||
"127.0.0.1:18120:18120",
|
||||
"127.0.0.1:18121:18121",
|
||||
"0.0.0.0:9921:9921/tcp",
|
||||
"127.0.0.1:9921:9921/tcp",
|
||||
],
|
||||
"protocolProfile": "arusnavi.b2.internal.v1",
|
||||
"framingSpecification": (
|
||||
@@ -9381,7 +9381,7 @@ def validate_device_plane_b2_discovery_ingress_runtime(runtime_before):
|
||||
"HostPort": "18121",
|
||||
}],
|
||||
"9921/tcp": [{
|
||||
"HostIp": "0.0.0.0",
|
||||
"HostIp": "127.0.0.1",
|
||||
"HostPort": "9921",
|
||||
}],
|
||||
},
|
||||
@@ -9492,8 +9492,8 @@ def validate_device_plane_b2_discovery_ingress_runtime(runtime_before):
|
||||
)
|
||||
gateway_required = {
|
||||
"DEVICE_GATEWAY_LISTEN_ENABLED": "true",
|
||||
"DEVICE_GATEWAY_PUBLIC_INGRESS_ENABLED": "true",
|
||||
"DEVICE_GATEWAY_TCP_HOST": "0.0.0.0",
|
||||
"DEVICE_GATEWAY_PUBLIC_INGRESS_ENABLED": "false",
|
||||
"DEVICE_GATEWAY_TCP_HOST": "127.0.0.1",
|
||||
"DEVICE_GATEWAY_TCP_PORT": "9921",
|
||||
"DEVICE_GATEWAY_CORE_URL": "http://device-control-core:18120",
|
||||
"DEVICE_GATEWAY_CORE_TOKEN_FILE":
|
||||
@@ -15182,7 +15182,7 @@ def plan_artifact(artifact):
|
||||
)
|
||||
print("device_postgres_volume=preserved:nodedc-device-plane-postgres-data")
|
||||
if device_plane_b2_ingress_preflight is not None:
|
||||
print("device_gateway_public_ingress=discovery-only:tcp:9921")
|
||||
print("device_gateway_public_ingress=disabled:loopback-test:tcp:9921")
|
||||
print("device_control_core_discovery_ingest=enabled:authenticated")
|
||||
else:
|
||||
print("device_gateway_public_ingress=disabled")
|
||||
@@ -15284,7 +15284,7 @@ def plan_artifact(artifact):
|
||||
print(
|
||||
"device_plane_actual_ports="
|
||||
"required:127.0.0.1:18120,127.0.0.1:18121,"
|
||||
"0.0.0.0:9921/tcp"
|
||||
"127.0.0.1:9921/tcp"
|
||||
)
|
||||
print(
|
||||
"device_gateway_framing="
|
||||
@@ -16622,7 +16622,7 @@ def component_healthchecks(component, entries=None, services=None):
|
||||
"service": "nodedc-device-gateway",
|
||||
"framing": "verified-read-only",
|
||||
"tcpListener": "discovery-only",
|
||||
"publicIngress": "discovery-only",
|
||||
"publicIngress": "disabled",
|
||||
"commandTransport": "disabled",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user