Intent-Code Divergence
Medium
- Confidence
- 96% confidence
- Finding
- The function is explicitly described as creating an in-memory KMS, but it actually uses KeysFileStorage("kms.json"), which persists cryptographic keys to disk. This mismatch can cause developers and operators to handle the component with weaker safeguards than required, increasing the risk of secret disclosure through local file access, backups, logs, or container volume leakage.
