Commit graph

2 commits

Author SHA1 Message Date
Jeremie Fraeys
f74f3fa730
test(security): fix race conditions in monitor tests
Use atomic operations for shared variables:
- alertCount: atomic.Int32 for concurrent access
- lastAlert: atomic.Value for alert storage

Fixes data races detected by -race flag.
2026-03-13 23:31:22 -04:00
Jeremie Fraeys
5057f02167
test(crypto,security): add tenant key manager and anomaly monitor tests
Add comprehensive tests for:
- crypto/tenant_keys: KMS integration, key rotation, encryption/decryption
- security/monitor: sliding window, anomaly detection, concurrent access

Coverage: crypto 65.1%, security 100%
2026-03-13 23:26:22 -04:00