Skip to content

Scrub legacy OpenAI and Anthropic scope content - #2824

Merged
alexmojaki merged 12 commits into
mainfrom
codex/legacy-llm-scope-scrubbing
Nov 18, 2026
Merged

alexmojaki merged 12 commits into
mainfrom
codex/legacy-llm-scope-scrubbing

Conversation

@alexmojaki

@alexmojaki alexmojaki commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Remove the whole-span scrubbing exemption for logfire.openai and logfire.anthropic.
  • Apply key-only pattern matching to legacy request_data and response_data, plus legacy OpenAI events message data.
  • Preserve schema property names in legacy tool and response-format definitions while still running transform_string on their string values.
  • Keep ordinary sibling attributes under normal pattern matching.

This builds on the key-only traversal mode merged in #2823. The PR now targets main and contains only the provider-scope behavior.

Verification

  • uv run pytest tests/test_secret_scrubbing.py -q (85 passed)
  • Ruff, Ruff Format, and pyright passed in commit hooks.

@veria-ai

veria-ai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

Base automatically changed from codex/genai-structured-key-scrubbing to main November 18, 2026 11:15

@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 2 files

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

View guided diff | Re-trigger cubic

Comment thread tests/test_secret_scrubbing.py Resolved
@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
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.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Re-trigger cubic

@alexmojaki
alexmojaki enabled auto-merge November 18, 2026 11:42
@alexmojaki
alexmojaki added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit bc9a456 Nov 18, 2026
30 checks passed
@alexmojaki
alexmojaki deleted the codex/legacy-llm-scope-scrubbing branch November 18, 2026 11:53
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