Skip to content

Bug: Envoy Gateway reports error when InsecureSkipVerify is set to true. #6651

@zhaohuabing

Description

@zhaohuabing

Envoy Gateway reports error when InsecureSkipVerify is set to true.

2025-07-31T05:32:17.552Z	ERROR	watchable	message/watchutil.go:53	observed a panic	{"runner": "xds-translator", "stackTrace": "goroutine 311 [running]:\nruntime/debug.Stack()\n\t/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/debug/stack.go:26 +0x5e\ngithub.com/envoyproxy/gateway/internal/message.handleWithCrashRecovery[...].func1()\n\t/home/runner/work/gateway/gateway/internal/message/watchutil.go:54 +0x1fe\npanic({0x33f2520?, 0xb27d8b0?})\n\t/opt/hostedtoolcache/go/1.24.4/x64/src/runtime/panic.go:792 +0x132\ngithub.com/envoyproxy/gateway/internal/xds/translator.buildXdsUpstreamTLSCASecret(...)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/translator.go:1158\ngithub.com/envoyproxy/gateway/internal/xds/translator.addXdsCluster(0xc000606be0, 0xc0012dec60)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/translator.go:1065 +0x387\ngithub.com/envoyproxy/gateway/internal/xds/translator.processXdsCluster(0xc000606be0, {0xc00151bf20?, 0xf?}, {0xc0000ccd88?, 0x1?, 0xffffffffffffffff?}, {0x8b4a880?, 0xc001192340?}, 0x0?, 0xc0015c4fa0)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/translator.go:1011 +0x4b\ngithub.com/envoyproxy/gateway/internal/xds/translator.(*Translator).addRouteToRouteConfig(0xc0013c98c0, 0xc000606be0, 0xc001225040, 0xc0007fcea0, 0x0, 0x0)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/translator.go:593 +0xcac\ngithub.com/envoyproxy/gateway/internal/xds/translator.(*Translator).processHTTPListenerXdsTranslation(0xc0013c98c0, 0xc000606be0, {0xc0000ccd78, 0x1, 0xc000606b60?}, 0xc000d6da40, 0x0, 0x0)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/translator.go:467 +0xa4c\ngithub.com/envoyproxy/gateway/internal/xds/translator.(*Translator).Translate(0xc0013c98c0, 0xc000a85500)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/translator.go:119 +0x125\ngithub.com/envoyproxy/gateway/internal/xds/translator/runner.(*Runner).subscribeAndTranslate.func1({{0xc0019d1690?, 0x35bd630d24018918?}, 0x80?, 0xc000a85500?}, 0xc0008a1490)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/runner/runner.go:94 +0x2ed\ngithub.com/envoyproxy/gateway/internal/message.handleWithCrashRecovery[...](0xc0011d7fa0?, {{0xc0019d1690, 0x0?}, 0x0?, 0xc000a85500?}, {{0x3b36a1d, 0xe}, {0x3b251df, 0x6}}, 0xc0008a1490?)\n\t/home/runner/work/gateway/gateway/internal/message/watchutil.go:60 +0x137\ngithub.com/envoyproxy/gateway/internal/message.HandleSubscription[...]({{0x3b36a1d, 0x0?}, {0x3b251df?, 0x0?}}, 0xc00186f650?, 0xc0013c9fa0)\n\t/home/runner/work/gateway/gateway/internal/message/watchutil.go:99 +0x7b0\ngithub.com/envoyproxy/gateway/internal/xds/translator/runner.(*Runner).subscribeAndTranslate(0xc000f1cc60, 0x0?)\n\t/home/runner/work/gateway/gateway/internal/xds/translator/runner/runner.go:61 +0x50\ncreated by github.com/envoyproxy/gateway/internal/xds/translator/runner.(*Runner).Start in goroutine 127\n\t/home/runner/work/gateway/gateway/internal/xds/translator/runner/runner.go:54 +0x2df\n", "error": "runtime error: invalid memory address or nil pointer dereference"}

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions