-
Notifications
You must be signed in to change notification settings - Fork 25
Add the ability to specify the secrete key #23
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
Conversation
While adding python3 support (743b6ce) signature functionality was broken. The reason - before the patch, we worked with the subprocess as if the streams (STDIN, STDOUT) were opened in text mode, but by default they are opened as binary streams.
11fd256
to
526a396
Compare
The PR adds only the ability to specify which secrete key must be used for signature , because such solution, on the one hand, allows us to set a specific key for signing (which is not necessarily the default) and, on the other hand, allows to reduce the amount of logic added to the tool. |
Before the patch to specify the secrete key option "--default-key" was used. But it's not so clear for 2 reasons: - If the specified key is absent, the current default key will be used. - We don't want to change the default secrete key, we want to sign some data by specified key. Now we are using the "-u" option. As a result: if the specified key is absent, an error will be returned and the key used by default is not change now. Part of #19
526a396
to
d17c275
Compare
All my comments are just thoughts around the code, they are not about real problems. I'll add Konstantin as the final reviewer. |
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.
LGTM. There are some thoughts around, but nothing critical.
776cc6e
to
56a6158
Compare
@knazarov can you review the PR? |
704e555
to
4c59dbd
Compare
Added the ability to specify the gpg secret key for signing by using the env variable. Closes #19
4c59dbd
to
5057928
Compare
5057928
to
e24defa
Compare
LGTM |
The PR includes several fixes for signature and adds the ability to specify the gpg secret key for signing by using the env variable.