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(logs/azure): redact sensitive header when DEBUG is set #1218

Merged
merged 19 commits into from
Jan 13, 2025

Conversation

minhanh-phan
Copy link
Contributor

@minhanh-phan minhanh-phan commented Dec 10, 2024

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Redact values for authorization and api-key when DEBUG value is set to true.

Additional context & links

openai/openai-python#1850

@minhanh-phan minhanh-phan marked this pull request as ready for review December 10, 2024 21:02
@minhanh-phan minhanh-phan requested a review from a team as a code owner December 10, 2024 21:02
tests/qs/utils.test.ts Outdated Show resolved Hide resolved
src/core.ts Outdated Show resolved Hide resolved
src/core.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@RobertCraigie RobertCraigie left a comment

Choose a reason for hiding this comment

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

small comment on mutation and tests, otherwise LGTM, thanks!

src/core.ts Show resolved Hide resolved
tests/index.test.ts Show resolved Hide resolved
@bryanemmanuelbasor bryanemmanuelbasor mentioned this pull request Dec 14, 2024
@RobertCraigie
Copy link
Collaborator

I made some changes to avoid cloning until we need to and to avoid using JSON round-tripping, lmk if that still looks good to you.

@minhanh-phan
Copy link
Contributor Author

@RobertCraigie The changes look goods to me. Thank you for the constructive feedback!

@RobertCraigie
Copy link
Collaborator

So sorry this slipped through the cracks and wasn't merged earlier

@RobertCraigie RobertCraigie changed the base branch from master to next January 13, 2025 19:41
@RobertCraigie RobertCraigie changed the title Redact sensitive header when DEBUG is set fix(logs/azure): redact sensitive header when DEBUG is set Jan 13, 2025
@RobertCraigie RobertCraigie merged commit 6a72fd7 into openai:next Jan 13, 2025
3 checks passed
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