The EU Cyber Resilience Act (CRA) specifies, that
- Security relevant events must be logged
- unless explicitly opted out by the user.
We're currently using the log crate with env_logger, and I couldn't find a way for how to determine security relevant events using log's API, i.e. it has no sec!() log level or similar.
Rolling own logging code may be an option, but since we're using several dependencies, we'd also have to patch their respective logging in order to identify security-relevant log entries as such, since most of them just use log.
Do you know of any possibilities, in a complex application with several dependencies, how to identify security relevant logging calls?
The only other option would be to entirely turn off logging, if the user opts out of security logging and we cannot reliably identify security-related log entries.
21 posts - 8 participants

