-
Notifications
You must be signed in to change notification settings - Fork 240
8293345: SunPKCS11 provider checks on PKCS11 Mechanism are problematic #2983
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
👋 Welcome back vieiro! A progress list of the required criteria for merging this PR into |
@vieiro This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 37 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@gnu-andrew) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
This backport pull request has now been updated with issue from the original commit. |
|
/approval request Let's allow PCKS11 legacy mechanisms in JDK11 too, as in 11.0.27-oracle and upper OpenJDK versions. |
@vieiro This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Let's keep it open. I may want to run additional tests too. |
@vieiro This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
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.
Backport looks good with copyright header difference in Config.java
correctly resolved. Builds and passes GHA tests.
It seems a little odd that this bug, JDK-8293345 is listed as an enhancement - that I would usually be wary of backporting - but the bug that actually introduced the concept of legacy mechanism (JDK-8176837) - is regarded as a bug. What this change is effectively doing is allowing the legacy determination added by 8176837 to be overridden by the user in the configuration. To my mind, this seems more like a bug fix for a regression created by 8176837, whereby mechanisms that worked prior to 8176837 can no longer be used due to the legacy determination. With this change, the user can explicitly enable such mechanisms again as needed. With that in mind, and the CSR already in place all the way back to 8u, I'm ok with approving this for 11u. By default, the legacy override is off so the only change is that the legacy check is less intrusive and only checks ciphers for encryption and signatures for signing. Previously, a signature that could sign & verify would be regarded as legacy and disabled if it couldn't also encrypt, which is unnecessary. So this should also make more cases possible even without the new config flag enabled. /approve yes |
@gnu-andrew |
Thanks for the approval, let's integrate. /integrate |
/sponsor |
Going to push as commit da5bfa9.
Your commit was automatically rebased without conflicts. |
@gnu-andrew @vieiro Pushed as commit da5bfa9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Clean backport of JDK-8293345 (but a copyright line, that is) for parity with 11.0.27-oracle.
Tier 1 tests pass in Linux.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2983/head:pull/2983
$ git checkout pull/2983
Update a local copy of the PR:
$ git checkout pull/2983
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2983/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2983
View PR using the GUI difftool:
$ git pr show -t 2983
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2983.diff
Using Webrev
Link to Webrev Comment