Fix: openpgp unsupported feature #46 - #51
Conversation
emersion
left a comment
There was a problem hiding this comment.
Thanks for your pull request!
| .glide/ | ||
|
|
||
| auth.json | ||
| /.DS_Store |
There was a problem hiding this comment.
I'd prefer not to add platform-specific things (such as .DS_Store) here
There was a problem hiding this comment.
@nast90210 one great way to avoid adding this to a particular project is to use a global gitignore file just for your system (macOS in this case): https://help.github.com/en/articles/ignoring-files#create-a-global-gitignore
There was a problem hiding this comment.
@powellc thx man - you advise is great!! I will try it!!
| if err != nil && err != openpgperrors.ErrUnknownIssuer { | ||
| return nil, err | ||
| } | ||
| // _, err := openpgp.CheckDetachedSignature(nil, bytes.NewReader(block.Plaintext), block.ArmoredSignature.Body) |
There was a problem hiding this comment.
Hmm, I'm a little bit sad to see this go away. What is the exact error you're hitting?
|
Disabling signature check, do you really have too? Seems to me like disabling antivirus |
Yeah, I'd prefer not to. This particular signature checks happens when logging in to make sure we're talking to the ProtonMail servers and we've not been MITM'ed (this is an additional layer of security on top of HTTPS). Tat said, the current code doesn't check for the signer (see the TODO), so disabling it doesn't really weaken security. However I'd like to fix this TODO. Disabling the verification completely goes one step backwards, so I'd like to avoid doing that. |
|
@emersion Before this pull o have never write code on go. So, when I stuck with the error and see that code is not make security weaker, I just commit it. May be on Monday I can try to finished TODO. |
No need to finish the TODO in this PR, this can be done separately and is unrelated. However if you could post here the error message you're getting and try to make the verification work that would be helpful. |
|
@emersion Hi! I understand what throw error in |
Are you able to login ( |
|
@emersion yeap |
|
@emersion mb someone can check my PR |
|
|
|
@emersion it's strange, because I get this error without removing |
|
Thanks for your PR, but it doesn't seem like that Keybase fork supports the required algorithm. |
Hi! I change golang.org/x/crypto to github.com/keybase/go-crypto. And also disable signature key check, because it throw an error
Fixes #46