8313367: SunMSCAPI cannot read Local Computer certs w/o Windows elevation#1860
8313367: SunMSCAPI cannot read Local Computer certs w/o Windows elevation#1860satyenme wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back ssubramaniam! A progress list of the required criteria for merging this PR into |
|
@satyenme 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: 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 28 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 |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
|
/approval request for backport of JDK-8313367: SunMSCAPI cannot read Local Computer certs w/o Windows elevation Motivation: Without this backport, unless run with elevated permissions, the SunMSCAPI keystore access provider will fail with a access denied RuntimeException on Windows. With this backport if the process does not have write permissions, the store is opened as read-only (instead of failing). This change has been backported by Oracle to 21, 17, and 11. Risk: Low. Ran GHA Sanity Checks, local Tier 1 and 2, and new test directly (though not on a Windows machine). Patch is clean. Change has been present in tip since November, 2024. |
|
/integrate |
|
Going to push as commit 96866ce.
Your commit was automatically rebased without conflicts. |
Backporting JDK-8313367: SunMSCAPI cannot read Local Computer certs w/o Windows elevation. With the current code, the enhancement developed to allow keystore access provider SunMSCAPI to access the Windows Local Computer keystore, JDK-6782021, works as expected only if processes are run as elevated. When run with non-elevated access, the SunMSCAPI provider fails to access a read only private key from the Local Computer certificate store. Adjusts code so if the process does not have write permissions, the store is opened as read-only (instead of failing). Ran GHA Sanity Checks, local Tier 1 and 2, and modified test directly (although not on a Windows machine). Patch is clean.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/1860/head:pull/1860$ git checkout pull/1860Update a local copy of the PR:
$ git checkout pull/1860$ git pull https://git.openjdk.org/jdk21u-dev.git pull/1860/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1860View PR using the GUI difftool:
$ git pr show -t 1860Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/1860.diff
Using Webrev
Link to Webrev Comment