Skip to content

feat: mask coder login token to enhance security #12948

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

Merged
merged 9 commits into from
May 3, 2024
Next Next commit
feat(login): treat coder token as a secret
  • Loading branch information
michaelbrewer committed Apr 12, 2024
commit 06b33fd91584ef00b237a0f541ba21b3f3721c20
1 change: 1 addition & 0 deletions cli/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ func (r *RootCmd) login() *serpent.Command {

sessionToken, err = cliui.Prompt(inv, cliui.PromptOptions{
Text: "Paste your token here:",
Secret: true,
Validate: func(token string) error {
client.SetSessionToken(token)
_, err := client.User(ctx, codersdk.Me)
Expand Down
Loading