Skip to content

feat: add TLS/mTLS support to HA peer sync (#74)#103

Merged
mgazza merged 1 commit intomainfrom
feat/ha-tls
Feb 12, 2026
Merged

feat: add TLS/mTLS support to HA peer sync (#74)#103
mgazza merged 1 commit intomainfrom
feat/ha-tls

Conversation

@mgazza
Copy link
Contributor

@mgazza mgazza commented Feb 12, 2026

Summary

  • Add TLS configuration to HA sync (cert, key, CA, skip-verify)
  • Support mTLS for mutual authentication between HA peers
  • HTTPS for peer communication when TLS enabled
  • CLI flags for TLS configuration
  • Backwards compatible — TLS disabled by default

Closes #74

Add TLS configuration to the HA syncer for encrypted and mutually
authenticated peer-to-peer communication between active/standby BNG
nodes.

- Add TLS fields to SyncConfig (cert, key, CA, skip-verify)
- Build tls.Config with mTLS client cert and CA verification
- Use HTTPS scheme for peer URLs when TLS is enabled
- Serve HA HTTP server over TLS with ListenAndServeTLS
- Add CLI flags: --ha-tls-cert, --ha-tls-key, --ha-tls-ca,
  --ha-tls-skip-verify
- Backwards compatible: TLS disabled by default

Closes #74

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mgazza mgazza merged commit 9b6ca57 into main Feb 12, 2026
2 checks passed
@mgazza mgazza deleted the feat/ha-tls branch February 12, 2026 06:18
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.

feat: Add TLS support to HA peer-to-peer sync

1 participant