security: redact the user's own stored API keys by exact match
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start with redactSecrets in src/main/tools/redact.ts, then the app log's redact function and streamRedactor, to see where existing redaction runs and where a key split across chunks would slip through. Settings key loading in the main process is the source for the exact-match list, which must stay out of the renderer. Done means unit tests with a synthetic stored key in an unknown format pass for tool results, two-chunk streamed output and a log entry, while ordinary text is unchanged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Follow-up to #153.
Today
redactSecrets (src/main/tools/redact.ts) and the app log's redact recognize known token formats, URL passwords and credential-named .env lines. A key in a format none of them know reaches the model, the transcript and saved chats.
Proposal
Also replace exact occurrences of the keys the user saved in Settings (Anthropic, OpenAI, OpenRouter, search keys), which catches any format for the secrets Patch itself holds:
- The main process already has the decrypted keys; build the list when they change, never send it to the renderer.
- Skip values shorter than ~16 characters to avoid redacting ordinary text.
- Apply in tool results, streaming command output (
streamRedactor, including a key split across chunks) and the app log.
Test
Unit tests with a synthetic stored key in an unknown format: redacted in a tool result, in streamed output split across two chunks, and in a log entry; ordinary text unchanged.
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Merge trung bình
- 3 giờ 50 phút
- Pull request đã merge (30 ngày)
- 67
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PierrunoYT/patch
-
e2e: the panel resize drag and @-mention list tests fail on the Windows and macOS CI runnersĐang mởplatform: windows priority: low severity: low tests
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
PierrunoYT/patch#364 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
PierrunoYT/patch#357 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform: windows priority: low security severity: low tests
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
PierrunoYT/patch#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform: windows
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
PierrunoYT/patch#329 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
performance priority: low severity: low
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
PierrunoYT/patch#324 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của PierrunoYT/patch
Issue tương tự
-
Manager flashes an empty "errorOccurred" dialog while redirecting a logged-out user to loginĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openremote/openremote#3487 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
coollabsio/jean#867 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ehmpathy/rhachet-roles-bhuild#616 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
📘 Docs supabase/cli
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(cli): theme file home-directory check uses startsWith (sibling dirs pass, Windows casing fails)Đang mởarea/core kind/bug priority/p2 status/bot-triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
google-gemini/gemini-cli#29955 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày