Skip to content

Commit

Permalink
fix: disable scan result cache check (#1012)
Browse files Browse the repository at this point in the history
Update the API to no longer attempt to use cached scan
results.  This is because the feature is not proving useful for
the Notify use case where most attachments are unique.

Additionally during heavy Notify sends, the cache result
lookup is causing database connection exhaustion errors.
  • Loading branch information
patheard authored Jul 5, 2024
1 parent 38caa7e commit a57d167
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terragrunt/aws/api/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module "scan_files" {
environment_variables = {
API_AUTH_TOKEN_SECRET_ARN = aws_secretsmanager_secret.api_auth_token.id
AV_DEFINITION_S3_BUCKET = "${var.product_name}-${var.env}-clamav-defs"
AV_SCAN_USE_CACHE = "False"
AWS_MAX_ATTEMPTS = "5"
AWS_RETRY_MODE = "standard"
COMPLETED_SCANS_TABLE_NAME = "completed-scans"
Expand Down

0 comments on commit a57d167

Please sign in to comment.