question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

jasypt-maven-plugin: Incorrect documentation

See original GitHub issue

Hi @rupert-madden-abbott and @ulisesbocchio, first off, thank you for providing a maven plugin for encrypting/decrypting secrets with jasypt. This is my first time using the plugin or Jasypt for that matter. So the feedback I am sharing below is from the context of a new user of your project(s).

Having said that, I am not entirely sure if you actually tested the documentation you provided for the public in the README related to using the jasypt-maven-plugin for string encryption/decryption purposes.

Here are a few issues I am running into:

  1. I did not find any 2.1.2 version of the plugin. I had to look at the plugin code, to figure out the correct version is 3.0.0.
  2. There is no encrypt:encrypt goal available. The correct goal from the code is jasypt:encrypt.
  3. The plugin doesn’t appear to support multi-profile yaml documents (introduced almost 3 years ago), which is what I use in my project. If multi-profile yaml isn’t supported, it should be called out in the README.
  4. If the lack of support for multi-profile yaml is indeed true, I don’t see a section in the README that explains how one can actually encrypt secrets in the first place. Is the solution then to use the jasypt-1.9.3.jar to encrypt secrets and use your spring-boot or spring-boot-starter dependencies to decrypt already encrypted secrets? As said above, this is feedback coming from a first-time user. So if this is assumed all along, it would be good to mention in the README.

If you believe the issues I have listed above are inaccurate, please share or point me to an example of using the plugin to encrypt/decrypt secrets in multi-profile yaml documents.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rupert-madden-abbottcommented, Feb 14, 2020

@prakashiit yes you are correct that this is a typo. It looks like PR #196 already fixes this one.

1reaction
prakashiitcommented, Feb 14, 2020

Remove Extra ‘/’ in filepath in Readme.md

@ulisesbocchio I faced this small problem while following the guide at “https://github.com/ulisesbocchio/jasypt-spring-boot/blob/master/README.md#file-path”. For example, running

mvn jasypt:encrypt -Djasypt.encryptor.password="the password" -Djasypt.plugin.path="file:/src/main/resources/application.yml"

didn’t work and after I changed the path to -Djasypt.plugin.path="file:src/main/resources/application.yml" (removed / before src), it worked perfectly. I’m not sure whether this was a typo in the readme or mine is just a unique case. Please correct if this was a typo, apologies if it’s the latter. Thanks a lot for this plugin though!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java simplified encryption - Frequently Asked Questions - Jasypt
I want to encrypt passwords and I know NOTHING about encryption. What do I have to do? Can I decrypt an encrypted password?...
Read more >
Chapter 9. Issues Resolved in Fuse 7.0
karaf-maven-plugin does not prefix non-bundles with the wrap: prefix when generating a ... Update Kar documentation ... Document jasypt property placeholder.
Read more >
https://svn.apache.org/repos/asf/karaf/attic/karaf...
[KARAF-392] - Ability to use features-maven-plugin:add-features-to-repo without ... Incorrect behavior of backspace/delete keys in web console Gogo plugin ...
Read more >
Error resolving version for plugin 'org.apache.maven.plugins ...
I had the same error, but for the maven-failsafe-plugin . With the help of a colleague, we got rid of the problem adding...
Read more >
How to encrypt passwords in a Spring Boot project using Jasypt
Jasypt (Java Simplified Encryption), provides encryption support for ... Add maven dependency of jasypt: In the pom.xml file, add maven ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found