fix: TLS cert hot-reload when services change #13
Reference in New Issue
Block a user
Delete Branch "fix/tls-hot-reload"
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?
Summary
arc-swapfor lock-free TLS config swapping; cert is regenerated (~5ms) on every service add/removePeerStore::updatereturnsboolso LAN discovery only triggers regen when new names appearServiceStore::names()/PeerStore::names()helpers eliminate duplicated collection patternsregenerate_tlsmoved totls.rs, usesHashSetfor O(n) dedup instead of O(n²)Vec::containsTest plan
POST /services→ verifyhttps://<name>.numaimmediately shows green lockDELETE /services/<name>→ verify cert no longer covers it🤖 Generated with Claude Code