klouddbshield
klouddbshield copied to clipboard
CIS Benchmark 3.1.15 reporting wrong results
Hey guys, i was running the scan and I noticed that my check for the log_min_error_statement is failing even though this is set to error. I could be wrong but it seems like the logic in this portion of the code is reversed? should it be the following instead?
// 3.1.15 Ensure the correct SQL statements generating errors are recorded
if settingsMap["log_min_error_statement"] == "error" || settingsMap["log_min_error_statement"] == "fatal" || settingsMap["log_min_error_statement"] == "panic" {
lmaResultsMap["log_min_error_statement"].Status = "Pass"
} else {
lmaResultsMap["log_min_error_statement"].Status = "Fail"
lmaResultsMap["log_min_error_statement"].FailReason = "log_min_error_statement is not set correctly"
}
@quentinkhoo We will check this and get back to you shortly .. Please also try PII scanner , SSL checker and other features we released recently
@quentinkhoo If you continue to face any issues, please reach out to us at [email protected]