Skip to content

chore: Update clamav 1 4 6 - #1947

Merged
jasonchung1871 merged 4 commits into
bcgov:mainfrom
jasonchung1871:update-clamav-1_4_6
Aug 25, 2026
Merged

chore: Update clamav 1 4 6#1947
jasonchung1871 merged 4 commits into
bcgov:mainfrom
jasonchung1871:update-clamav-1_4_6

Conversation

@jasonchung1871

Copy link
Copy Markdown
Contributor

Description

our chefs-clamav deployment is constantly being scaled to zero since we haven't been maintaining it. when trying to deploy version 1.4.5 which was built previously, we get the following error:

ERROR: Can't initialize the internal logger
ERROR: Failed to open log file /dev/stdout: Too many levels of symbolic links

I have tried commenting out the LogFile, but the error still persists. this change will attempt to redirect the logs to a real file.

Type of Change

build (change in build system or dependencies)

This is a breaking change because ...

clamav might not work.. at least in dev, but we're having our clamav being scaled down anyways so we need to resolve this

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have run the npm script lint on the frontend and backend
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have approval from the product owner for the contribution in this pull request

Further comments

Copilot AI lite review requested due to automatic review settings August 25, 2026 07:10
@jasonchung1871 jasonchung1871 changed the title Update clamav 1 4 6 chore: Update clamav 1 4 6 Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the ClamAV container/image and Helm chart configuration to move away from logging directly to /dev/stdout (which crashes clamd under OpenShift/CRI-O symlink resolution) while bumping the packaged ClamAV version.

Changes:

  • Bump ClamAV RPM version to 1.4.6 and update chart appVersion.
  • Redirect clamd/freshclam logging to real log files and stream them back to stdout via a launcher script.
  • Force dev deployments to always re-pull the image to avoid node-side cache reuse.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
clamav/run.sh New launcher that tails log files to stdout and runs freshclam then clamd.
clamav/Dockerfile Bumps ClamAV version, adds launcher script, and switches container CMD to use it.
clamav/config/freshclam.conf Switches update logging from /dev/stdout to /var/log/clamav/freshclam.log.
clamav/config/clamd.conf Switches clamd logging from /dev/stdout to /var/log/clamav/clamav.log with rationale.
clamav/charts/clamav/values-dev.yaml Sets clamav.imagePullPolicy: Always for dev.
clamav/charts/clamav/templates/configmap.yaml Updates generated clamd/freshclam configs to use file logging (and whitespace/formatting tweaks).
clamav/charts/clamav/Chart.yaml Updates Helm appVersion to 1.4.6.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread clamav/run.sh Outdated
Comment thread clamav/charts/clamav/Chart.yaml Outdated
this change makes the helm's configmap the source of truth while still working locally with docker run testing
@sonarqubecloud

Copy link
Copy Markdown

@jasonchung1871
jasonchung1871 merged commit 7855e41 into bcgov:main Aug 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants