Skip to content

fix: prevent secret values in CLI command telemetry (BRE2-1283) - #525

Merged
jarrad merged 1 commit into
mainfrom
fix/bre2-1283-secret-telemetry
Nov 5, 2026
Merged

jarrad merged 1 commit into
mainfrom
fix/bre2-1283-secret-telemetry

Conversation

@jarrad

@jarrad jarrad commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Mark both brev secrets create --value and brev secrets set-value --value flags sensitive.
  • Record only supplied flag names in command telemetry. Omit raw arguments, parent command line, and working directory so arbitrary secret values cannot be sent in command events.
  • Cover annotated and unannotated arbitrary secret values in focused analytics tests.

BRE2-1283 is canonical. BRE2-1287 is an exact duplicate with a separate scanner fingerprint.

Validation

  • go test ./pkg/analytics ./pkg/cmd/secrets ./pkg/cmd
  • git diff --check origin/main...HEAD
  • One commit on main at 13886423a2ef445cf36b3e690c0e701ae17445f8.

Historical exposure follow-up

Assess affected released CLI versions, whether the PostHog feature gate was enabled, and the event time window and population using metadata and counts only. Do not query or export secret values. If exposure is confirmed, coordinate event deletion and targeted credential rotation through the incident process. This assessment is tracked on BRE2-1283 and was not performed in this PR.

@jarrad
jarrad marked this pull request as ready for review November 5, 2026 12:35
@jarrad
jarrad requested a review from a team as a code owner November 5, 2026 12:35
@jarrad
jarrad merged commit 1097288 into main Nov 5, 2026
11 checks passed
@jarrad
jarrad deleted the fix/bre2-1283-secret-telemetry branch November 5, 2026 21:17
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