Skip to content

Send X-Privacy-Mode header on all API requests#121

Draft
timothedelion wants to merge 1 commit intomainfrom
tdelion/APPAI-110/privacy-header
Draft

Send X-Privacy-Mode header on all API requests#121
timothedelion wants to merge 1 commit intomainfrom
tdelion/APPAI-110/privacy-header

Conversation

@timothedelion
Copy link
Copy Markdown
Collaborator

Summary

Ensure the MCP server requests privacy mode on every GitGuardian API call, so secrets are obfuscated in responses.

Issue: APPAI-110

Changes

Added the X-Privacy-Mode: true header to both _request() and _request_list() in GitGuardianClient, alongside the existing Authorization, Content-Type, and User-Agent headers. This aligns with the upcoming server-side support in alustrat/COR-4923/privacy-mode-public-api.

Ensures all GitGuardian API calls from the MCP server use privacy mode,
so secrets are obfuscated in responses.

Issue: APPAI-110
@linear
Copy link
Copy Markdown

linear bot commented Mar 20, 2026

@timothedelion timothedelion self-assigned this Mar 20, 2026
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