Skip to content

feat:beta channel and live MITM cert reload#17

Closed
Joyce-O wants to merge 1 commit intoGreyhavenHQ:mainfrom
Joyce-O:feat/beta-cert-reload
Closed

feat:beta channel and live MITM cert reload#17
Joyce-O wants to merge 1 commit intoGreyhavenHQ:mainfrom
Joyce-O:feat/beta-cert-reload

Conversation

@Joyce-O
Copy link
Contributor

@Joyce-O Joyce-O commented Mar 19, 2026

feat: beta channel and live MITM cert reload

Beta channel

  • Created scripts/release.sh with patchminor, and beta bump types (same logic as greywall)
  • Added make releasemake release-minormake release-beta targets
  • Added skip_upload: auto to .goreleaser.yaml so beta tags skip the Homebrew tap

Certificate reload (no restart needed)

  • Extracted injectCertPaths helper — injects mitm.certFile/mitm.keyFile into HTTP and SOCKS5 handler configs if cert files exist; now called from both Start and reloadConfig (previously SIGHUP reloads were missing the cert injection)
  • Added watchCertFiles goroutine: polls ca-cert.pem and ca-key.pem every 5 seconds, triggers reloadConfig on mtime change with 500ms debounce to let both files finish writing
  • Added POST /api/cert/reload endpoint (CertReloadHandler) wired to p.reloadConfig via ReloadCertFn on Shared
  • Added greyproxy cert reload CLI subcommand — hits the endpoint and prints the result

@tito
Copy link
Contributor

tito commented Mar 20, 2026

@Joyce-O can you submit one for the mitm cert reload and one for the beta channel ? Theses are 2 differents things that should not be mixed in a single PR

@Joyce-O
Copy link
Contributor Author

Joyce-O commented Mar 20, 2026

Moved here and here

@Joyce-O Joyce-O closed this Mar 20, 2026
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.

2 participants