-
Notifications
You must be signed in to change notification settings - Fork 336
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
feat(*) validate token requirement #418
feat(*) validate token requirement #418
Conversation
78e238d
to
2864227
Compare
app/kumactl/pkg/cmd/root_context.go
Outdated
@@ -134,6 +134,9 @@ func (rc *RootContext) CurrentDataplaneTokenClient() (tokens.DataplaneTokenClien | |||
if err != nil { | |||
return nil, err | |||
} | |||
if !components.Apis.DataplaneToken.Enabled() { | |||
return nil, errors.New("Dataplane Token Server in Kuma CP is disabled. Either enable the server or run Kuma DP without token.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or run Kuma DP without token
Why is this message about Kuma DP
? It's app/kumactl/pkg/cmd/root_context.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When dataplane token server is disabled user can either enable the server to generate token or just run kuma dp without token. Do you think we skip the running kuma dp without token option?
Expect(err).To(HaveOccurred()) | ||
|
||
// and | ||
Expect(buf.String()).To(Equal("Error: failed to create dataplane token client: Dataplane Token Server in Kuma CP is disabled. Either enable the server or run Kuma DP without token.\n")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or run Kuma DP without token
Why is this message about Kuma DP
? It's app/kumactl/cmd/generate/generate_dataplane_token_test.go
3ef6e7a
to
d711881
Compare
2864227
to
b55c527
Compare
Summary