8000 fix(telemetry): drop saved headers when the endpoint moves, even with the mask by adeelahmad · Pull Request #199 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

fix(telemetry): drop saved headers when the endpoint moves, even with the mask - #199

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-qt650x-telemetry-headers
Oct 6, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-qt650x-telemetry-headers

Conversation

@adeelahmad
8000 Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: changing telemetry.endpoint to another host drops the saved headers, which usually hold the collector's auth token. That step was skipped whenever the request included headers at all, even when the value was {"secret": true}, the mask that means "unchanged". So PUT /settings/telemetry {"endpoint": "https://new-host", "headers": {"secret": true}} sent the old collector's token to the new host.

After: only a new headers value keeps headers across a host move. The mask counts as unchanged, so they are dropped. Moving to another path on the same host still keeps them.

Motivation and Context

This answers threat-model question Q35: the header drop is promised and joins P-ADMIN-GUARD. The web app sends only changed fields, so this was reachable through the API, by an admin.

Steps to reproduce (if appropriate):

The updated step in test_telemetry.py fails on main and passes here.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests.
  • My change requires documentation updates, and I have updated docs/ accordingly.
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01W42z4FbekWr33b6791svQQ


Generated by Claude Code

… the mask

Moving the telemetry endpoint to another host drops the saved headers, so
a collector's token never reaches the new host. A request that also echoed
the headers' "unchanged" mask skipped that, and the token went along.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W42z4FbekWr33b6791svQQ
@adeelahmad adeelahmad self-assigned this Oct 6, 2026
@adeelahmad
adeelahmad merged commit 034b57e into main Oct 6, 2026
5 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-qt650x-telemetry-headers branch October 6, 2026 11:04
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

0