UX: separate public/private key files #251
Replies: 15 comments
-
Maybe try something like:
|
Beta Was this translation helpful? Give feedback.
-
Or even
but I'm still thinking this could be the default behaviour. Also consider that this becomes necessary when you want to encrypt the secret key (see also #86). |
Beta Was this translation helpful? Give feedback.
-
The intention is for public keys to be copy-pasted or scripted, rather than always managed as files. I should probably add an example for how to do that, like
Likewise, you can easily redirect the public key to a file
I should also cut a new beta with the age-keygen change that always prints the public key to stderr. |
Beta Was this translation helpful? Give feedback.
-
I like this:
|
Beta Was this translation helpful? Give feedback.
-
seems onerous when compared to, say, ssh's path-based file search or gpg's string-based keystore search. curious as to what the motivation is for this UX vs. one of the others. |
Beta Was this translation helpful? Give feedback.
-
Not seeing how being able to reference a file or paste a key directly is especially onerous. I would agree if users were forced into one option or the other might be but because both options, we have the best of both worlds. |
Beta Was this translation helpful? Give feedback.
-
@cyb3rz3us Having both keys stuffed in one file by default is unsafe. It means you DON'T have both worlds, the user is expected to copy the public key and not share it by sending a file. In order to send the public key as a file the user is expected to carefully extract the public data from the private key file. This _can_be done with the right shell commands, but why expect people to know how to get that right? |
Beta Was this translation helpful? Give feedback.
-
Wouldn't it be easy to add an option to |
Beta Was this translation helpful? Give feedback.
-
Ok so this thread is getting OT a little...but regardless... "...why expect people to know how to get that right..." Because I do expect people to be able to read a manpage, help page, manual, whatever...and get it right. If something is undocumented or behaves counter to what is documented, then agreed...not the user's issue. But when it is documented and behaves as such, then not sure what more one needs...RTFM really is very appropo most times. Next, "...both keys stuffed in one file by default is unsafe..." Not really...what is unsafe is not properly securing one's key files which includes not sending them to unintended recipients. This thread is discussing making sharing the public key easier...not a security issue. At present, the user can easily create a separate public keyfile albeit with a little more typing. I do see the merit to the feature ask --- and agree it makes 'age' easier on the end-user --- but I also firmly believe users need to take their own opSec seriously --- i.e. don't send out things improperly. |
Beta Was this translation helpful? Give feedback.
-
a better, smoother, inherently safer user experience...which is the entire point of this issue |
Beta Was this translation helpful? Give feedback.
-
Again with the "inherently unsafe"...know your tools and stop blaming the app... |
Beta Was this translation helpful? Give feedback.
-
The same could be said about PGP |
Beta Was this translation helpful? Give feedback.
-
instead of arguing about it more, I just wrote the functionality I was talking about. see #104 |
Beta Was this translation helpful? Give feedback.
-
There was no argument about the merits of the feature (read comments completely) - there was debate as to whether or not the current implementation is secure or burdensome to use... |
Beta Was this translation helpful? Give feedback.
-
I don't think we'll make |
Beta Was this translation helpful? Give feedback.
-
What were you trying to do
Sharing the public key.
What happened
I needed to open the file and copy-paste the public key characters in order to share the public key. Having a separate file for the public key would make it more easy for me to share using standard tools, avoids copy-pasting user errors and avoids shoulder surfing issues.
Beta Was this translation helpful? Give feedback.
All reactions