Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(weave): don't check non-string dict keys for sensitive key redaction #3396

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

jamie-rasmussen
Copy link
Collaborator

Description

See #3379 - we were getting an AttributeError: object has no attribute 'lower' when attempting sensitive key redaction on dicts with non-str keys.

from weave.trace.weave_client import redact_sensitive_keys
d = {1: 2}
redact_sensitive_keys(d)

@circle-job-mirror
Copy link

circle-job-mirror bot commented Jan 14, 2025

@jamie-rasmussen jamie-rasmussen force-pushed the jamie/dict-non-str-key-redaction branch from 7aaaeaa to e2c500c Compare January 14, 2025 16:56
@jamie-rasmussen jamie-rasmussen marked this pull request as ready for review January 14, 2025 17:09
@jamie-rasmussen jamie-rasmussen requested a review from a team as a code owner January 14, 2025 17:09
@jamie-rasmussen jamie-rasmussen merged commit d6017bb into master Jan 14, 2025
123 checks passed
@jamie-rasmussen jamie-rasmussen deleted the jamie/dict-non-str-key-redaction branch January 14, 2025 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants