Admin bootstrap fails

Hi everyone,

After having setup a fresh install of Openziti , I thought I would givet Zrok a bash but have hit a wall.

I have followed the self hosting guide on

Self-Hosting Guide for Linux | Zrok

but when running zrok admin bootstrap /etc/ctrl.yml , I see that a new identity public gets added

however the script seems to fail.
[ 0.007] INFO zrok/controller/store.Open: database connected
[ 0.058] INFO zrok/controller/store.(*Store).migrate: applied 13 migrations
[ 0.058] INFO zrok/controller.Bootstrap: connecting to the ziti edge management api
[ 0.559] INFO zrok/controller.Bootstrap: creating identity for public frontend access
panic: error enrolling ‘public’ identity: json: cannot unmarshal array into Go struct field EnrollmentClaims.aud of type string
goroutine 1 [running]:, 0xc000000004?)
/home/runner/work/zrok/zrok/controller/bootstrap.go:53 +0x61f
main.(*adminBootstrap).run(0xc0004f4070, 0x0?, {0xc0004f4ef0?, 0x0?, 0x0?})
/home/runner/work/zrok/zrok/cmd/zrok/adminBootstrap.go:39 +0xa5*Command).execute(0xc000004c00, {0xc0004f4ec0, 0x1, 0x1})
/home/runner/go/pkg/mod/ +0x847*Command).ExecuteC(0x3189940)
/home/runner/go/pkg/mod/ +0x3bd*Command).Execute(...)
/home/runner/work/zrok/zrok/cmd/zrok/main.go:98 +0x25

any ideas of what I may be doing wrong?


This is actually a bug in the current release. It looks like an incompatibility between the current OpenZiti version, and the OpenZiti SDK version used in zrok.

I’m not exactly sure which version of OpenZiti breaks zrok… so I’m not sure which version you could fall back to.

And just updating the OpenZiti SDK results in a different issue. So it might take me a couple of days to work out what’s going on.

Created an issue for it, and it’s on our radar:

zrok v0.4.5 has been released today. This release corrects this issue.

Thanks Michael :slight_smile: will give zrok v0.4.5 a shot