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 Logb

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 Depending

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 Defa

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
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 >> Sent from the Camel - Users mailing li

Re: Mask password using log component

2017-02-23 Thread Claus Ibsen
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 > Sent from the Camel - U

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-comp

Re: Mask password using log component

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

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
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-password-using-log-component-tp5794

Mask password using log component

2017-02-23 Thread adondoni
ssage 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.