DS117838 and DS173237 report published sha256 digests as secrets
Đá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
- 56/100
Hướng nghiên cứu
Start by locating the definitions and tests for rules DS117838 and DS173237 in the DevSkim repository, then read how each rule identifies secrets and handles exclusions. Add coverage for the two examples in the issue and confirm both checks no longer report the published digests while still detecting secrets; the issue does not name specific files or test commands.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I run DevSkim 1.0.70 through MegaLinter 10.1.0. Two rules report published checksums as secrets.
DS117838 matches the "key" inside "keycloak" on this line, then the image digest after it:
image: registry.gitlab.com/example/keycloak@sha256:28ea761821b553939f940f81640b2c004b5a512c58d190b7b766382d6395e3dc
DS173237 reports every quoted checksum in a JSON list of files, like this one:
{ "path": "formats-reference.md", "sha256": "bf1dd3e3c71a72cc309db4fca5074abdc9618b8351ab2c72fc896f22f6457769" }
JSON has no comments, so I can't suppress these lines inline (#594). On my project that is 252 findings in two files.
A value right after @sha256:, or under a key named sha256, is a checksum, not a secret. Could both rules skip these two cases?
- Ngôn ngữ chính
- C#
- Star
- 1k
- Fork
- 133
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
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 microsoft/DevSkim
-
exclude_file_regex and applies_to_file_regex only see the file name in devskim analyzeCó thể đã có người làm @gfs đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
The DevSkim Repository Description still mentions IDE extensions but these are not longer includedĐang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
-
How to match files without a file extension?Có thể đã có người làm @gfs đã nhận 169 ngày trước. Đang mởenhancement
microsoft/DevSkim#747 · 4 bình luận · 1 reaction · 2 người được giao ·
-
Support for HTML (see attached example rule)Có thể đã có người làm @Guflly đã nhận 91 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của microsoft/DevSkim
Issue tương tự
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
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 85/100
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 78/100
-
bug godot
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày