Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(clamav): Switch to official clamav image #456

Merged
merged 1 commit into from
Apr 28, 2024
Merged

fix(clamav): Switch to official clamav image #456

merged 1 commit into from
Apr 28, 2024

Conversation

jplitza
Copy link
Contributor

@jplitza jplitza commented Apr 10, 2024

I chose the _base version of the image because the previously used MailU version didn't include a database either.

Fixes #325
Fixes #432

@jplitza
Copy link
Contributor Author

jplitza commented Apr 23, 2024

@desaintmartin Did you have a chance to look at this? (Mentioning you since you seemed interested in #325)

@desaintmartin
Copy link
Member

That's nice, thanks for the contribution! Is there anything to know when changing to upstream?

@jplitza
Copy link
Contributor Author

jplitza commented Apr 27, 2024

@desaintmartin Not that I am aware of, no. As you can see, the UID of the clamav user in the image changes. But at least in our use case, everything else worked as expected.

Something we experienced with both MailU's and upstream's _base images - since they don't contain any database - were problems with the CDN's rate limit. Especially in combination with the HPA (which is enabled by default), the rate limit was quickly exhausted, causing the pods failing to start at all. We solved that by using a caching proxy (see #458 for the necessary changes to the chart). But maybe the HPA shouldn't be enabled by default, since frequently starting new pods facilitates early exhaustion of the rate limit.

Copy link
Member

@desaintmartin desaintmartin left a comment

Choose a reason for hiding this comment

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

Actually, we at Wiremind disabled this HPA due to the small efficiency gains versus all those problems, maybe it should indeed be disabled by default, which would require (another) breaking change.

Anyway, thanks for the contribution, everything seems fine! lgtm

@desaintmartin desaintmartin merged commit 10c731f into wiremind:main Apr 28, 2024
4 checks passed
@jplitza jplitza deleted the clamav-official branch April 29, 2024 06:46
@pinkfloydx33
Copy link

DatabaseOwner is still 2000 in the freshclam configuration, was this intended?

@jplitza
Copy link
Contributor Author

jplitza commented May 3, 2024 via email

@pinkfloydx33
Copy link

pinkfloydx33 commented May 3, 2024

I was worried because of #322 which implies there could be issues when a PVC is involved. They had to give the pod security context the fsGroup of 2000, I assume to match the value in freshclam

We're about to rollout an install using Flux to AKS with a PVC... and I was double checking issues and settings. This got me worried enough that we decided we were going to try and override the freshclam conf defaults to use a matching GID, but unclear if it's really going to be necessary. We'd rather just take the default values but it's unclear if we can.

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.

mailu clamav image is no longer supported ClamAV image - switch to clamav/clamav?
3 participants