Skip to content

v11.0.0 tarball ships 13 bundled apps as build working trees (.git/, tests/, build/artifacts/) — 102 MB of dev files, code-signed, incl. EICAR test data #41824

Closed

Description

@oc-tmueller

Summary

The owncloud-complete-* release tarball ships 13 of its bundled apps as the working tree the app was built in, not as the app's release artifact. Each of those app directories contains .git/ (a shallow clone including the pack file), .github/, .gitignore, tests/, vendor-bin/ and build/artifacts/ — the last one holding a copy of the app's own, clean release tarball.

Verified on v11.0.0, owncloud-complete-20260730.tar.bz2 (sha256 747fcbb48a2df5d1ef61b87768a4e3484184469b876a76a8070e5c026f6396b3). Earlier lines are probably affected too; I only measured this one.

In numbers: 101.94 MB of 441.8 MB uncompressed content (23%) is development material, in 16 shipped .git repositories (13 apps plus three inside migrate_to_ocis's vendor/) and 22 nested app tarballs.

app files shipped of which dev-tree dev-tree size
files_primary_s3 1.7.1 10949 5504 52.11 MB
firewall 2.11.1 1616 867 6.33 MB
files_pdfviewer 1.1.1 1146 595 24.59 MB
files_texteditor 2.7.1 765 413 10.69 MB
files_antivirus 1.3.1 611 354 1.33 MB
windows_network_drive 2.5.1 449 290 1.48 MB
notifications 0.7.1 403 244 0.79 MB
announcementcenter 1.3.1 406 228 0.52 MB
brute_force_protection 1.4.1 383 225 2.52 MB
workflow 0.7.1 320 209 0.71 MB
files_external_ftp 0.3.1 347 195 0.23 MB
theme-enterprise 2.4.1 159 98 0.53 MB
systemtags_management 0.5.1 125 85 0.12 MB

For contrast, other bundled apps in the same tarball are packaged correctly and contain zero such files: activity, admin_audit, password_policy, metrics, oauth2, twofactor_totp. So this looks like an inconsistency in the release job rather than a deliberate choice.

Why it matters

  1. Anti-virus scans of the tarball, or of any image built from it, fail. files_antivirus 1.3.1 ships tests/acceptance/data/eicar.com, eicar_com.zip, eicarcom2.zip, and a nested build/artifacts/source/files_antivirus.tar.gz that contains them again. A ClamAV scan (1.4.6, recursive, limits disabled) of a container image built from this tarball reports 4 × Eicar-Test-Signature FOUND. For us this rejected a whole appliance image at a customer's AV gate. Thank you for repackaging 1.3.1 as 1.3.2 — that removed the development tree and fixed exactly this for one app; the underlying packaging problem remains for the other twelve.
  2. The development files are code-signed, so an administrator cannot remove them. In announcementcenter/appinfo/signature.json, 181 of 355 hashes are .git/…, tests/… or build/… paths (files_primary_s3: 3653 of 7291). Deleting the cruft therefore breaks occ integrity:check-app, so the only clean options are to delete the entire app or to ship it as it is.
  3. ~100 MB of dead weight in every deployment and every image layer.
  4. Scanner noise and supply-chain surface. The nested build/artifacts/*.tar.gz contain second copies of vendored dependency trees, which image scanners (Trivy et al.) report separately from the installed copy. The shipped .git/ also carries the release engineer's clone metadata: .git/logs/HEAD holds their name and e-mail address, and .git/config the [email protected]:owncloud/<app>.git remote.

Likely cause

The release job appears to clone each app into apps/<app>/, build it there, and then package apps/<app>/ instead of the artifact it just produced. Two pieces of evidence from the shipped tree:

  • apps/announcementcenter/.git/config contains fetch = +refs/tags/v1.3.1:refs/tags/v1.3.1 and there is a .git/shallow — i.e. a shallow tag clone made by an automated job.
  • The clean artifact sits right there next to the cruft: apps/announcementcenter/build/artifacts/appstore/announcementcenter.tar.gz unpacks to 154 files with no .git/, tests/ or build/, while the shipped apps/announcementcenter/ directory has 406 files. Same for files_texteditor (332 clean files in the artifact vs 765 shipped).

Expected behaviour

Package the content of each app's appstore artifact — as already happens for activity, admin_audit, metrics, oauth2, password_policy, twofactor_totp — and sign that. Nothing under .git/, .github/, tests/, build/ or vendor-bin/ should be part of a release tarball, and no anti-virus test data.

How to reproduce

Listing only — note that extracting this archive writes EICAR test files to disk, which some endpoint protection will act on:

curl -sSLO https://github.com/owncloud/core/releases/download/v11.0.0/owncloud-complete-20260730.tar.bz2
tar -tjf owncloud-complete-20260730.tar.bz2 \
  | grep -E '^owncloud/apps/[^/]+/(\.git|\.github|tests|build|vendor-bin)/' \
  | cut -d/ -f3 | sort | uniq -c | sort -rn

Also in the same tarball

migrate_to_ocis 3.0.0 vendors three dependencies with their .git directories included: ramsey/uuid (3.23 MB pack file), brick/math (1.57 MB), ramsey/collection (0.40 MB).


Found while building the BayernBox appliance image from the v11.0.0 tarball; happy to provide the full per-file inventory if that helps.

Activity

  1. self-assigned this
    on Sep 9, 2026
  2. oc-tmueller commented on Sep 9, 2026

    @oc-tmueller
    ContributorAuthor

    Investigated this. The report is accurate, but the suspected cause is not where the problem is, and the scope is wider than the complete tarball. Two fixes are up.

    Corrected root cause

    The release job does not clone each app and package the checkout. Every app in the v11.0.0 specs is pinned as type: github-release, and the resolver downloads the app's own release asset and moves it into place verbatim, with no filtering.

    So the bad tarballs are the apps' release assets. The uploader metadata settles it:

    asset uploader contents
    the 13 affected tags (announcementcenter v1.3.1, notifications v0.7.1, …) a maintainer, by hand build working tree
    files_antivirus v1.3.2, migrate_to_ocis v3.0.1, files_primary_s3 v1.6.2 github-actions[bot] clean — 0 development entries

    All 13 apps already carry the automated .github/workflows/release.yml on master, each with an explicit artifact-glob: build/artifacts/appstore/<app>.tar.gz. The app-side packaging was already fixed; the v11.0.0 pins simply predate it. That is also why repackaging files_antivirus as 1.3.2 worked — it was the first release to go through the automated path, not a one-off manual cleanup.

    The .git/config evidence in the report (fetch = +refs/tags/v1.3.1, .git/shallow) is from the app's CI clone, captured when the asset was rolled by hand from that checkout.

    Two things not in the report

    1. owncloud-11.0.0.tar.bz2 is affected too — this is not complete-only. apps/notifications/ carries .git/ (243 entries), .github/, tests/ and build/artifacts/{appstore,source}/notifications.tar.gz. It is the only .git in that archive.

    2. The daily bundles are broken by a separate bug, this one genuinely in the release tooling. Daily specs resolve apps with build: true, cleanup: true; make dist creates build/artifacts/, and the cleanup list never removed it. owncloud-complete-daily-master.tar.bz2 ships apps/<app>/build for 42 apps — 23,489 files, 64 nested tarballs, and EICAR again via files_antivirus/build/artifacts/source/.

    Fixes

    Both fail rather than clean, for the reason given in the report's point 2: the development files are covered by the app's appinfo/signature.json, so stripping them would break occ integrity:check-app. Reporting is the only correct behaviour.

    Measured against the published tarballs, with no false positive across all 181,244 shipped paths:

    bundle entries violations
    owncloud-11.0.0.tar.bz2 12,962 5 (all notifications)
    owncloud-complete-20260730.tar.bz2 44,380 67 (the 13 apps + migrate_to_ocis's 3 vendored repos)
    owncloud-complete-daily-master.tar.bz2 123,902 42 (one build/ per app)

    Getting the rules right needed real data — an early draft also rejected nested archives, which turned out to flag notes's vendored js/vendor/restangular/dist/restangular.zip and the 33 skeleton fixtures under apps/testing/data/. Every archive that matters is under build/artifacts/, already covered by rejecting build.

    Workaround for the AV gate, available now

    You do not need to wait for a new bundle. The EICAR data comes only from files_antivirus, and 1.3.2 is already released and clean. Replacing apps/files_antivirus/ wholesale with the official 1.3.2 tarball removes all four Eicar-Test-Signature hits and keeps integrity checks valid, because 1.3.2 ships its own signature.

    I verified 1.3.2 is a repackaging-only release: its payload is the 1.3.1 payload with the development files removed — no file added, and <owncloud min-version="11" max-version="11"/> unchanged. Same applies to migrate_to_ocis 3.0.1, which drops the three vendored .git directories.

    Remediation of the shipped artifacts

    Planned in waves, so the urgent part does not wait on the rest:

    • Wave 0 — repin files_antivirus 1.3.2 and migrate_to_ocis 3.0.1. No app work needed; this alone removes the EICAR data and all three vendored repositories, i.e. the AV blocker.
    • Wave 1 — patch releases for the 9 remaining apps whose dependencies are confirmed current (Dependabot active, no open PRs).
    • Wave 2 — firewall, files_pdfviewer, files_texteditor. These three vendor front-end code that neither Dependabot nor the Trivy workflow can see (files_pdfviewer pins pdf.js 2.10.0 via bower, files_texteditor carries Ace 1.2.6 with no manifest at all), so they get a dependency audit before being tagged.
    • Wave 3 — core v11.0.1 and rebuilt standard + complete bundles. A new version rather than replacing the v11.0.0 assets, so the published checksums stay valid.

    Thanks for the precise report — the per-app numbers and the build/artifacts/appstore comparison are what made the real cause findable.

  3. oc-tmueller commented on Sep 25, 2026

    @oc-tmueller
    ContributorAuthor

    Closing this: the fix is merged on both sides and the remediation is complete in the 11.0.1 specs. Everything below is measured against the published artifacts today, not against the plan.

    Both guards are live

    • owncloud/server-release#54 (merged) — verifyTree() runs between assemble() and signing, so a bundle build now fails rather than shipping a build tree. Rules: .git at any depth; .github/build/vendor-bin at apps/<app>/ top level; tests there too unless the variant is a QA one. It reports, it never strips — for the reason in the report's point 2.
    • fix(release): reject release artifacts that ship development files reusable-workflows#97 (merged to main) — the same check at the producer, so a bad asset cannot be published in the first place. Every affected app's release.yml references the reusable workflow at @main, so this needed no per-app rollout to take effect.

    All 14 pins now resolve to clean, bot-built assets

    Each of the 13 apps got a repackaging patch release, plus migrate_to_ocis. All 14 releases carry exactly one asset, all uploaded by github-actions[bot]. I downloaded all 14 and ran #54's own rules over them:

    app v11.0.0 11.0.1 files violations
    files_primary_s3 1.7.1 v1.7.2 3651 0
    firewall 2.11.1 v2.11.2 514 0
    files_pdfviewer 1.1.1 v1.1.2 411 0
    files_texteditor 2.7.1 v2.7.2 321 0
    files_antivirus 1.3.1 v1.3.2 221 0
    migrate_to_ocis 3.0.0 v3.0.2 233 0
    windows_network_drive 2.5.1 v2.5.2 113 0
    notifications 0.7.1 v0.7.2 124 0
    announcementcenter 1.3.1 v1.3.2 142 0
    brute_force_protection 1.4.1 v1.4.2 124 0
    workflow 0.7.1 v0.7.2 70 0
    files_external_ftp 0.3.1 v0.3.2 128 0
    theme-enterprise 2.4.1 v2.4.2 36 0
    systemtags_management 0.5.1 v0.5.2 19 0

    6,107 files across the 14, with zero violations, zero EICAR paths, zero nested archives and zero loose development files at an app's top level. On the signing point specifically: files_primary_s3 v1.7.2's appinfo/signature.json holds 3,650 hashes, none of them on a .git/tests/build/vendor-bin path — against 3,653 of 7,291 in v1.7.1.

    The four 11.0.1 specs pin these identically (11.0.1.yaml == 11.0.1-qa.yaml, 11.0.1-complete.yaml == 11.0.1-complete-qa.yaml), so no variant is left behind. notifications v0.7.2 is in the standard spec too, which is the fix for the second thing my earlier comment found — owncloud-11.0.0.tar.bz2 was affected as well, via notifications 0.7.1.

    The guard was then exercised against the real spec set: a trial release.yml run on the 11.0.1 specs succeeded for all four variants, so verifyTree cleared all 44 app pins, not just the 14 repinned ones.

    The daily bundles are fixed, and that is visible in what is published

    This was the separate bug in the release tooling — cleanupTargets() never removed build/, so daily complete shipped apps/<app>/build for 42 apps. The published owncloud-complete-daily-master.tar.bz2 is now 140,452,226 bytes / 100,392 entries, down from 191,714,440 / 123,902 before the fix. Same rules applied to it: 0 violations, 0 .git, 0 EICAR. The only nested archives left are the eight legitimate apps/testing/data/*Skeleton/data.tar.gz skeleton fixtures, which is exactly why #54 has no nested-archive rule.

    One piece of residue there, for the record: the daily complete still carries a few loose top-level development files per app — 17 × .drone.star, two phpunit.*.xml, one .gitattributes. Both verifyTree and cleanupTargets() work on directories. It is a few KB, carries no clone metadata and no AV test data, and it cannot reach a versioned bundle at all, since those take each app from its release asset. Not worth holding this issue open for; happy to have it as its own ticket if anyone wants it gone.

    What is left, and where it is tracked

    The v11.0.0 assets stay as published, so the checksums out there remain valid — the clean bundles arrive as 11.0.1. That last step is release mechanics rather than this defect: the specs are up as owncloud/server-release#53 and core still needs its v11.0.1 tag. Both are clean of this problem by construction now, since a build carrying a development tree fails before it is signed.

    Thanks again for the per-file inventory in the report — the build/artifacts/appstore comparison is what made the real cause findable, and the 181,244-path baseline is what let the guard rules be calibrated without a single false positive.

  4. added a commit that references this issue on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions