fleet/ee/server/service
Konstantin Sykulev b643b326ee
Generate SHA from file if FMA sha is no_check (#30558)
fixes: #30325

Related to incorrect behavior introduced at
https://github.com/fleetdm/fleet/pull/28945

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.
- [x] Added/updated automated tests
- [x] Manual QA for all new/changed functionality


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* When uploading software batches, if the installer SHA is set to
"no_check," the system will now automatically generate and use the
SHA256 checksum of the installer file.
* **Bug Fixes**
* Fixed an issue ensuring the latest Google Chrome version is pulled
during Fleet-maintained app updates.
* Corrected the display of the SHA256 hash in the UI and API to show
valid values.
* Improved handling of installer uploads to ensure a valid SHA256
checksum is always applied, even when "no_check" is specified.
* **Tests**
* Added a test to verify correct SHA256 hash calculation for installer
files.
* Extended integration tests to validate batch software installer
operations for maintained apps with SHA256 hash checks.
* Added tests covering behavior when SHA256 checksum is marked as
"no_check" for maintained apps.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2025-07-07 11:05:19 -05:00
..
digicert Renewal of DigiCert certificates on macOS (#28449) 2025-04-24 08:35:15 -04:00
embedded_scripts Update linux_wipe.sh (#29146) 2025-05-19 10:25:23 -05:00
testdata Added better handling of timeout and insufficient permissions errors in NDES SCEP proxy. (#23654) 2024-11-11 14:57:28 -06:00
appconfig.go enable controlled rollout of features by teams (#7408) 2022-08-30 08:13:09 -03:00
calendar.go Handle null HostID on calendar webhook endpoint (#30130) 2025-06-23 13:10:10 -04:00
calendar_test.go Downloading a software installer package now shows the browser's built-in progress bar (#21341) 2024-08-20 12:37:29 -05:00
devices.go Windows MDM migration: implement fleetd notification and migration (#24185) 2024-12-02 09:14:10 -05:00
errors.go Added better handling of timeout and insufficient permissions errors in NDES SCEP proxy. (#23654) 2024-11-11 14:57:28 -06:00
hosts.go Misc feedback for new Windows doWipe cmd (#30252) 2025-06-25 18:38:40 -04:00
maintained_apps.go Generate SHA from file if FMA sha is no_check (#30558) 2025-07-07 11:05:19 -05:00
maintained_apps_test.go Persist download URL when adding FMAs via non-GitOps API, fix software versions on GitOps YAML generation (#30331) 2025-06-26 14:29:23 -05:00
mdm.go Add ability to upload EULA via gitops (#30332) 2025-07-01 17:28:13 +01:00
mdm_export_for_test.go Update/fix/add tests for puppet-related flow (preassign+match) (#17859) 2024-03-26 13:41:40 -04:00
mdm_external_test.go Microsoft Compliance Partner backend changes (#29540) 2025-06-11 14:22:46 -03:00
mdm_profiles.go Added explicit validation of FDEFileVaultOptions properties. (#27473) 2025-03-24 19:36:36 -05:00
mdm_test.go IdP vars: add integration test, address last PR comments (#28794) 2025-05-05 11:46:10 -04:00
orbit.go Setup experience flag for InstalledSoftware activity (#30433) 2025-07-02 16:43:08 -05:00
scep_proxy.go Add one-time challenge support to custom SCEP proxy (#29832) 2025-06-12 08:56:13 -05:00
scep_proxy_test.go Add one-time challenge support to custom SCEP proxy (#29832) 2025-06-12 08:56:13 -05:00
scim.go Added scim/details endpoint (#28007) 2025-04-10 14:08:45 -05:00
service.go Add VPP policy automation support to backend (#25154) 2025-01-13 15:53:24 -06:00
setup_experience.go fix: report a failure in setup experience if a VPP app installation fails due to lack of licenses (#27163) 2025-03-17 09:43:51 -04:00
setup_experience_test.go Upcoming Activities feature branch (#25450) 2025-02-11 14:53:11 -05:00
software.go Fixed bug when using without_vulnerability_details and vulnerability filters (#24769) 2024-12-13 16:39:21 -06:00
software_installers.go Generate SHA from file if FMA sha is no_check (#30558) 2025-07-07 11:05:19 -05:00
software_installers_test.go Generate SHA from file if FMA sha is no_check (#30558) 2025-07-07 11:05:19 -05:00
teams.go Microsoft Compliance Partner backend changes (#29540) 2025-06-11 14:22:46 -03:00
teams_test.go Updating golangci-lint to 1.61.0 (#22973) 2024-10-18 12:38:26 -05:00
users.go Activity feed webhooks backend (#19261) 2024-05-24 11:25:27 -05:00
users_test.go Allow setting user roles during JIT provisioning (#10193) 2023-03-01 20:18:40 -03:00
vpp.go add activity for automatic install policy creation (#29409) 2025-05-28 17:58:58 -04:00
vulnerabilities.go Updated /api/v1/fleet/vulnerabilities/{cve} endpoint (#21463) 2024-08-21 12:52:28 -05:00