Skip to content

Enhance security on redaction of sensitive data in response, optimize queued questions #27

Merged
daocha merged 2 commits into
mainfrom
feature-enhancements
Mar 28, 2026
Merged

Enhance security on redaction of sensitive data in response, optimize queued questions #27
daocha merged 2 commits into
mainfrom
feature-enhancements

Conversation

@daocha
Copy link
Copy Markdown
Owner

@daocha daocha commented Mar 28, 2026

Externalize secret scrub patterns and expand output redaction coverage

Move secret scrub regexes out of session_runtime.py into a properties-style resource file using name=regex entries and derive replacement placeholders automatically from the pattern name.

Expand output-side redaction coverage for common secret-looking content, including PEM-like blocks, certificate blocks, long hex-like blobs, and long base64-like blobs, without decoding the content.

Add regression tests for the externalized scrub patterns and the new redaction cases while preserving existing token redaction behavior.

Move secret scrub regexes out of session_runtime.py into a properties-style resource file using name=regex entries and derive replacement placeholders automatically from the pattern name.

Expand output-side redaction coverage for common secret-looking content, including PEM-like blocks, certificate blocks, long hex-like blobs, and long base64-like blobs, without decoding the content.

Add regression tests for the externalized scrub patterns and the new redaction cases while preserving existing token redaction behavior.
@daocha daocha changed the title Enhance security on redaction of sensitive data before sending out the message Enhance security on redaction of sensitive data, optimize queued questions Mar 28, 2026
@daocha daocha changed the title Enhance security on redaction of sensitive data, optimize queued questions Enhance security on redaction of sensitive data in response, optimize queued questions Mar 28, 2026
Refactor base.py

Externalize secret scrub patterns in a properties file, widen coverage for modern provider keys and common sensitive OS/auth material, and make the scrubber configurable through ENABLE_SECRET_SCRUB_FILTER with a strongly recommended default of true.

Update config and regression tests for the new queue flow, queue decision callbacks, secret scrub patterns, and the secret scrub feature flag.
@daocha daocha merged commit b86576b into main Mar 28, 2026
1 check passed
@daocha daocha deleted the feature-enhancements branch March 28, 2026 10:16
dcha-agent added a commit that referenced this pull request Mar 28, 2026
… queued questions (#27)

* Refine queued question handling and strengthen output secret scrubbing

* Externalize secret scrub patterns in a properties file, widen coverage for modern provider keys and common sensitive OS/auth material, and make the scrubber configurable through ENABLE_SECRET_SCRUB_FILTER with a strongly recommended default of true.

* Expand output-side redaction coverage for common secret-looking content, including PEM-like blocks, certificate blocks, long hex-like blobs, and long base64-like blobs, without decoding the content.

Add regression tests for the externalized scrub patterns and the new redaction cases while preserving existing token redaction behavior.

Refactor base.py

Update config and regression tests for the new queue flow, queue decision callbacks, secret scrub patterns, and the secret scrub feature flag.

---------

Co-authored-by: Dcha Agent <[email protected]>
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.

2 participants