Skip to content

Add server identity headers to remote uploads#45

Draft
itschip with Copilot wants to merge 1 commit into
mainfrom
copilot/capture-metrics-from-screencapture
Draft

Add server identity headers to remote uploads#45
itschip with Copilot wants to merge 1 commit into
mainfrom
copilot/capture-metrics-from-screencapture

Conversation

Copilot AI commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Remote upload providers need enough context to attribute uploads without exposing sensitive request data. This adds opt-out server identity headers for screenshot and video uploads, including the FiveM server name, resource name, and destination host.

  • Upload identity headers

    • Adds default headers to outbound screenshot and video upload requests:
      • User-Agent
      • X-Screencapture-Server-Name
      • X-Screencapture-Upload-Host
      • X-Screencapture-Resource
    • Extracts only the destination hostname instead of sending the full upload URL.
  • Configuration

    • Adds screencapture_upload_identity_headers convar.
    • Enabled by default.
    • Set to false, 0, no, or off to disable identity headers.
  • Header behavior

    • Existing user-provided upload headers continue to work.
    • User headers override generated defaults.
  • Documentation

    • Documents the privacy impact and opt-out behavior for screenshot and video remote uploads.
set screencapture_upload_identity_headers false

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