Yurii: clavis-telemetry unchecked flush error in tarpit #4
Labels
No Label
approved
audit
bug
cardinal-rule-1
changes-requested
critical
feature
high
in-progress
low
medium
needs-qa
needs-review
qa-failed
security
security-approved
security-issues
security-review
violation
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: johan/clavitor#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Violation
Per CLAVITOR-AGENT-HANDBOOK.md Part 1:
Location
File:
clavis/clavis-telemetry/main.goFunction:
tarpit()(lines 121-148)Lines 143-145:
The Violation
w.Write()error is properly checked (good!)flusher.Flush()is called without acknowledging it returns no error valueWhile flush errors are less common in tarpit scenarios (deliberately wasting scanner resources), the principle states: "Every
ifneeds anelse."Why This (Minor) Fix Matters
The tarpit is a security feature. We should acknowledge:
http.Flusher.Flush()returns no value (can't error per interface)Required Fix
Assignment