security: the gosec gate excludes 7 rule classes with no ADR #717
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
sixfold-space/madtea#717
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What happens
scripts/gosec.shexcludes seven gosec rule classes at high confidence - G104, G204, G301, G302, G304, G306, G704 - but no ADR records why. The rationale lives only in the script header and a CONTRIBUTING.md paragraph. The project rule, and ADR 0044's precedent for the osv-scanner exceptions, is that a gate opt-out needs a pointing decision record.Decision
Tighten first, then record. Re-run gosec with the seven classes NOT excluded; for each class, fix what fires when it is a real finding and drop that exclusion, or justify keeping it. Then record every remaining exclusion in an ADR that mirrors ADR 0044 (one justification per class), and trim
scripts/gosec.shso its exclusions match the ADR exactly.Acceptance criteria
scripts/gosec.sh's exclusion set matches the ADR exactly../scripts/gate.shis green.hexajon referenced this issue2026-10-05 12:34:16 +00:00
Resolved by ADR 0053, which records the gosec gate exclusions and is now accepted. PR #751 landed the code: G104 is fixed and enforced, the dead G704 exclusion is dropped, and G204, G301, G302, G304, G306 stay with corrected rationales. scripts/gosec.sh matches the record and the full gate is green.
The accepting decision record is 0053-gosec-gate-exclusions-recorded (accepted).