8000 fix(telemetry): trace a worker's first job and keep collector credentials safe by adeelahmad · Pull Request #46 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

fix(telemetry): trace a worker's first job and keep collector credentials safe - #46

Merged
adeelahmad merged 1 commit into
mainfrom
claude/telemetry-mekabp
Oct 2, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/telemetry-mekabp

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Follow-ups from the review of #40.

  • A worker's first job is traced. Before, a lens worker --steps … didn't read the saved settings until its first job had already started, so that job had no span. Now the worker reads them when it starts.
  • The endpoint can't carry user:password@. The endpoint is stored and returned unsealed, so credentials are refused there and the error points to the sealed Headers instead.
  • The endpoint can't be link-local. 169.254.0.0/16 and fe80::/10 are refused.
  • Moving the endpoint to another host drops the saved headers, so a collector's token never goes to a new host. A new path on the same host keeps them, and so do headers given in the same save. Settings' review dialog says when this will happen.

Motivation and Context

Findings from the independent review of #40.

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. The worker test fails without the fix. The full backend suite passes on embedded SurrealDB and on a SurrealDB 3.2.4 server, except the LibreOffice conversion test, which also fails on main in this sandbox. Frontend tsc, eslint and all 537 Jest tests pass.
  • 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_01CFYD76r8LUcnfTYKBwRfPn


Generated by Claude Code

…ials safe

- A worker started with --steps now reads the saved settings at start,
  so telemetry is on before its first job's span
- The endpoint can't carry user:password (it is stored and shown as is;
  credentials go in the sealed headers) or be a link-local address
- Moving the endpoint to another host drops the saved headers, so a
  collector's token never goes to a new host; Settings says so on review

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CFYD76r8LUcnfTYKBwRfPn
@adeelahmad
adeelahmad merged commit b81ff09 into main Oct 2, 2026
0 of 9 checks passed
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