-
Notifications
You must be signed in to change notification settings - Fork 50
Improve Credentials logging by using CredentialUseListener #68
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
Improve Credentials logging by using CredentialUseListener #68
Conversation
src/main/java/hudson/plugins/audit_trail/CredentialUsageListener.java
Outdated
Show resolved
Hide resolved
src/main/java/hudson/plugins/audit_trail/CredentialUsageListener.java
Outdated
Show resolved
Hide resolved
204f7a1 to
65d73b8
Compare
|
Sorry, that was a bit too early. Obviously requires jenkinsci/credentials-plugin#295 before it is ready for review / merge. Sadly, I cannot mark it as draft again.. |
PierreBtz
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.
That looks like a very valuable addition to the plugin. Thanks for the contribution!
I understand you need to incrementalize the plugin and I'm ok with it, but I don't think this should be done in this PR. I'm happy to do it for you, or feel free to create another PR dedicated to this change.
src/main/java/hudson/plugins/audit_trail/CredentialUsageListener.java
Outdated
Show resolved
Hide resolved
src/main/java/hudson/plugins/audit_trail/CredentialUsageListener.java
Outdated
Show resolved
Hide resolved
src/main/java/hudson/plugins/audit_trail/CredentialUsageListener.java
Outdated
Show resolved
Hide resolved
No worries, did it for you |
|
Hey @PierreBtz, |
|
@meiswjn sorry I didn't have time to come back to this PR :/ Regarding our discussion about the core version to depend on, I agree with you it will be a pain to wait 3 LTS as I usually do. My suggestion would be to bump to the first weekly containing the upstream dev, it will cut the latest version of the plugin from the majority of the user base but since I expect I won't have time to make other changes in the near future I guess it's ok. |
|
@PierreBtz Thanks for your reply and your willingness to merge this! Let's see what version the upstream change will get merged to, then I will adapt the PR and put it to Ready for Review. |
|
Depends on #69 |
|
Hey @PierreBtz, not to rush you, but would you be able to give me a timeline for this PR? Thanks! |
|
@meiswjn sorry about the delay. I'm away this week, I commit to make this move next week. I had a quick look earlier this month, the prerequisite PR (bump of core version) needs adaptation since an API used in the tests changed and broke the test compilation. |
…ials-listener # Conflicts: # pom.xml # src/test/java/hudson/plugins/audit_trail/AuditTrailFilterTest.java
|
@meiswjn I took the liberty of:
If you agree with those changes, I'll go ahead, merge this and cut a new release. |
|
Sure! Thank you! |
|
@meiswjn the artifactory of the project seems to have some trouble, I'll have to wait to complete the release, I'll try to do it this week-end, beginning of the next week at the latest. |
|
@meiswjn this is now released as part of 3.11. Give it a few hours and it should be visible in your update center. |
This change will allow tracking Credentials usage much easier, independent from Fingerprints. So far it was necessary to use the SaveableListener provided by the Fingerprints to subscribe to Credentials usage. Because certain credential consumers do not create fingerprints, this approach is flawed.
Creating the listener gives a lightweight method of tracking Credentials usage, improving overall security.
The listener is introduced in jenkinsci/credentials-plugin#295