-
Notifications
You must be signed in to change notification settings - Fork 238
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
8051959: Add thread and timestamp options to java.security.debug system property #2998
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back vieiro! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
This backport pull request has now been updated with issue from the original commit. |
At least one of the issues associated with this backport has a resolved CSR for a different version. As this means that this backport may also need a CSR, the |
return Stream.of( | ||
// no extra info present | ||
Arguments.of("properties", | ||
"properties: java.security", |
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.
This reads properties: Initial
in JDK17, since JDK17 keeps track of initial properties and prints something like this on stderr
(note the "Initial security..." message):
$ [JDK17]/bin/java -Djava.security.debug=properties
properties: java.security
properties: java.security.disableSystemPropertiesFile=false
properties: security.useSystemPropertiesFile=false
properties: System security property support disabled by user.
properties: WARNING: FIPS mode support can not be enabled without system security properties being enabled.
properties: Initial security property: jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, DSA keySize < 1024, SHA1 denyAfter 2019-01-01
properties: Initial security property: fips.provider.3=SunEC
properties: Initial security property: fips.provider.4=SunJSSE
properties: Initial security property: fips.provider.1=SunPKCS11 ${java.home}/conf/security/nss.fips.cfg
Whereas, for 11:
$ [JDK11]/bin/java -Djava.security.debug=properties
properties: java.security
Usage: java [options] <mainclass> [args...]
(to execute a class)
Let's wait for a review before creating the CSR. |
Almost clean backport of JDK-8051959 that adds options to
java.security.debug
to enhance traces with thread, log record and timestamp information, improving traceability and easying troubleshooting, on par with "The java.security.debug System Property" in JDK17 and above, and with 11.0.26-oracle. Low risk.Backport is not completely clean because, among other things, JDK-8292177 was applied differently in 11 (also
HexFormat
is not in 11).One of the tests cases had to be changed, since JDK11 does not keep track of Security#initialSystemProperties and thus searching for
properties: Initial
in the teststderr
makes no sense. We're searching forproperties: java.security
instead (this is indicated in the github PR).Tested on Linux with tier1...
... and security tests ...
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2998/head:pull/2998
$ git checkout pull/2998
Update a local copy of the PR:
$ git checkout pull/2998
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2998/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2998
View PR using the GUI difftool:
$ git pr show -t 2998
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2998.diff
Using Webrev
Link to Webrev Comment