SIGSEGV: gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/agent_tracker.(*RedisTracker).RegisterConnection.func5()

GitLab chart has been updated and so KAS consequently: kas-7.11.3.

However, it fails to start with a SIGSEV error after upgrade:

{"level":"info","time":"2024-05-23T11:03:20.193Z","msg":"Running KAS gitlab-kas/v16.11.3/v16.11.3"}
{"level":"info","time":"2024-05-23T11:03:20.229Z","msg":"Using own private API URL","url":"grpc://1.2.3.4:8155"}
{"level":"info","time":"2024-05-23T11:03:20.230Z","msg":"Observability endpoint is up","mod_name":"observability","net_network":"tcp","net_address":"[::]:8151"}
{"level":"info","time":"2024-05-23T11:03:20.230Z","msg":"Agentk API endpoint is up","net_network":"tcp","net_address":"[::]:8150","is_websocket":true}
{"level":"info","time":"2024-05-23T11:03:20.230Z","msg":"Kubernetes API endpoint is up","mod_name":"kubernetes_api","net_network":"tcp","net_address":"[::]:8154"}
{"level":"info","time":"2024-05-23T11:03:20.230Z","msg":"API endpoint is up","net_network":"tcp","net_address":"[::]:8153"}
{"level":"info","time":"2024-05-23T11:03:20.230Z","msg":"Private API endpoint is up","net_network":"tcp","net_address":"[::]:8155"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0xf3b25c]

goroutine 151 [running]:
gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/internal/module/agent_tracker.(*RedisTracker).RegisterConnection.func5()
	/tmp/build/internal/module/agent_tracker/tracker.go:172 +0x3c
golang.org/x/sync/errgroup.(*Group).Go.func1()
	/root/go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 132
	/root/go/pkg/mod/golang.org/x/sync@v0.6.0/errgroup/errgroup.go:75 +0x96
Edited by Guillaume