So I enabled Spring Cloud Sleuth in my spring boot app and this happened:
2021-03-03 19:11:11.164 DEBUG [OAuth2 service,b1e3783b06d8cc61,b1e3783b06d8cc61] 5056 --- [nio-8080-exec-5] o.s.web.client.RestTemplate : Writing [{grant_type=[password], client_id=[myclientid], client_secret=[b0ea9376...], username=[rose], password=[mypassword]}] as "application/x-www-form-urlencoded"
As you can see at the end, the Sleuth logged the password=[mypassword]
what is not good... Not good at all.
Is it possible to configure Sleuth to not log sensitive data?