Skip to content

feat: integrate utils/cert, remove local replace#45

Merged
M09Ic merged 4 commits into
masterfrom
feat/utils-cert-integration
Jun 25, 2026
Merged

feat: integrate utils/cert, remove local replace#45
M09Ic merged 4 commits into
masterfrom
feat/utils-cert-integration

Conversation

@M09Ic

@M09Ic M09Ic commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use published utils/cert and utils/mitmproxy instead of local replace directives
  • utils/cert provides atomic certificate primitives (NewTemplate, SelfSign/SignWith, TLS config builder, Fingerprint, etc.)
  • mitmproxy's DummyCert now uses NewTemplate + SignWith atoms for key-reuse pattern
  • Fix flaky TestMITMCapture_ServerFirst_Fallback (server-probe byte consumption)

Changes

  • go.mod: remove ../utils/cert and ../utils/mitmproxy local replace, use published v0.0.0-20260624182357-8d5cad72d8f2
  • mitm_bench_test.go: tolerate partial SSH banner in server-first test

Test plan

  • go test ./pkg/tools/proxy/... — 33/33 pass
  • go build ./... — compiles clean
  • go vet ./... — no warnings

🤖 Generated with Claude Code

M09Ic and others added 4 commits June 24, 2026 11:30
Use published utils/cert and utils/mitmproxy instead of local replace
directives. utils/cert provides atomic certificate generation primitives
(NewTemplate, SelfSign/SignWith, Fingerprint, TLS config builder, etc.)
that mitmproxy now uses for CA creation and DummyCert key-reuse.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Round 1 — panic/crash fixes:
- proton: default to "." when -e used without -i, prevent inputs[0] panic
- proton: return ctx.Err() in WalkDir to prevent goroutine blocking on jobCh
- proton: log WalkDir errors instead of discarding
- proton: fix truncate to cut on rune boundaries, not bytes
- mitm: remove auto-Clear() in start() that silently destroyed prior captures
- mitm: matchStatus returns false for unrecognized patterns instead of true
- mitm: reset seq counter in FlowStore.Clear()
- mitm: remove dead configureUpstream function and unused imports
- build.sh: fix tavily_keys reading from wrong YAML section (websearch→search)
- config_test: update stale error message referencing old config.yaml filename
- util: handle negative numbers in FormatNumber to prevent infinite recursion

Round 2 — code quality improvements:
- agent: track ModeIndependent fire goroutines with WaitGroup, wait on Stop/Remove
- proton: replace seen map with sync.Map for structural thread safety
- agent: allow MaxRetries=0 to mean no retries (change sentinel from ==0 to <0)
- evaluator: replace time.Sleep with ctx-aware select in retry loop
- loop_tool: support quoted cron expressions in tryCronPrefix
- context_window: add gpt-4-1 (128K) and gpt-4-0 (8K) to fix prefix mismatches
- tui: replace sync.Once markdown renderer with width-aware cache for resize
- web: decouple confirmed status from critical priority in itemToPriority

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… console.go

- Type Deps.Logger as telemetry.Logger instead of any for compile-time safety
- Extract toolargs.Base with shared Logger/Proxy/WorkDir fields and methods,
  embed in all 7 scanner tool Commands to eliminate repeated boilerplate
- Create per-tool register.go for neutron/spray/zombie/gogo, simplify the
  central register_command.go to only handle the composite scan command
- Split console.go (1331→848 lines) into keybindings.go and banner.go

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add MITM traffic capture section to v0.2.7 changelog
- Fix 3 errcheck lint issues in mitm.go (Shutdown return, type assertions)
- Widen SSH banner test timeouts to prevent flaky failures under load
- Update README/README_CN taglines

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@M09Ic M09Ic merged commit 0b2af2e into master Jun 25, 2026
2 checks passed
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.

1 participant