Skip to content

Fix silent error swallowing and stale test comment - #16

Merged
Darkroom4364 merged 3 commits into
mainfrom
fix/critical-audit-issues
Apr 17, 2026
Merged

Fix silent error swallowing and stale test comment#16
Darkroom4364 merged 3 commits into
mainfrom
fix/critical-audit-issues

Conversation

@Darkroom4364

Copy link
Copy Markdown
Owner

Summary

Test plan

  • go build and go test pass

Closes #9, closes #12

- Validate UTF-8 in public_name and trailing bytes in cipher suites
- Enforce TLS 1.3 for ECH negotiation, smarter retry corruption
- Respect --timeout for DoH, validate timeout/flag conflicts
- Return exit code from runBatch instead of calling os.Exit
- Support NO_COLOR, exclude skipped checks from total count
- Add 9 new unit tests for parsing, output, and edge cases
Previously, CheckRetryConfigs silently discarded the parse error when
retry_configs failed to parse and the retry connection error when the
retry TLS handshake failed. Both are now stored in RetryResult fields
and reported in the CLI output.

Closes #9
output.go handles NO_COLOR in init(). The comment was stale.

Closes #12

@Darkroom4364 Darkroom4364 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — Request Changes

Code itself is correct and well-tested — surfacing ParseError/RetryError, UTF-8 validation, NO_COLOR support, skip counting fix are all good changes.

Issues:

  • ~7 distinct behavioral changes bundled into one PR (error surfacing, UTF-8 validation, NO_COLOR, skip counting, batch refactor, timeout validation, TLS 1.3 warning). This violates "one concern per commit" — split into focused PRs or at minimum separate commits.
  • DoH timeout is plumbed through but the UDP dns.Exchange path still ignores DNSOptions.Timeout — inconsistent behavior depending on transport.

@Darkroom4364
Darkroom4364 merged commit 903ddc8 into main Apr 17, 2026
3 checks passed
@Darkroom4364
Darkroom4364 deleted the fix/critical-audit-issues branch April 17, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect comment in output_test.go claims NO_COLOR is not implemented Silent error swallowing in CheckRetryConfigs

1 participant