Skip to content

test: validate trivy workflow on fixed rclone (throwaway, will be closed) - #58

Closed
DeepDiver1975 wants to merge 3 commits into
masterfrom
test/trivy-validation-new
Closed

test: validate trivy workflow on fixed rclone (throwaway, will be closed)#58
DeepDiver1975 wants to merge 3 commits into
masterfrom
test/trivy-validation-new

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Throwaway: same reusable Trivy workflow as #57, but on top of the upstream rclone v1.75.0 swap (#56). Expected: green. Will be closed and the branch deleted.

The bundled bin/rclone_linux_amd64 was a custom fork build
(v1.67.0-beta.8042.483c2feed.kiteworks-backend, Go 1.22.4, built 2024-07-01).
Trivy reports 23 HIGH/CRITICAL vulnerabilities against it, 16 of them Go
stdlib CVEs, including CVE-2025-68121 (CRITICAL, crypto/tls), CVE-2024-45337
(CRITICAL, x/crypto) and CVE-2026-33186 (CRITICAL, gRPC).

Nothing required the fork. The app runs only `rclone sync` and
`rclone obscure` against type=webdav,vendor=owncloud remotes, and the fork's
kiteworks-backend is never referenced. Upstream v1.75.0 accepts every flag
StateMigrateFiles passes, including --webdav-owncloud-exclude-shares and
--webdav-owncloud-exclude-mounts (backend/webdav/webdav.go:158,163).

The replacement is the official rclone-v1.75.0-linux-amd64.zip artifact,
sha256 aa2804e08f48250e71009c727124b6341cd0288465804a9a09d14663cabafbaa,
built with Go 1.26.5. It scans clean: no HIGH/CRITICAL findings.

Also document why appinfo/install.php still chmods the binary: the exec bit is
correct in git and in the app tarball, but the complete tarball normalized it
away, which additionally hid the binary from Trivy - its gobinary analyzer only
inspects files that have an exec bit.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Upstream rclone v1.75.0 (the newest release, 2026-07-31) is built with
go1.26.5. Trivy reports eight HIGH stdlib findings against it that are fixed
in go 1.25.13 / 1.26.6 - no rclone release has been built with those yet, so
no available binary is free of them. All are DoS/XSS class, none CRITICAL,
and none is reachable from how the app drives rclone (`rclone sync` and
`rclone obscure` against one trusted ownCloud WebDAV endpoint).

Each entry carries expired_at: 2026-11-01 and is scoped to the binary's path,
so the acceptance expires by itself and cannot spread to other components.
Verified that Trivy stops suppressing an expired entry.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

Throwaway validation PR — purpose served: proved the scan passes on upstream rclone v1.75.0 with the expiring ignorefile. Evidence recorded in #56 and owncloud/reusable-workflows#92.

@DeepDiver1975
DeepDiver1975 deleted the test/trivy-validation-new branch August 17, 2026 20:27
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.

1 participant