mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-19 05:50:53 +01:00
sonar: leave out vendor/ and record why SHA-1 stays in the WebSocket handshake and signature checks
This commit is contained in:
1 parent
0c1f7f7d8f
commit
b815d8c466
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
sonar.projectKey=storytold_craft-anything
|
||||
sonar.organization=storytold
|
||||
|
||||
# vendor/ holds third-party crates carried with small, marked patches (vendor/wgpu-hal: see its
|
||||
# CRAFT_ANYTHING.md). They stay close to upstream so each copy can be dropped once upstream
|
||||
# releases the fix, so they are not analysed here.
|
||||
sonar.exclusions=vendor/**
|
||||
|
||||
# S4790 (weak hash): SHA-1 here is fixed by what is being read, not chosen for new security.
|
||||
# - crates/engines/src/cdp.rs: the WebSocket handshake's Sec-WebSocket-Accept value is SHA-1 by
|
||||
# definition (RFC 6455 §4.2.2).
|
||||
# - crates/formats/src/verify.rs: existing signatures (APK v1 JAR digests, CMS, sha1WithRSA) may
|
||||
# name SHA-1; checking them needs it, and a result says which digest was used.
|
||||
sonar.issue.ignore.multicriteria=cdp_ws_accept,verify_digest
|
||||
sonar.issue.ignore.multicriteria.cdp_ws_accept.ruleKey=rust:S4790
|
||||
sonar.issue.ignore.multicriteria.cdp_ws_accept.resourceKey=crates/engines/src/cdp.rs
|
||||
sonar.issue.ignore.multicriteria.verify_digest.ruleKey=rust:S4790
|
||||
sonar.issue.ignore.multicriteria.verify_digest.resourceKey=crates/formats/src/verify.rs
|
||||
Reference in new issue
Block a user