fleet/server/mdm/maintainedapps
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
..
testdata Additional CA validation (#27169) 2025-03-19 08:27:55 -05:00
apps.json fix: add back queries removed during merge with main 2024-12-03 16:11:08 -05:00
installers.go Generate SHA from file if FMA sha is no_check (#30558) 2025-07-07 11:05:19 -05:00
installers_test.go Generate SHA from file if FMA sha is no_check (#30558) 2025-07-07 11:05:19 -05:00
sync.go software categories: backend (#28479) 2025-05-02 11:41:26 -04:00
testing_utils.go Update FMA refreshing logic to remove apps that were removed upstream (#27594) 2025-03-28 14:04:08 -04:00