-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
cli/demo: avoid login URL if insecure #58662
Conversation
} | ||
serverURL.Path = server.DemoLoginPath | ||
serverURL.RawQuery = pwauth.Encode() | ||
} | ||
fmt.Fprintf(w, " (console) %s\n", serverURL) |
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.
i think this still prints the console link, do you mean avoid the link as in avoid printing username and password, or something else?
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.
Yes the URL must be printed in any case, what needs to be skipped is the autologin URL path.
serverURL.Path = server.DemoLoginPath | ||
serverURL.RawQuery = pwauth.Encode() | ||
if !demoCtx.insecure { | ||
// Print node ID and console URL. Embed the autologin feature inside the URL. |
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.
maybe worth a comment about why we do not do this for insecure
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.
Sure, done.
TFYR bors r=otan |
Build failed: |
Release note: None
bors r=otan |
Build succeeded: |
Fixes #58661
NB: insecure is deprecated anyway #53404