-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8327818: Implement Kerberos debug with sun.security.util.Debug #18199
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 weijun! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
@wangweij 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 136 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 |
|
A new commit is pushed to cover all other debug outpus in JGSS/krb5. Most of the changes are simply one of:
There is no more |
src/jdk.security.auth/share/classes/com/sun/security/auth/module/Krb5LoginModule.java
Show resolved
Hide resolved
src/java.security.jgss/share/classes/sun/security/krb5/internal/crypto/crc32.java
Outdated
Show resolved
Hide resolved
src/java.security.jgss/share/classes/sun/security/krb5/internal/KerberosTime.java
Outdated
Show resolved
Hide resolved
src/java.security.jgss/share/classes/sun/security/jgss/spnego/SpNegoToken.java
Outdated
Show resolved
Hide resolved
src/jdk.security.auth/share/classes/com/sun/security/auth/module/Krb5LoginModule.java
Show resolved
Hide resolved
coffeys
left a comment
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.
Looks good. Few minor comments made.
the new Debug.of method will need to implement some logic from the decorator debug PR at #18084 -- depending on integration order, we can tackle that as needed.
| * Usually, this method is used by other individual era-specific debug | ||
| * settings. For example, | ||
| * {@snippet lang=java: | ||
| * Map<String,String> settings = loadLoginSettings(); |
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.
minor nit - needs a space : Map<String, String>
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.
Will add one.
| * {@snippet lang=java: | ||
| * Map<String,String> settings = loadLoginSettings(); | ||
| * String property = settings.get("login"); | ||
| * Debug debug = Debug.of("login", setting); |
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.
did you mean to use the property variable name here ?
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.
Ah, yes.
| * @param property debug setting for this option | ||
| * @return a new Debug object if the property is true | ||
| */ | ||
| public static Debug of(String option, String property) { |
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.
the property name is a bit confusing here IMO. Most use cases will be string corresponding to a boolean (or null) - Would a boolean paramater make more sense ? Otherwise. I'd suggest renaming variable to something like debugEnabled
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.
I was thinking that it will contain more options like true+timestamp later. By that time, we only need to update the Debug class to add this feature.
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.
I see. Seems reasonable then.
I can see how folding these krb5 debug options in under the java.security.debug property will make debugging easier for everyone. Hopefully, something that can be done in the near future in a follow on patch.
| */ | ||
| import com.sun.security.auth.module.Krb5LoginModule; | ||
| import jdk.test.lib.process.ProcessTools; | ||
|
|
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.
Additional line can be removed.
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.
IntelliJ IDEA suggested the format. The other imports (non Java SE) and normal imports (Java SE) are separated.
|
/integrate |
|
Going to push as commit 569b05a.
Your commit was automatically rebased without conflicts. |
Change
Krb5LoginModuledebugging to usesun.security.util.Debug.Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18199/head:pull/18199$ git checkout pull/18199Update a local copy of the PR:
$ git checkout pull/18199$ git pull https://git.openjdk.org/jdk.git pull/18199/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18199View PR using the GUI difftool:
$ git pr show -t 18199Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18199.diff
Webrev
Link to Webrev Comment