-
Notifications
You must be signed in to change notification settings - Fork 16
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
Chore: more verbose error messages for missing TUF private keys #362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. this is helpful
Example errors after this change:
If you can deduct what is going wrong here, then these new errors are good enough. |
Why the command is trying to read the "old" TUF targets private key? |
IIRC we've discussed this today:
|
Yes, I know why the command "reading" the current targets role key. However, the message is still misleading for me - hence my question. The key reason is that it doesn't convey what it is trying to achieve, instead it says about mechanics to achieve it. IMO, The message should say something like "Failed to find the current targets role key to be rotated (or for rotation) in ; expected to find keys with IDs listed in TUF root metadata: [] ". Maybe I am just looking into it from a wrong perspective. Perhaps checking it with the customer support would be the right way to verify whether the updated error messages are clear. |
@mike-sul your proposed message
... is almost the same as a message added by this PR:
The only 3 essential differences I found are:
I think all the user needs to know is that one of the old or new private keys with IDs id1 ... idN for role root or targets is missing in a file they provided. |
As for me they are absolutely different :).
That's great, I would put in the error message "... targets is missing in a file they provided". |
Signed-off-by: Volodymyr Khoroz <[email protected]>
cf2e218
to
e27fb33
Compare
@mike-sul please, take a look at updated messages:
Does it work well for you? |
No description provided.