Hi Vince,

you can take a look on:

http://blog.nanthrax.net/2014/10/encrypt-configadmin-properties-values-in-apache-karaf/

Actually, you can mix both.

Does it help ?

Regards
JB

On 10/03/2016 05:34 PM, Vince Iglehart wrote:
Hello,
I am using Karaf version 4.0.5 with Camel 2.17.3.  I need to create a
datasource with the password encrypted and not available to the end user.  I
understand there are two ways to create a datasource in Karaf.

1. Use BluePrint - create an XML file and specify an encrypted password
using Jasypt.
2. Using Pax JDBC - create a .cfg file and specify clear text password.

I understand option 2 is the new and preferred way to create datasources as
option 1 is now deprecated.

My question is how do I hide the password for option 2 so that it is
encrypted and does not show up when executing ==> service:list
javax.sql.DataSource.

I read on osp4j that hidden properties are supported:
https://ops4j1.jira.com/wiki/display/PAXJDBC/Create+DataSource+from+config

Therefore I can prepend the password property with a period inside of the
.cfg file, and it would hide the password.  However when I do that, the
datasource doesn't get created.

Thanks



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-Datasource-Passwords-tp4048219.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to