- Define certCheckCacheDuration constant for better maintainability
- Fix bash test syntax in tls_cert_reload.bats for command existence checks
- Fix function call syntax without command substitution
Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>
- Add logging when certificate reload fails using log.Logger
- Implement fsnotify for efficient file system monitoring instead of polling on every handshake
- Add reloadMu to prevent concurrent reload operations and race conditions
- Add time-based cache (1 second) for fallback polling to reduce file system calls
- Watch certificate directories for better reliability with atomic file updates
- Graceful fallback to periodic checking if fsnotify fails to initialize
Co-authored-by: rchincha <45800463+rchincha@users.noreply.github.com>