Skip to content

fix(telemetry): a subprocess span holds the executable and the argument count, and the arguments only when a person turns them on #2025

Closed

Description

@dan-petty

Friction

subprocess.cmd and process.command_line on subprocess spans (src/devops_cli/core/process.py) hold the first eight arguments of each command, filtered only by a secret pattern. Commands that pass a person's arguments on, such as devops uv run and devops gh api, put those arguments in the trace backend. OpenTelemetry's semantic conventions make process.command_line and process.command_args Opt-In for this reason. #1996 removed the same data from the command span.

Evidence

Found while #1996 was built. Its task file names this follow-up. #1996 showed that the secret pattern does not mask the values of 5 of the 13 secret config keys.

Proposed remedy

  • Keep the executable name and process.args_count on every subprocess span.
  • Record the arguments only behind an opt-in setting that is off by default, as the conventions say.

Activity

  1. added
    type/security
    scope/telemetry
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Priority: P2-Medium. This change improves privacy and follows OpenTelemetry conventions but is not critical.
    • Value: Medium. Improves user privacy by reducing data collected without explicit opt-in.
    • Effort: Low. The change involves adjusting telemetry settings and does not require major code restructuring.
    • Related: fix(telemetry): a usage error records its error class, never the argument text, and counts as a failed command #2024, which asks for a different change. Both items relate to telemetry data handling but the candidate focuses on subprocess spans while #2024 focuses on usage errors and command spans.
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

    scope/telemetrytype/security

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions