Skip to content
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

8328638: Fallback option for POST-only OCSP requests #413

Closed

Conversation

shipilev
Copy link
Member

@shipilev shipilev commented Mar 27, 2024

Improves JDK OCSP compatibility with some real world OCSP responders. Starts to be a problem since JDK 17 introduced GET OCSP requests. The default behavior is not changed.

The backports are almost clean, I just had to add the import for Locale in one of the files. It is added in mainline by JDK-8312443, which I do not want to backport at the moment, as it changes existing security code.

Additional testing:

  • jdk_security pass, including new test cases

Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change requires CSR request JDK-8328810 to be approved
  • JDK-8328638 needs maintainer approval
  • JDK-8329213 needs maintainer approval

Issues

  • JDK-8328638: Fallback option for POST-only OCSP requests (Enhancement - P4 - Approved)
  • JDK-8329213: Better validation for com.sun.security.ocsp.useget option (Enhancement - P4 - Approved)
  • JDK-8328810: Fallback option for POST-only OCSP requests (CSR)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/413/head:pull/413
$ git checkout pull/413

Update a local copy of the PR:
$ git checkout pull/413
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/413/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 413

View PR using the GUI difftool:
$ git pr show -t 413

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/413.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 27, 2024

👋 Welcome back shade! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Mar 27, 2024

@shipilev This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8328638: Fallback option for POST-only OCSP requests
8329213: Better validation for com.sun.security.ocsp.useget option

Reviewed-by: serb

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 18 new commits pushed to the master branch:

  • 78e35ea: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185
  • 620250b: 8317965: TestLoadLibraryDeadlock.java fails with "Unable to load native library.: expected true, was false"
  • d2c6be9: 8317350: Move code cache purging out of CodeCache::UnloadingScope
  • c094d7e: 8317677: Specialize Vtablestubs::entry_for() for VtableBlob
  • 0839687: 8317235: Remove Access API use in nmethod class
  • 32ab4a2: 8316669: ImmutableOopMapSet destructor not called
  • 7c5ff9a: 8316670: Remove effectively unused nmethodBucket::_count
  • 92b237c: 8315485: (fs) Move java/nio/file/Path/Misc.java tests into java/nio/file/Path/PathOps.java
  • 618a7ba: 8315998: Remove dead ClassLoaderDataGraphKlassIteratorStatic
  • 8d3151f: 8316002: Remove unnecessary seen_dead_loader in ClassLoaderDataGraph::do_unloading
  • ... and 8 more: https://git.openjdk.org/jdk21u-dev/compare/2800d8bc708f7ccdf32ef64c52f99f40b1459698...master

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 master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title Backport 614db2ea9e10346475eef34629eab54878aa482d 8328638: Fallback option for POST-only OCSP requests Mar 27, 2024
@openjdk
Copy link

openjdk bot commented Mar 27, 2024

This backport pull request has now been updated with issue from the original commit.

@shipilev shipilev force-pushed the JDK-8328638-ocsp-fallback-get branch from a3ba98a to 7e5676e Compare April 2, 2024 08:52
@shipilev
Copy link
Member Author

shipilev commented Apr 2, 2024

/issue add JDK-8329213

@openjdk openjdk bot removed the clean label Apr 2, 2024
@openjdk
Copy link

openjdk bot commented Apr 2, 2024

@shipilev
Adding additional issue to issue list: 8329213: Better validation for com.sun.security.ocsp.useget option.

@shipilev shipilev marked this pull request as ready for review April 2, 2024 10:40
@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 2, 2024
@mlbridge
Copy link

mlbridge bot commented Apr 2, 2024

Webrevs

@openjdk
Copy link

openjdk bot commented Apr 2, 2024

⚠️ @shipilev This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@shipilev
Copy link
Member Author

shipilev commented Apr 2, 2024

/approval request Improves JDK OCSP compatibility with some real world OCSP responders. Starts to be a problem since JDK 17 introduced GET OCSP requests. Risk is medium-low, as default behavior is not changed, and the code is simple. Passes full jdk_security tests, eyeballed logs show the expected behavior.

@openjdk
Copy link

openjdk bot commented Apr 2, 2024

@shipilev
8328638: The approval request has been created successfully.
8329213: The approval request has been created successfully.

@shipilev
Copy link
Member Author

shipilev commented Apr 2, 2024

/approval 8328638 request Improves JDK OCSP compatibility with some real world OCSP responders. Starts to be a problem since JDK 17 introduced GET OCSP requests. Risk is medium-low, as default behavior is not changed, and the code is simple. Passes full jdk_security tests, eyeballed logs show the expected behavior.

/approval 8329213 request Option checking followup for JDK-8328638. Risk is low, simple refactoring. Passes full jdk_security tests, eyeballed logs show the expected behavior.

@openjdk openjdk bot added the approval label Apr 2, 2024
@openjdk
Copy link

openjdk bot commented Apr 2, 2024

@shipilev
8328638: The approval request was already up to date.

@openjdk
Copy link

openjdk bot commented Apr 2, 2024

@shipilev
8329213: The approval request has been updated successfully.

@jerboaa
Copy link
Contributor

jerboaa commented Apr 3, 2024

/approve yes

@openjdk
Copy link

openjdk bot commented Apr 3, 2024

@jerboaa
8328638: The approval request has been approved.
8329213: The approval request has been approved.

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Apr 3, 2024
@shipilev
Copy link
Member Author

shipilev commented Apr 4, 2024

/integrate

@openjdk
Copy link

openjdk bot commented Apr 4, 2024

Going to push as commit fbc5871.
Since your change was applied there have been 18 commits pushed to the master branch:

  • 78e35ea: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185
  • 620250b: 8317965: TestLoadLibraryDeadlock.java fails with "Unable to load native library.: expected true, was false"
  • d2c6be9: 8317350: Move code cache purging out of CodeCache::UnloadingScope
  • c094d7e: 8317677: Specialize Vtablestubs::entry_for() for VtableBlob
  • 0839687: 8317235: Remove Access API use in nmethod class
  • 32ab4a2: 8316669: ImmutableOopMapSet destructor not called
  • 7c5ff9a: 8316670: Remove effectively unused nmethodBucket::_count
  • 92b237c: 8315485: (fs) Move java/nio/file/Path/Misc.java tests into java/nio/file/Path/PathOps.java
  • 618a7ba: 8315998: Remove dead ClassLoaderDataGraphKlassIteratorStatic
  • 8d3151f: 8316002: Remove unnecessary seen_dead_loader in ClassLoaderDataGraph::do_unloading
  • ... and 8 more: https://git.openjdk.org/jdk21u-dev/compare/2800d8bc708f7ccdf32ef64c52f99f40b1459698...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 4, 2024
@openjdk openjdk bot closed this Apr 4, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 4, 2024
@openjdk
Copy link

openjdk bot commented Apr 4, 2024

@shipilev Pushed as commit fbc5871.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
3 participants