chore(e2e): Remove need to modify /etc/hosts (#6486)

* ce: chore(e2e): Remove need for /etc/hosts modifications

(cherry picked from commit df230ea09af3d006db006487ebd644a0d3dd76f2)

* ce: test(e2e): Fix test that was failing

(cherry picked from commit 310ebf2a9b6c7427c1ff6c1c9e9045c1deb13a40)
This commit is contained in:
Michael Li authored and GitHub committed 2026-03-16 10:24:32 -04:00
1 parent b07883e8aa
commit 67f9815c64
38 files changed
+138 -308

No files matched your search

+6 -1
View File
@@ -65,6 +65,11 @@ variable "worker_led_registration" {
type = bool
default = false
}
variable "is_downstream_worker" {
description = "Whether this worker is a downstream worker, which affects its health check and registration process"
type = bool
default = false
}
resource "docker_image" "boundary" {
name = var.image_name
@@ -139,7 +144,7 @@ resource "enos_local_exec" "get_worker_led_token" {
}
resource "enos_local_exec" "check_address" {
count = var.worker_led_registration ? 0 : 1
count = var.worker_led_registration || var.is_downstream_worker ? 0 : 1
depends_on = [
docker_container.worker
]
@@ -4,20 +4,23 @@
disable_mlock = true
listener "tcp" {
address = "0.0.0.0:${port}"
# setting to 127.0.0.1 so that it won't be accessible by the local machine
# outside of the container, which is a more realistic configuration for a downstream worker
address = "127.0.0.1:${port}"
purpose = "proxy"
tls_disable = true
}
listener "tcp" {
address = "0.0.0.0:${port_ops}"
# setting to 127.0.0.1 so that it won't be accessible by the local machine
# outside of the container, which is a more realistic configuration for a downstream worker
address = "127.0.0.1:${port_ops}"
purpose = "ops"
tls_disable = true
}
worker {
name = "${worker_name}"
public_addr = "${worker_name}:${port}"
initial_upstreams = ["${initial_upstream}"]
tags {
@@ -17,7 +17,7 @@ listener "tcp" {
worker {
name = "${worker_name}"
public_addr = "${worker_name}:${port}"
public_addr = "127.0.0.1:${port}"
initial_upstreams = ["${initial_upstream}"]
tags {
@@ -16,7 +16,7 @@ listener "tcp" {
}
worker {
public_addr = "${worker_name}:${port}"
public_addr = "127.0.0.1:${port}"
initial_upstreams = ["${initial_upstream}"]
controller_generated_activation_token = "${token}"
@@ -4,20 +4,23 @@
disable_mlock = true
listener "tcp" {
address = "0.0.0.0:${port}"
# setting to 127.0.0.1 so that it won't be accessible by the local machine
# outside of the container, which is a more realistic configuration for a downstream worker
address = "127.0.0.1:${port}"
purpose = "proxy"
tls_disable = true
}
listener "tcp" {
address = "0.0.0.0:${port_ops}"
# setting to 127.0.0.1 so that it won't be accessible by the local machine
# outside of the container, which is a more realistic configuration for a downstream worker
address = "127.0.0.1:${port_ops}"
purpose = "ops"
tls_disable = true
}
worker {
name = "${worker_name}"
public_addr = "${worker_name}:${port}"
initial_upstreams = ["${initial_upstream}"]
tags {
@@ -16,7 +16,7 @@ listener "tcp" {
}
worker {
public_addr = "${worker_name}:${port}"
public_addr = "127.0.0.1:${port}"
initial_upstreams = ["${initial_upstream}"]
tags {
+1 -1
View File
@@ -17,7 +17,7 @@ listener "tcp" {
worker {
name = "${worker_name}"
public_addr = "${worker_name}:${port}"
public_addr = "127.0.0.1:${port}"
initial_upstreams = ["${initial_upstream}"]
tags {