Re: Mask password using log component

2018-06-29 Thread Darius Cooper
Balazs, Thanks for the response. Good point about Camel not being the right "level". Camel's DefaultMaskingFormatter uses a set of Regex's to look for the "secret key name" if it is formatted in three ways: key-value pair, json name:value, of XML tag.. That's something just as easily put into

Re: Mask password using log component

2018-06-29 Thread Balazs Szeti
I'm not sure how to use those formatters, but we used logback's "replace" feature to make sure no credit card numbers are logged for example: %d{HH:mm:ss.SSS} [%16.16thread] %-5level %-30.30logger{30} \(%X{camel.breadcrumbId}\) - %replace(%m){'(secret:)[^\s]*','$1--'}%n%xEx

Mask password using log component

2018-06-28 Thread Darius Cooper
I need to mask certain headers (e.g. Authorization header) at the Camel Context level, so that even if a programmer logs "showAll", the header is masked. Reading the Camel docs, I thought I would implement LogListener or ExchangeFormatter But, looking at this thread, maybe I should extend the

Re: Mask password using log component

2017-02-23 Thread adondoni
Could you give me an example how can invoke a bean inside a log component? Thank Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794331.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mask password using log component

2017-02-23 Thread souciance
be added to the discussion > below: > http://camel.465427.n5.nabble.com/Mask-password-using-log- > component-tp5794301p5794331.html > To start a new topic under Camel - Users, email > ml-node+s465427n465428...@n5.nabble.com > To unsubscribe from Camel - Users, click here > <http:/

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
o it does NOT change your message. > > >> My blueprint xml is: >> >> ... >> >> >> ... >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
ut call the bean from within the so it does NOT change your message. > My blueprint xml is: > > ... > > > ... > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794322.html > Se

Re: Mask password using log component

2017-02-23 Thread adondoni
Hi, I've already thinks this solution. But if mask a password into a bean before log, I modify a message that continue in a route a lost password value. My blueprint xml is: ... ... -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
t;, > "params": { > "username": "x", > "password": "" > }, > "jsonrpc": "2.0" > } > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-password-using-l

Re: Mask password using log component

2017-02-23 Thread adondoni
t;jsonrpc": "2.0" } -- View this message in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301p5794308.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
st as: > > > > My problem is that request could be contains password value. > > Question is how can I mask password value when log body message. > > Thank in advance > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mask-passw

Mask password using log component

2017-02-23 Thread adondoni
in context: http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301.html Sent from the Camel - Users mailing list archive at Nabble.com.