Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

security: `Telemetry.maskString` leaves bare `password=value` and `PWD=value` unmasked

Đang mở
#1,457 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
backend, security

Hướng nghiên cứu

Find the implementation and tests for Telemetry.maskString; the issue also names altimate/native/connections/reconnect-log.ts as a caller. First inspect the existing masking cases and tests, then check how the proposed delimiters apply to unquoted values. Done means the listed bare password=, PWD=, and pass= cases are masked while already masked tokens and quoted-password behavior remain covered.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Found during the v0.12.7 release review's adversarial tests. Deferred: maskString is shared by telemetry and every log line that masks errors, so a change needs its own review. Related: #1287.

password=hunter2          -> password=hunter2   (unmasked)
PWD=hunter2;              -> PWD=hunter2;       (unmasked; ODBC-style connection strings)
pass=hunter2              -> pass=hunter2       (unmasked)
password: "hunter2"       -> password: ?        (masked)
token=sk-ant-api03-…      -> token=sk-***       (masked)

Callers include warehouse-connect connect failed and, new in v0.12.7, reconnect failed (altimate/native/connections/reconnect-log.ts). Snowflake's own auth errors don't quote the password, so no known leak today, but a driver or SDK error that echoes a connection string would be logged as is.

Proposed: mask the value of unquoted (password|passwd|pwd|pass|secret|token)= up to the next ;, &, whitespace or end.

Ngôn ngữ chính
TypeScript
Star
812
Fork
123
Merge trung bình
1 ngày 16 giờ
Pull request đã merge (30 ngày)
85

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AltimateAI/altimate-code

Tất cả issue của AltimateAI/altimate-code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.