Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenZiti SDK and Broken Bootstrap #389

Closed
michaelquigley opened this issue Aug 18, 2023 · 0 comments
Closed

OpenZiti SDK and Broken Bootstrap #389

michaelquigley opened this issue Aug 18, 2023 · 0 comments
Assignees
Labels
defect Something isn't working
Milestone

Comments

@michaelquigley
Copy link
Collaborator

The bootstrap (and possibly other functions) are broken with the latest OpenZiti v0.30.0.

[   0.040]    INFO zrok/controller.Bootstrap: creating identity for controller ziti access
panic: error enrolling 'ctrl' identity: json: cannot unmarshal array into Go struct field EnrollmentClaims.aud of type string

goroutine 1 [running]:
github.com/openziti/zrok/controller.Bootstrap(0x0, 0x0, 0xc000000004?)
	/home/runner/work/zrok/zrok/controller/bootstrap.go:48 +0x75f
main.(*adminBootstrap).run(0xc00012d160, 0x0?, {0xc00012db20?, 0x0?, 0x0?})
	/home/runner/work/zrok/zrok/cmd/zrok/adminBootstrap.go:41 +0xa7
github.com/spf13/cobra.(*Command).execute(0xc000004f00, {0xc00012daf0, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0x317e940)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
main.main()
	/home/runner/work/zrok/zrok/cmd/zrok/main.go:98 +0x25

Updating to the latest sdk-golang results in a different error:

[   0.034]    INFO zrok/controller.Bootstrap: creating identity for public frontend access
panic: error creating 'public' identity: [POST /identities][400] createIdentityBadRequest  &{Error:0xc000524540 Meta:0xc00034c080}

goroutine 1 [running]:
github.com/openziti/zrok/controller.Bootstrap(0x0, 0xc000000004?)
	/home/michael/Repos/nf/zrok/controller/bootstrap.go:53 +0x5f9
main.(*adminBootstrap).run(0xc000654830, 0x0?, {0xc000655520?, 0x0?, 0x0?})
	/home/michael/Repos/nf/zrok/cmd/zrok/adminBootstrap.go:39 +0xa5
github.com/spf13/cobra.(*Command).execute(0xc00036c900, {0xc0006554f0, 0x1, 0x1})
	/home/michael/local/zrok/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x863
github.com/spf13/cobra.(*Command).ExecuteC(0x44d9c00)
	/home/michael/local/zrok/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
	/home/michael/local/zrok/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992
main.main()
	/home/michael/Repos/nf/zrok/cmd/zrok/main.go:98 +0x1a
@michaelquigley michaelquigley self-assigned this Aug 18, 2023
@michaelquigley michaelquigley added the defect Something isn't working label Aug 18, 2023
@michaelquigley michaelquigley added this to the v0.4 milestone Aug 18, 2023
michaelquigley added a commit that referenced this issue Aug 18, 2023
michaelquigley added a commit that referenced this issue Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working
Projects
Development

No branches or pull requests

1 participant