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

initial yubikey piv support #409

Closed
wants to merge 25 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
systemd ask password add prompt message
  • Loading branch information
tomis007 authored and tomis007 committed Jan 12, 2025
commit 43e4bb86cf8e9574fb94a56e45038cb7b93f4039
3 changes: 2 additions & 1 deletion prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ func SBCTLPrompt(validate func(string) error, label string, mask *rune) (string,
} else {
logging.Warn("not running in a TTY -- prompting with systemd-ask-password")
logging.Warn(fmt.Sprintf("(PROMPT) %s", label))
logging.Print("Run \"systemd-tty-ask-password-agent --query\" in another terminal\n")
logging.Warn("Run \"systemd-tty-ask-password-agent --query\" in another terminal\n")
cmd := exec.Command("/usr/bin/systemd-ask-password",
"--emoji=no",
"--timeout=0",
"-n",
"--echo=masked",
"sbctl Yubikey PIN",
)
output, err := cmd.Output()
if err != nil {
Expand Down