Skip to content

Conversation

@felixfontein
Copy link
Contributor

FiloSottile/age#591 has been closed with FiloSottile/age@7f49d02. Let's use that instead of vendoring the code (and having to maintain it).

return "", err
}
return string(passphrase), nil
return pluginTerminalUI.RequestValue("", fmt.Sprintf("Enter passphrase for identity '%s':", location), true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If an error happens during reading, a slightly strange warning will be printed refering to an age plugin age-plugin-. The empty string is what is put after the last -. I'm not sure whether we should put something in there to make the warning a little bit less awkward.

Ref: FiloSottile/age@7f49d02#diff-a641cf812f55a9ba2325124414c15bbc493d4387a1a315ce3a16be0a7b9f6fdcR25

}
passphrasePrompt := func() ([]byte, error) {
pass, err := readSecret(fmt.Sprintf("Enter passphrase for %q:", keyPath))
pass, err := pluginTerminalUI.RequestValue("", fmt.Sprintf("Enter passphrase for %q:", keyPath), true)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@felixfontein
Copy link
Contributor Author

CC @brianmcgee

@felixfontein felixfontein requested a review from a team January 11, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant