-
Notifications
You must be signed in to change notification settings - Fork 356
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
Adding master password decrypting #4753
Adding master password decrypting #4753
Conversation
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.
Some suggestions could not be made:
- rewrite-maven/src/main/java/org/openrewrite/maven/MavenSettings.java
- lines 27-27
rewrite-maven/src/main/java/org/openrewrite/maven/MavenSettings.java
Outdated
Show resolved
Hide resolved
@timtebeek : could you list all the changes that are necessary? |
Looking good already @svaningelgem ! Could you remove the |
Thanks for the assist. I'll handle the hint you gave me |
Hello @timtebeek , I added the tests now. Could you have a look if they're decent enough and/or where I would need to make changes? Thanks |
rewrite-maven/src/test/java/org/openrewrite/maven/MavenSecuritySettingsTest.java
Outdated
Show resolved
Hide resolved
👍 Thanks @timtebeek for the assist ! :-) |
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.
Thanks a lot for the hard work here @svaningelgem ! I've only added some small changes to move things around and support relocation; apart from that very glad to see you tackled the decryption & tests. Hope this helps you all there!
Yes, I will try to test it out at work tomorrow. I hope this solves the issue. |
@svaningelgem This change is not working for me. my master password is in a file called settings-security.xml in my .m2 directory It looks like this
The exception is below.
|
Hi Sean, What I would suggest is that you check out the main branch and debug with your settings file. Alternatively, you can send me your settings & settings security file (check my profile to see how to reach out). Watch out. This will expose your password to me (but I promise to delete it once I'm done with it -- and my memory is worse than a goldfish ;)). Grtz, |
What's changed?
Adding the ability for openrewrite to read encrypted passwords. (maven-feature as described here:
https://maven.apache.org/guides/mini/guide-encryption.html
What's your motivation?
We can't use this library on our internal Nexus server as our passwords are encrypted.
Anything in particular you'd like reviewers to focus on?
For now this is a draft as I don't know what to add/change. Or maybe you can pick it up and whip it into shape? The heavy lifting for the decryption is already done after all ;-).
Have you considered any alternatives or workarounds?
No alternatives exist.
Any additional context
settings-security.xml
#4589Checklist