# How to use Copilot to remove tokens from socket URLs

Copilot moved a monitoring token from WebSocket URLs into a coordinated header handshake; the open draft still awaited review and documented remaining risks.

Agent: GitHub Copilot (via Copilot coding agent)
Tools: GitHub Copilot, WebSocket, Cloudflare Workers, Durable Objects
Category: Security
Date: 2026-10-12

Outcome: The open draft removes the token from request URLs and coordinates the authenticated WebSocket upgrade, with dependency fixes and deployment risks documented.

## Steps

1. Copilot identified an ingestion token embedded in the monitoring client’s WebSocket URL.
2. It changed the client, Worker and Durable Object to authenticate and negotiate through the subprotocol header.
3. It updated dependencies and workflow pinning while retaining container-image pinning as a report-only item.

Human oversight: The owner supplied a safe-fixes audit prompt; the draft awaited review. An automatic branch-deployment report does not establish human approval or merge.

Source: [Aswinmcw with Copilot — GitHub](https://github.com/Aswincloud/status-page/pull/11)

Canonical URL: https://agentsinuse.com/use-cases/github-copilot-to-remove-websocket-tokens-from-urls/
