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
As Claus pointed out, the correct syntax is now #bean:.
/Vojtech
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
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
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
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
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
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
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
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
10 matches
Mail list logo