Repository navigation
Description
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
- Anti-virus scans of the tarball, or of any image built from it, fail.
files_antivirus1.3.1 shipstests/acceptance/data/eicar.com,eicar_com.zip,eicarcom2.zip, and a nestedbuild/artifacts/source/files_antivirus.tar.gzthat 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. - The development files are code-signed, so an administrator cannot remove them. In
announcementcenter/appinfo/signature.json, 181 of 355 hashes are.git/…,tests/…orbuild/…paths (files_primary_s3: 3653 of 7291). Deleting the cruft therefore breaksocc integrity:check-app, so the only clean options are to delete the entire app or to ship it as it is. - ~100 MB of dead weight in every deployment and every image layer.
- Scanner noise and supply-chain surface. The nested
build/artifacts/*.tar.gzcontain 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/HEADholds their name and e-mail address, and.git/configthe[email protected]:owncloud/<app>.gitremote.
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/configcontainsfetch = +refs/tags/v1.3.1:refs/tags/v1.3.1and 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.gzunpacks to 154 files with no.git/,tests/orbuild/, while the shippedapps/announcementcenter/directory has 406 files. Same forfiles_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 -rnAlso 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
oc-tmueller commentedon Sep 9, 2026
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:
announcementcenterv1.3.1,notificationsv0.7.1, …)files_antivirusv1.3.2,migrate_to_ocisv3.0.1,files_primary_s3v1.6.2github-actions[bot]All 13 apps already carry the automated
.github/workflows/release.ymlonmaster, each with an explicitartifact-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 repackagingfiles_antivirusas 1.3.2 worked — it was the first release to go through the automated path, not a one-off manual cleanup.The
.git/configevidence 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.bz2is affected too — this is not complete-only.apps/notifications/carries.git/(243 entries),.github/,tests/andbuild/artifacts/{appstore,source}/notifications.tar.gz. It is the only.gitin that archive.2. The
dailybundles are broken by a separate bug, this one genuinely in the release tooling. Daily specs resolve apps withbuild: true, cleanup: true;make distcreatesbuild/artifacts/, and the cleanup list never removed it.owncloud-complete-daily-master.tar.bz2shipsapps/<app>/buildfor 42 apps — 23,489 files, 64 nested tarballs, and EICAR again viafiles_antivirus/build/artifacts/source/.Fixes
build/cleanup fix for the daily bundles.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 breakocc integrity:check-app. Reporting is the only correct behaviour.Measured against the published tarballs, with no false positive across all 181,244 shipped paths:
owncloud-11.0.0.tar.bz2notifications)owncloud-complete-20260730.tar.bz2migrate_to_ocis's 3 vendored repos)owncloud-complete-daily-master.tar.bz2build/per app)Getting the rules right needed real data — an early draft also rejected nested archives, which turned out to flag
notes's vendoredjs/vendor/restangular/dist/restangular.zipand the 33 skeleton fixtures underapps/testing/data/. Every archive that matters is underbuild/artifacts/, already covered by rejectingbuild.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. Replacingapps/files_antivirus/wholesale with the official 1.3.2 tarball removes all fourEicar-Test-Signaturehits 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 tomigrate_to_ocis3.0.1, which drops the three vendored.gitdirectories.Remediation of the shipped artifacts
Planned in waves, so the urgent part does not wait on the rest:
files_antivirus1.3.2 andmigrate_to_ocis3.0.1. No app work needed; this alone removes the EICAR data and all three vendored repositories, i.e. the AV blocker.firewall,files_pdfviewer,files_texteditor. These three vendor front-end code that neither Dependabot nor the Trivy workflow can see (files_pdfviewerpins pdf.js 2.10.0 via bower,files_texteditorcarries Ace 1.2.6 with no manifest at all), so they get a dependency audit before being tagged.Thanks for the precise report — the per-app numbers and the
build/artifacts/appstorecomparison are what made the real cause findable.fix: make the vendored Ace editor auditable (#446)
fix: make the vendored pdf.js auditable (#360)
fix(release): reject release artifacts that ship development files (#97)
chore: release 1.1.2 (#362)
chore: release 1.4.2 (#237)
chore: release 1.7.2 (#732)
chore: release 0.7.2 (#407)
chore: release 1.3.2 (#214)
chore: release 2.7.2 (#447)
fix(build): keep the Transifex client config out of the release tarball
feat: publish a signed release on tag push (#793)
chore: release 0.3.2 (#132)
feat: release 11.0.1
oc-tmueller commentedon Sep 25, 2026
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
verifyTree()runs betweenassemble()and signing, so a bundle build now fails rather than shipping a build tree. Rules:.gitat any depth;.github/build/vendor-binatapps/<app>/top level;teststhere too unless the variant is a QA one. It reports, it never strips — for the reason in the report's point 2.main) — the same check at the producer, so a bad asset cannot be published in the first place. Every affected app'srelease.ymlreferences 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 bygithub-actions[bot]. I downloaded all 14 and ran #54's own rules over them: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_s3v1.7.2'sappinfo/signature.jsonholds 3,650 hashes, none of them on a.git/tests/build/vendor-binpath — 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.notificationsv0.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.bz2was affected as well, vianotifications0.7.1.The guard was then exercised against the real spec set: a trial
release.ymlrun on the 11.0.1 specs succeeded for all four variants, soverifyTreecleared 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 removedbuild/, so daily complete shippedapps/<app>/buildfor 42 apps. The publishedowncloud-complete-daily-master.tar.bz2is 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 legitimateapps/testing/data/*Skeleton/data.tar.gzskeleton 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, twophpunit.*.xml, one.gitattributes. BothverifyTreeandcleanupTargets()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.1tag. 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/appstorecomparison 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.feat: release 11.0.1 (#41867)