Skip to content

fix(telemetry): mask the words after a credential word in error_message #1588

Closed as not planned

Description

@sahrizvi

templateErrorMessage (packages/opencode/src/altimate/telemetry/error-detail.ts) keeps only words from a fixed error vocabulary and replaces the rest with <x>. Credential words such as password and token are left out of the vocabulary, so they become <x>, but the words after them are kept whenever they happen to be vocabulary words:

  • templateErrorMessage("password is connection refused") → "<x> is connection refused"
  • templateErrorMessage("password=wrong user") → "<x> wrong user"

So a credential made only of common error words would reach telemetry. The risk is small (real secrets are rarely dictionary words), but a rule that masks everything after a credential word on the line would close it.

Found during the v0.12.8 release PR review. Deferred because: it changes the telemetry template and needs its own tests.

Activity

  1. anandgupta42 commented on Nov 5, 2026

    @anandgupta42
    Contributor

    Consolidated into #1676, which tracks this together with related issues. The original report here stays linked from that tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions