cloudflared-mirror/cmd/cloudflared
Devin Carr 2484df1f81 TUN-8630: Check checksum of downloaded binary to compare to current for auto-updating
In the rare case that the updater downloads the same binary (validated via checksum)
we want to make sure that the updater does not attempt to upgrade and restart the cloudflared
process. The binaries are equivalent and this would provide no value.

However, we are covering this case because there was an errant deployment of cloudflared
that reported itself as an older version and was then stuck in an infinite loop
attempting to upgrade to the latest version which didn't exist. By making sure that
the binary is different ensures that the upgrade will be attempted and cloudflared
will be restarted to run the new version.

This change only affects cloudflared tunnels running with default settings or
`--no-autoupdate=false` which allows cloudflared to auto-update itself in-place. Most
distributions that handle package management at the operating system level are
not affected by this change.
2024-09-11 16:00:00 -07:00
..
access TUN-8591 login command without extra text 2024-08-17 01:11:27 +01:00
cliutil TUN-8630: Check checksum of downloaded binary to compare to current for auto-updating 2024-09-11 16:00:00 -07:00
proxydns TUN-6963: Refactor Metrics service setup 2022-11-22 11:35:48 +00:00
tail TUN-7393: Add json output for cloudflared tail 2023-04-26 15:41:00 +00:00
tunnel Reverts the following: 2024-09-10 16:50:32 +01:00
updater TUN-8630: Check checksum of downloaded binary to compare to current for auto-updating 2024-09-11 16:00:00 -07:00
app_forward_service.go TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future. 2021-03-24 10:53:29 -05:00
app_resolver_service.go TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future. 2021-03-24 10:53:29 -05:00
app_service.go TUN-4067: Reformat code for consistent import order, grouping, and fix formatting. Added goimports target to the Makefile to make this easier in the future. 2021-03-24 10:53:29 -05:00
common_service.go TUN-5679: Add support for service install using Tunnel Token 2022-03-03 18:59:03 +00:00
generic_service.go TUN-7584: Bump go 1.20.6 2023-07-26 13:52:40 -07:00
linux_service.go Update linux_service.go 2024-03-06 10:29:55 +00:00
macos_service.go TUN-7584: Bump go 1.20.6 2023-07-26 13:52:40 -07:00
main.go TUN-8630: Check checksum of downloaded binary to compare to current for auto-updating 2024-09-11 16:00:00 -07:00
service_template.go TUN-7590: Remove usages of ioutil 2023-07-17 19:08:38 +00:00
windows_service.go TUN-7584: Bump go 1.20.6 2023-07-26 13:52:40 -07:00