Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the creation of bean jsonBodyFieldsFilter from LogbookAutoConfiguration #1882

Open
aldex32 opened this issue Sep 3, 2024 · 1 comment
Labels

Comments

@aldex32
Copy link

aldex32 commented Sep 3, 2024

I would like to disable the creation of jsonBodyFieldsFilter from LogbookAutoConfiguration so I am able to create my own BodyFilter which allows for a more flexible obfuscation (such as partial obfuscation) of the fields declared in logbook.obfuscate.json-body-fields instead of using a fixed replacement. The filter can be any implementation of BodyFilter.

Not sure whether this can be considered a bug or a feature. Perhaps a possible fix would be introducing @ConditionalOnProperty where we can define a property to disable it?

  • Version used: 3.9.0
@aldex32 aldex32 added the Bug label Sep 3, 2024
@aukevanleeuwen
Copy link
Contributor

I happen to come across this issue, and I've asked in discussion something that seems similar: #1840.

Just linking this here, because I think you're asking for even more flexibility, which seems to be even better than having a fallback to BodyFilter.none().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants