Conversation
|
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue from the original commit. |
There was a problem hiding this comment.
Hi Goetz,
Thanks for proposing this backport.
Comments:
-
src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Main.java
- Looks to me that the parameter 'CertPathConstraintsParameters cpcp' is added to the method printCert but not used. In 17u, this parameter is passed to checkWeakKey (introduced in 8259401), which has not been backported to 11u. I'd consider either removing it or backporting 8259401 too, which does not seem (at first glance) too complex. Give that this is a minor comment and that we are targeting 11.0.17, this suggestion won't be a blocker.
-
test/jdk/java/security/Security/signedfirst/exp.jar
- I was comparing against 17u-dev and found that this file was not deleted there. The correct action is to delete it, as proposed in the 11u backport and in the original patch. When the test was a script, this file was used. Now that the test is in Java, it uses the test libs to create the JAR in run time. No harm but, technically, we should delete this file from 17u.
- Note: this comment also applies to the file test/jdk/java/security/Security/signedfirst/keystore.jks.
- I was comparing against 17u-dev and found that this file was not deleted there. The correct action is to delete it, as proposed in the 11u backport and in the original patch. When the test was a script, this file was used. Now that the test is in Java, it uses the test libs to create the JAR in run time. No harm but, technically, we should delete this file from 17u.
In the test/jdk/sun/security/tools/jarsigner directory, I've not found references to "SHA1" that are not in 17u. The changes for tests removed in later releases look good to me.
I've also checked that there are no regressions in the following test categories:
- test/jdk/java/security/Security/signedfirst
- test/jdk/sun/security/tools/jarsigner
In summary, the 11u backport looks good to me. Good job.
I've seen that the 17u backport links the original CSR. In the old days we used to have a CSR specific for the backport. Please check that with the 11u release maintainers.
Thanks,
Martin.-
--
[1] - 942e3c2#diff-7083af3b8473a092987afa0bbb4d1694664649534bac716f6b9cd3c3b9833219R1449
|
@GoeLin 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. ➡️ To integrate this PR with the above commit message to the |
|
Hi Martin,
|
|
Hi Martin, |
|
Having double-checked with my colleagues I would like to push it as-is. |
|
/integrate |
|
Going to push as commit 5a0824b.
Your commit was automatically rebased without conflicts. |
src/java.base/share/conf/security/java.security
Does not resolve because 11 mentions "include jdk.disabled.namedCurves"
src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Main.java
Some hunks did not apply because DISABLED_CHECK was renamed
to JAR_DISABLED_CHECK in 17.
Other hunks patch methods not in 11: checkWeakKey(), checkWeakAlg()
as well as the calls to these methods.
test/jdk/java/security/Security/signedfirst/Dyn.sh
test/jdk/java/security/Security/signedfirst/Static.sh
Deleting did not apply.
test/jdk/java/util/jar/JarInputStream/signed.jar
Patching this binary file failed. I just copied
the file from 17.
test/jdk/sun/security/tools/jarsigner/CheckSignerCertChain.java
Patch skipped, test not in 11.
test/jdk/sun/security/tools/jarsigner/TimestampCheck.java
Resolved. Checked output differed.
test/lib/jdk/test/lib/security/SecurityUtils.java
The change to this file was already backported.
In addition, I adapted
sun/security/tools/jarsigner/DefaultOptions.java
sun/security/tools/jarsigner/NameClash.java
sun/security/tools/jarsigner/EC.java
according to
"8172404: Tools should warn if weak algorithms are used before restricting them"
which makes the tests pass.
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev pull/1244/head:pull/1244$ git checkout pull/1244Update a local copy of the PR:
$ git checkout pull/1244$ git pull https://git.openjdk.org/jdk11u-dev pull/1244/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1244View PR using the GUI difftool:
$ git pr show -t 1244Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/1244.diff