HYPERFLEET-1188 - docs: add Snyk SAST sign-off for v1.0.0#161
Conversation
Documented review and triage of all 22 Snyk Code (SAST) findings across hyperfleet-api, hyperfleet-sentinel, and hyperfleet-adapter. No unaddressed security-scan defects — 20 test noise, 1 false positive, 1 true positive accepted by design (guarded TLS opt-in). Follow-up tickets filed: HYPERFLEET-1233, HYPERFLEET-1234.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughA new Markdown document is added at Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Findings to verify against the document:
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
|
|
||
| ## Scope | ||
|
|
||
| This document records the review and triage of all Snyk Code (SAST) findings for the HyperFleet v1.0.0 release candidate. It covers source-code static analysis only — penetration testing, threat modeling, and container image vulnerability scanning (Clair/Pyxis) are handled separately under the existing Section 4.5 release gate. |
There was a problem hiding this comment.
nit (medium confidence): This sentence attributes pen testing, threat modeling, and container scanning to "Section 4.5 release gate," but Section 4.5 of the release process only covers container vulnerability scanning, supply chain security, SBOM, signing, and EC policy — pen testing and threat modeling aren't referenced in any documented gate.
Consider splitting the clause and linking the reference:
| This document records the review and triage of all Snyk Code (SAST) findings for the HyperFleet v1.0.0 release candidate. It covers source-code static analysis only — penetration testing, threat modeling, and container image vulnerability scanning (Clair/Pyxis) are handled separately under the existing Section 4.5 release gate. | |
| This document records the review and triage of all Snyk Code (SAST) findings for the HyperFleet v1.0.0 release candidate. It covers source-code static analysis only — container image vulnerability scanning is handled under the existing [Section 4.5 release gate](../hyperfleet-release-process.md#45-security--compliance); penetration testing and threat modeling are out of scope. |
|
|
||
| | Ticket | Type | Component | Scope | | ||
| |--------|------|-----------|-------| | ||
| | [HYPERFLEET-1233](https://redhat.atlassian.net/browse/HYPERFLEET-1233) | Hardening | hyperfleet-adapter | Finding #17: add startup warning log for insecure TLS mode, enrich `//nolint:gosec` comment with rationale. Findings #18–22: test credential cleanup. | |
There was a problem hiding this comment.
nit (medium confidence): "Findings #18–22: test credential cleanup" groups credential findings (#18–19, HardcodedPassword, CWE-798) with TLS configuration findings (#20–22, TooPermissiveTrustManager, CWE-295). The latter are about permissive TLS in envtest fixtures, not credentials.
| | [HYPERFLEET-1233](https://redhat.atlassian.net/browse/HYPERFLEET-1233) | Hardening | hyperfleet-adapter | Finding #17: add startup warning log for insecure TLS mode, enrich `//nolint:gosec` comment with rationale. Findings #18–22: test credential cleanup. | | |
| | [HYPERFLEET-1233](https://redhat.atlassian.net/browse/HYPERFLEET-1233) | Hardening | hyperfleet-adapter | Finding #17: add startup warning log for insecure TLS mode, enrich `//nolint:gosec` comment with rationale. Findings #18–19: test credential cleanup. Findings #20–22: add `//nolint` annotations for expected permissive TLS in envtest fixtures. | |
|
|
||
| ### hyperfleet-sentinel | ||
|
|
||
| No findings. |
There was a problem hiding this comment.
Tip
nit — non-blocking suggestion
Category: Improvement
Zero findings is the one result where a brief coverage note adds audit value — it confirms the scan wasn't vacuous. Consider adding a parenthetical like:
| No findings. | |
| No findings. SARIF report confirmed well-formed with scan exit code 0. |
Without this, a future auditor can't distinguish "clean code" from "empty scan scope" — unlike api and adapter, where non-zero findings implicitly prove the scan ran.
|
|
||
| ### Limitations | ||
|
|
||
| Results are from CI-produced SARIF (Konflux pipeline), which applies `--severity-threshold=high` and Red Hat Known False Positive (KFP) filtering. Lower-severity findings that would appear in a local `snyk code test` run may be suppressed. The assurance in this sign-off is bounded by what the CI scan was configured to report. |
There was a problem hiding this comment.
Tip
nit — non-blocking suggestion
Category: Improvement
All 22 findings in this doc are at note or warning SARIF severity — both below high. This creates a confusing reading when the same paragraph says --severity-threshold=high is applied: a reader can't tell whether findings below note were silently dropped, or whether the threshold only affects the pipeline gate (pass/fail) and the SARIF from oras pull contains everything.
Consider clarifying what the threshold actually governs:
| Results are from CI-produced SARIF (Konflux pipeline), which applies `--severity-threshold=high` and Red Hat Known False Positive (KFP) filtering. Lower-severity findings that would appear in a local `snyk code test` run may be suppressed. The assurance in this sign-off is bounded by what the CI scan was configured to report. | |
| Results are from CI-produced SARIF (Konflux pipeline). The pipeline applies `--severity-threshold=high` to govern the build gate (pass/fail exit code); the SARIF retrieved via OCI referrers contains findings at all severity levels. Red Hat Known False Positive (KFP) filtering is also applied, which may suppress findings that would appear in a local `snyk code test` run. The assurance in this sign-off is bounded by what the CI scan was configured to report. |
Documented review and triage of all 22 Snyk Code (SAST) findings across hyperfleet-api, hyperfleet-sentinel, and hyperfleet-adapter. No unaddressed security-scan defects — 20 test noise, 1 false positive, 1 true positive accepted by design (guarded TLS opt-in). Follow-up tickets filed: HYPERFLEET-1233, HYPERFLEET-1234.
Summary
Test Plan
make test-allpassesmake lintpassesmake test-helm(if applicable)