Skip to content

Fix copilot secret unredaction #1108

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

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Fix copilot secret unredaction #1108

merged 1 commit into from
Feb 19, 2025

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Feb 19, 2025

The copilot provider always sends cleanup_sensitive set to False as it
manages the context itself. On streams where finish_stream was set to
False as well, we would have yielded the rest of the context buffer though
which would break secret unredaction.

To reproduce, ask Copilot to make a simple modification in a file
containing secrets so that it's forced to print the secrets back to you.

The copilot provider always sends `cleanup_sensitive` set to `False` as it
manages the context itself. On streams where `finish_stream` was set to
`False` as well, we would have yielded the rest of the context buffer though
which would break secret unredaction.

To reproduce, ask Copilot to make a simple modification in a file
containing secrets so that it's forced to print the secrets back to you.
@jhrozek jhrozek merged commit 9555a03 into main Feb 19, 2025
11 checks passed
@jhrozek jhrozek deleted the copilot_secrets_fix branch February 19, 2025 14:03
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