Skip to content

Commit 5344a0b

Browse files
committed
TUN-8242: Enable remote diagnostics by default
This commit makes the remote diagnostics enabled by default, which is a useful feature when debugging cloudflared issues without manual intervention from users. Users can still opt-out by disabling the feature flag.
1 parent 3299a9b commit 5344a0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmd/cloudflared/tunnel/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ func tunnelFlags(shouldHide bool) []cli.Flag {
790790
Name: "management-diagnostics",
791791
Usage: "Enables the in-depth diagnostic routes to be made available over the management service (/debug/pprof, /metrics, etc.)",
792792
EnvVars: []string{"TUNNEL_MANAGEMENT_DIAGNOSTICS"},
793-
Value: false,
793+
Value: true,
794794
}),
795795
selectProtocolFlag,
796796
overwriteDNSFlag,

component-tests/test_management.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_get_metrics(self, tmp_path, component_tests_config):
5555
config = component_tests_config(cfd_mode=CfdModes.NAMED, run_proxy_dns=False, provide_ingress=False)
5656
LOGGER.debug(config)
5757
config_path = write_config(tmp_path, config.full_config)
58-
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1", "--management-diagnostics"], new_process=True):
58+
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1"], new_process=True):
5959
wait_tunnel_ready(require_min_connections=1)
6060
cfd_cli = CloudflaredCli(config, config_path, LOGGER)
6161
url = cfd_cli.get_management_url("metrics", config, config_path)
@@ -76,7 +76,7 @@ def test_get_pprof_heap(self, tmp_path, component_tests_config):
7676
config = component_tests_config(cfd_mode=CfdModes.NAMED, run_proxy_dns=False, provide_ingress=False)
7777
LOGGER.debug(config)
7878
config_path = write_config(tmp_path, config.full_config)
79-
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1", "--management-diagnostics"], new_process=True):
79+
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1"], new_process=True):
8080
wait_tunnel_ready(require_min_connections=1)
8181
cfd_cli = CloudflaredCli(config, config_path, LOGGER)
8282
url = cfd_cli.get_management_url("debug/pprof/heap", config, config_path)
@@ -97,7 +97,7 @@ def test_get_metrics_when_disabled(self, tmp_path, component_tests_config):
9797
config = component_tests_config(cfd_mode=CfdModes.NAMED, run_proxy_dns=False, provide_ingress=False)
9898
LOGGER.debug(config)
9999
config_path = write_config(tmp_path, config.full_config)
100-
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1"], new_process=True):
100+
with start_cloudflared(tmp_path, config, cfd_pre_args=["tunnel", "--ha-connections", "1", "--management-diagnostics=false"], new_process=True):
101101
wait_tunnel_ready(require_min_connections=1)
102102
cfd_cli = CloudflaredCli(config, config_path, LOGGER)
103103
url = cfd_cli.get_management_url("metrics", config, config_path)

0 commit comments

Comments
 (0)