Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Alex Weirig
Hi Jean-Baptiste, that sounds like an interesting idea but you are pointing at an obvious drawback with these solutions... If we're using a "master password" (like jasypt) we need to provide this master password in order to allow decryption of the password. That master password has to be ava

Re: Karaf 4.2 m2 / FELIX-5618

2018-02-19 Thread nino martinez wael
Thanks :) That is great news :) On Mon, Feb 19, 2018 at 7:08 AM, Jean-Baptiste Onofré wrote: > Hi Nino, > > I sent an e-mail this morning about 4.2.0 head up. > > Let me upgrade to SCR 2.0.14 on master: > > https://issues.apache.org/jira/browse/KARAF-5616 > > I'm on it. > > Thanks ! > Regards >

Re: Karaf 4.2 m2 / FELIX-5618

2018-02-19 Thread Jean-Baptiste Onofré
By the way, I also cherry picked on 4.1.x & 4.0.x branches. Regards JB On 02/19/2018 01:35 PM, nino martinez wael wrote: > Thanks :) That is great news :) > > On Mon, Feb 19, 2018 at 7:08 AM, Jean-Baptiste Onofré > wrote: > > Hi Nino, > > I sent an e-mail thi

Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Jean-Baptiste Onofré
Hi Alex, The problem is the "direction". Let me take an example: the encryption service we have to crypt passwords in etc/users.properties. Here's the direction is pretty simple: the user provides the password, we encrypt the password using the configuration defined in etc/org.apache.karaf.jaas.c

Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Alex Weirig
That's correct and that's what I'm trying to solve (or work around). E.g. I need to store my mysql password in the config file. The password is 1234pwd. Imagine we have a karaf command that's config:encrypt. I use config:encrypt 1234pwd and it returns a hash, this hash would computed using

Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Jean-Baptiste Onofré
Yes, that would work but it requires: 1. either a change at ConfigAdmin layer (difficult and not accurate IMHO) 2. a Karaf service that application (like Pax JDBC) can leverage when a {CRYPT}hash{CRYPT} property value pattern is detected. Karaf JAAS already has EncryptionService providing encrypt

Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Alex Weirig
Before we go ahead and add the decrypt feature, would the maintainers of e.g. PAX JDBC etc be interested in adding support for this in their services? Schéin Gréiss, Mit freundlichen Grüßen, Meilleures salutations, Kind regards, Alex Weirig Responsable Technique Ville de Luxembourg - Centr

Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Jean-Baptiste Onofré
As most of Karaf committers are also Pax * projects contributors, I think it's a fair request. However, Pax JDBC already provides such feature: it's part of pax-jdbc-config already (in the DataSourceConfigManager). It uses an embedded encryption service (not the one provided by Karaf), but it's ba

Re: Using jasypt in Karaf 4.1.4 without Blueprint?

2018-02-19 Thread Alex Weirig
OK then it might make sense to add the decrypt support. Schéin Gréiss, Mit freundlichen Grüßen, Meilleures salutations, Kind regards, Alex Weirig Responsable Technique Ville de Luxembourg - Centre Technolink 2, rue Charles de Tornaco L - 2623 LUXEMBOURG alex.wei...@technolink.lu

bundle location uploaded through webconsole

2018-02-19 Thread blnprasad
Hi, I've uploaded a bundle through webconsole. I'm tracing the location of it but couldn't find it. When i check bundle context it shows location as "inputsteam" Bundle Location inputstream: can some one please let me know from where this inputstream will be populated. -- Sent from: http://k

Pax connection pools

2018-02-19 Thread Leschke, Scott
I've emailed about this before but some time ago I mentioned that I didn't think that the PAX connection pools were initializing the underlying CP implementation (Hikari in my case) properly. In particular, connections are getting dropped after 30 mins (the Hikari default) even though connection

Re: Pax connection pools

2018-02-19 Thread Jean-Baptiste Onofré
Hi Scott, let me take a look. It could be related to pax-jdbc-config and the related features declaration. Regards JB On 20/02/2018 01:36, Leschke, Scott wrote: I’ve emailed about this before but some time ago I mentioned that I didn’t think that the PAX connection pools were initializing th