Skip to content

Mask console tags and exception details before background scrubbing - #2828

Merged
alexmojaki merged 12 commits into
mainfrom
codex/console-scrubbing-tags-exceptions
Nov 18, 2026
Merged

alexmojaki merged 12 commits into
mainfrom
codex/console-scrubbing-tags-exceptions

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

Summary

Transform tag elements and the exception fields printed by the console before a span enters the background scrubbing queue. Keep the full attribute scrub on its existing background path. Preserve the original callback paths and leave the exception event name unchanged so the console recognizes it.

The later normal scrub may invoke transform_string again for these values. This follows the accepted trade-off for targeted early masking.

Validation

  • uv run pytest tests/test_secret_scrubbing.py tests/test_console_exporter.py -q (201 passed)
  • Ruff check and format check on changed files
  • Pyright on changed files
  • Pre-commit checks passed

This PR addresses the console masking issue only. It does not close pydantic/platform#38102.

@veria-ai

veria-ai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

Reviews

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  logfire-sdk/logfire/_internal
  scrubbing.py
  logfire-sdk/logfire/_internal/exporters
  processor_wrapper.py
Project Total  

This report was generated by python-coverage-comment-action

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

@alexmojaki
alexmojaki added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit fe6b979 Nov 18, 2026
30 checks passed
@alexmojaki
alexmojaki deleted the codex/console-scrubbing-tags-exceptions branch November 18, 2026 14:41
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.

1 participant