getsecret: have separate field for options #7
Labels
No labels
blocked
bug
ciritical
code improvement
duplicate
feature
in progress
low
normal
research
spec change
ui
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
w21/jpylib#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For now, the one implemented option,
b64, is put as{b64}in front of the (base64-encoded) secret. That makes it impossible to have a clear-text secret that begins with{b64}. While this is unlikely to have practical consequences, it is not impossible, so options should be handled differently.Current idea: have not one, but two significant colons in the file, with
tag:options:secret, and depending on the option(s), the secret can be encoded in some way. Options can be short strings (like "b64"), seperated by comma if necessary. If we use another encoding besidesb64, having both in the options field would mean the secret is encoded with both encodings in the order of appearance. Example:jnic/AD:zip,b64:eJwLyC/IzwkrzdBxLcpLLS7JBwA0qQZK(Note: this is an actual password I had in use, but no longer.)
For transition, getsecret should fall back to the old form with just one field if there are no two colons or the text between the (first) two colons does not comprise valid options.
closed via commit
9b4efa8d89