-
Notifications
You must be signed in to change notification settings - Fork 50
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
Bump cryptography from 2.9.2 to 3.0 #261
Conversation
The tests are failing and claiming we're trying to load a DSA key that has fewer than 1024 bits:
however if I look at the test keys with
|
Bumps [cryptography](https://github.com/pyca/cryptography) from 2.9.2 to 3.0. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst) - [Commits](pyca/cryptography@2.9.2...3.0) Signed-off-by: dependabot-preview[bot] <[email protected]>
831b083
to
84b8e65
Compare
It actually doesn't claim that our key has fewer than 1024 bits, but rather that it doesn't have exactly 1024 bits. The restriction was added in pyca/cryptography#5146 and released with 3.0, without any mention of it in the changelog or corresponding commit/PR. I'm not sure why though, because we were able to load the 2048 bit pub key just fine before. I think I'll open an issue on pyca/cryptography. |
So it seems the restriction was indeed intended (see pyca/cryptography#5373). The easiest thing to fix this will be to just store the test key in another format, e.g. PEM. |
We have a few other options, no?
|
Good point. I thought about those too, but decided against them because, downgrading (replacing) the key in the test gpg keychain would have been more work than just changing the format of the pubkey file, and removing DSA support is a bigger decision that I didn't see the need for to make right now. #264 has my PEM fix and successfully tests against cryptography==3.0. |
Looks like cryptography is up-to-date now, so this is no longer needed. |
Bumps cryptography from 2.9.2 to 3.0.
Changelog
Sourced from cryptography's changelog.
Commits
b0d9bdc
prep 3.0 for release (#5327)6bd3faa
Tell people to use black in our dev docs (#5328)60aa044
Paint it Black by the Rolling Stones (#5324)4a245a6
test FIPS mode on centos8 (#5323)2fdb747
PKCS12 support (#5325)972c886
refactor DH a bit to generate less parameters (#5326)31359f3
fix grammar in error message (#5322)084da16
disable the osrandom engine on 1.1.1d+ (#5317)1604ea7
test exceptions and properly reject duplicate attributes in csrbuilder (#5319)b8656fc
Implement deepcopy for x509 certificates (#5318)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language@dependabot badge me
will comment on this PR with code to add a "Dependabot enabled" badge to your readmeAdditionally, you can set the following in your Dependabot dashboard: