Re: PAX-JDBC password encryption handling
Hi Ashish, I am encrypting the passwords in my datasource cfg's successfully. To accomplish this, I have a simple blueprint XML that I drop into servicemix/deploy which declares the Jasypt string encryptor, then in my datasource cfg's I use the conventional ENC(...) syntax. Works perfectly. I found out about this approach here: http://karaf.922171.n3.nabble.com/Karaf-Datasource-Passwords-td4048219.html Good luck. On Thursday, August 10, 2017 at 6:27:48 AM UTC-4, Ashish Khaware wrote: > > Hi, > > I am using pax-jdbc version 1.0.1 and I have to use database password > which needs to be encrypted using some company proprietary based algorithm. > > Since, pax-jdbc reads org.ops4j.datasource-*.cfg directly for password, I > can't put encrypted password. > > Can anyone please suggest at which stage and how I can put the decrypted > password (I have logic to decrypt password), so that database connection is > successfully established? > > Regards, > Ashish > -- -- -- OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: PAX-JDBC password encryption handling
I suspect that pax-jdbc is NOT reading *cfg files directly but you provide them through felix-fileinstall as regular OSGi-Configurations and pax-jdbc use osgi-cm to access them. You have two options: - hook up on felix-fileinstall by providing a custom ArtifactTransformer and ArtifactInstaller [1] - register a ConfigurationPlugin [2] (just make sure your plugi nstarts before any other services or you refresh the configs of interest after start-up of your service) [1] http://felix.apache.org/documentation/subprojects/apache-felix-file-install.html [2] https://osgi.org/javadoc/r4v42/org/osgi/service/cm/ConfigurationPlugin.html Am 10.08.2017 12:27, schrieb Ashish Khaware: Hi, I am using pax-jdbc version 1.0.1 and I have to use database password which needs to be encrypted using some company proprietary based algorithm. Since, pax-jdbc reads org.ops4j.datasource-*.cfg directly for password, I can't put encrypted password. Can anyone please suggest at which stage and how I can put the decrypted password (I have logic to decrypt password), so that database connection is successfully established? Regards, Ashish -- -- -- OPS4J - http://www.ops4j.org - ops4j@googlegroups.com --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.