Skip to content

Commit

Permalink
fixup! Fix: Rebooting GitLab may trigger ClamAV alarm (#6114)
Browse files Browse the repository at this point in the history
  • Loading branch information
achave11-ucsc committed Jul 19, 2024
1 parent 39c4aa4 commit 7f5a8b9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions terraform/shared/shared.tf.json.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,14 @@ def conformance_pack(name: str) -> str:
# hours without matching a successful scan. To prevent this
# from triggering false positive alarms, we include a
# sub-pattern to also match successful power-offs & reboots.
*(
(s,
' ?"systemd: Starting '.join([f'?"{s} succeeded"', 'Reboot"', 'Power-Off"']))
for s in ('clamscan', 'freshclam')
),
('clam_fail', '?"clamscan failed" ?"freshclam failed"'),
('clamscan', '?"clamscan succeeded" '
'?"systemd: Starting Reboot" '
'?"systemd: Starting Power-Off"'),
('freshclam', '?"freshclam succeeded" '
'?"systemd: Starting Reboot" '
'?"systemd: Starting Power-Off"'),
('clam_fail', '?"clamscan failed" '
'?"freshclam failed"')
]
}
},
Expand Down

0 comments on commit 7f5a8b9

Please sign in to comment.