Repository navigation
docs(admin): document ICAP antivirus configuration - #15538
Merged
Merged
Conversation
This was referenced Sep 1, 2026
Contributor
📖 Documentation Preview📄 1 changed documentation pageLast updated: Mon, 23 Nov 2026 12:22:06 GMT |
Contributor
Author
|
/backport to stable35 |
Contributor
Author
|
/backport to stable34 |
Contributor
Author
|
/backport to stable33 |
Contributor
|
Looks legit, but I don't know the app insides and don't want to yolo this. Let's ping an author or a maintainer to verify |
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
icewind1991
reviewed
Sep 24, 2026
miaulalala
force-pushed
the
feature/icap-documentation
branch
from
September 24, 2026 11:43
9ed7cb4 to
219211a
Compare
skjnldsv
previously requested changes
Nov 18, 2026
skjnldsv
left a comment
Member
There was a problem hiding this comment.
Looks good overall, two things:
- The warning about
av_icap_response_headeris a bit too strong.ICAP.phpstill flags a file as infected when the encapsulated response is a 403, so it only passes silently on a 204 or a 200. Could you reword it? - The settings form binds the mode select to the preset, not to
av_icap_mode, so the mode can't be set on its own from the UI. Maybe point to occ for that?
The ICAP section was a single paragraph ending 'Additional documentation is work in progress'. Replaces it with the settings and their defaults, the choice between REQMOD and RESPMOD, the vendor-specific virus response header and its silent failure mode, verification via occ files_antivirus:test, how scanner verdicts are handled, transport security, and what data is sent to the scanning service. Adds a general 'How scanning works' section with the scan limits, since those apply to all scanner modes and not only to ICAP. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: Anna Larch <anna@nextcloud.com>
miaulalala
force-pushed
the
feature/icap-documentation
branch
from
November 23, 2026 12:15
219211a to
686c55a
Compare
Contributor
Author
|
Thanks @skjnldsv, both addressed: the warning now says an encapsulated 403 is still flagged as infected and the silent pass only applies to header-only scanners on a 204 or 200, and the panel paragraph points to occ for |
skjnldsv
approved these changes
Nov 28, 2026
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
☑️ Resolves
The ICAP section of the antivirus page was a single paragraph plus a screenshot, ending with
"Additional documentation is work in progress". Meanwhile the implementation in
nextcloud/files_antivirussupports two ICAP modes, six ICAP-specific settings, five distinctresponse outcomes and TLS, none of which was documented. Anyone integrating an ICAP scanner had to
read the app source.
This came out of a partner conversation where the missing documentation was the blocker, so it is
written for someone configuring a real scanning appliance.
📝 What is documented
Everything below was verified against
nextcloud/files_antivirusmaster, not from memory:lib/AppInfo/ConfigLexicon.php, plus theoccform of each.Includes the fact that
av_portdefaults to3310, the ClamAV daemon port rather than ICAP's1344, so it almost always has to be changed.
direction: if
av_icap_response_headerdoes not match what the scanner sends, no threat name isever read and infected files are accepted with nothing logged. Documented as a warning.
occ files_antivirus:testand--debug, which prints the actual ICAPexchange.
including that blocked file types and extensions are treated as infected, so ICAP mode also
enforces file type policy.
av_icap_tlsdefaults to off.account's user ID), and the uploader's IP. This matters for anyone pointing ICAP at a scanner
outside their own infrastructure.
file's lifecycle, and the three scan limits (
av_scan_first_bytes,av_stream_max_length,av_max_file_size).🖼️ Screenshots
No new images. The existing
antivirus-icap.pngfigure is kept in place. Built locally and therendered page reviewed; happy to add a screenshot of the rendered section if reviewers would like
one.
The new ICAP text gives the real default for
av_stream_max_length(26214400, 25 MiB). The older"Daemon (Socket)" section further up the same page states
10485760, "ten megabytes", which iswrong against
ConfigLexicon. That is a pre-existing error, fixed separately in #15539 to keepone concern per PR, so the two figures disagree on this page until that lands.
Merge order: none required. I tested this PR merged together with #14810, #15539 and #15541:
zero conflicts in any order, and the combined file is
sphinx-lintclean.✅ Checklist
sphinx-lintis clean and the build produces no warnings (-W --keep-going)codespell— not installed locally, please let CI confirm