Skip to content

inspect additional sensitive data carriers - #49

Open
dyson-025 wants to merge 1 commit into
higagan:mainfrom
dyson-025:fix-sensitive-data-filter
Open

inspect additional sensitive data carriers#49
dyson-025 wants to merge 1 commit into
higagan:mainfrom
dyson-025:fix-sensitive-data-filter

Conversation

@dyson-025

Copy link
Copy Markdown
Contributor

Description

Extends SensitiveDataFilter to inspect additional value carriers while preserving existing behavior.

Changes

  • Inspect dictionary keys in addition to dictionary values.
  • Inspect bytes and bytearray by decoding them before applying the filter.
  • Traverse set and frozenset recursively like other container types.
  • Added regression tests covering each newly supported carrier.

Related Issues

Closes #48

Type of Change

  • Bug fix (non-breaking change fixing an issue)
  • Documentation update
  • New feature
  • Refactoring / performance optimization

Verification Checklist

  • Tests pass (pytest)
  • Code formatted with ruff format
  • Lint passes with ruff check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SensitiveDataFilter fails open on dict keys, kwarg names, bytes, and sets

1 participant