if you run Zeebe locally you can use different flags for zbctl.
--host string Specify the host part of the gateway address. If omitted, will read from the environment variable 'ZEEBE_HOST' (default '127.0.0.1')
--insecure Specify if zbctl should use an unsecured connection. If omitted, will read from the environment variable 'ZEEBE_INSECURE_CONNECTION'
--port string Specify the port part of the gateway address. If omitted, will read from the environment variable 'ZEEBE_PORT' (default '26500')
So you can also establish an insecure connection. So no need to implement an own OAuth Server.
I ran zbctl with those flags but got “Error: rpc error: code = Unavailable desc = connection closed before server preface received”.
PS: I installed Camunda Platform 8 self-managed on a kubernetes cluster with helm charts. this is my pods:
NAME READY STATUS RESTARTS AGE
zeebe-zeebe-0 1/1 Running 0 3h37m
zeebe-zeebe-1 1/1 Running 0 3h37m
zeebe-zeebe-2 1/1 Running 0 3h37m
zeebe-zeebe-gateway-6dfd4df6b8-sngmk 1/1 Running 0 3h37m
zeebe-zeebe-gateway-6dfd4df6b8-srxhj 1/1 Running 0 3h37m
I had also applied a ingress to access zeebe-zeebe-gateway service.