Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-08 Thread Florian Patzl
Hello Vojtech, thanks a lot for your input and updating your solution for 3.x. I chose a slightly different approach by implementing a PropertiesFunction, so that we don't have to place every password in the registry. The PropertiesFunction looks up the password in an pre-existing internal cache

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-08 Thread Vojtech Fried
As Claus pointed out, the correct syntax is now #bean:. /Vojtech

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-05 Thread Vojtech Fried
Hi Florian, I also had this problem. Neither URI encoding nor RAW helped. My solution in 2.x Camel was to use # notation in the URI with a String stored as in a registry. Then Camel took the string and did not process it. It required some fiddling with Registries to make them writable, but it

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-04 Thread Roman Vottner
Hi Florian, if you're concerned about logging sensitive data, I'd recommend to configure your logging framework to filter such sensitive information in first place as the sensitive information might otherwise leak through other means not in control of Camel itself, i.e. as logged directly from

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-04 Thread Florian Patzl
Hi, thanks a lot, Fabry and Omar! Storing the password in a Properties file helps, I just tested with a really contrived example "++pwd2&)more)&}&}" and it worked. I hadn't tried that before because the explanations for using RAW in properties files put me off: > Notice we still define the

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-04 Thread Omar Al-Safi
Hi Florian, As Fabry mentioned, it would be worth checking to use config file to achieve this. Here is an example: https://github.com/apache/camel-examples/tree/master/examples/camel-example-debezium Regards, Omar On Thu, Jun 4, 2020 at 10:56 AM FabryProg wrote: > Hello Florian, > > Did you

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-04 Thread FabryProg
Hello Florian, Did you try to save the password into a variable / parameter / config file and lookup it into the URI? Kind regards! Il giorno gio 4 giu 2020 alle ore 10:50 Florian Patzl < florian.pa...@evolit.com> ha scritto: > Hello Ralf, > thanks for your response. No, I didn't mention that

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-04 Thread Florian Patzl
Hello Ralf, thanks for your response. No, I didn't mention that in my description. :-) URL encoding would be my preferred solution, too, but unfortunately that does not seem to prevent the problems with passwords containing ")&". Unless something about my encoding is wrong. For example, given a

Re: Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-04 Thread Claussnitzer, Ralf
Hi Florian, I may have missed the answer to my questions in your detailed problem description. But how is this not solved by URL-Encoding? There was once a bug with URL encodings in Camel. Does this bug still exist? What version of Camel are you using? -Ralf

Passwords in Camel endpoint URIs and limitations of RAW syntax

2020-06-03 Thread Florian Patzl
Hello, I'm trying to figure out the best way to handle passwords in Camel endpoint URIs in my application. I know the topic has been cause for Stack Overflow posts, JIRA entries and mails but I'm still not sure I've got everything right. Sorry for the big wall of text, but I think I should