Skip to content

Conversation

@petruki
Copy link
Member

@petruki petruki commented Sep 25, 2025

This pull request adds a new property obfuscation feature to the DotPathQL library, allowing users to mask sensitive data fields (such as passwords or SSNs) with "****" while preserving the structure of the original object. The update includes changes to the core implementation, factory methods, and test coverage, as well as documentation enhancements in the README.md.

New Feature: Property Obfuscation

  • Added an obfuscate method to DotPathQL, enabling users to specify paths whose values should be replaced with "****".
  • Introduced support for default obfuscation paths via addDefaultObfuscatePaths.
  • Updated the PathExclude class and factory to support obfuscation mode, ensuring the same filtering logic can be reused for masking values [1] [2] [3] [4].

Other Improvements

  • Minor JavaDoc and parameter annotation improvements for utility methods [1] [2].

@petruki petruki self-assigned this Sep 25, 2025
@petruki petruki added the enhancement New feature or request label Sep 25, 2025
@sonarqubecloud
Copy link

@petruki petruki merged commit 67c2abb into master Sep 25, 2025
7 checks passed
@petruki petruki deleted the staging branch September 25, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants