fleet/cmd/fleetctl/fleetctl/testdata/macosSetupExpectedTeam1Empty.yml
Victor Lyuboslavsky c4479c6a84
Add require_all_software_windows config option (#43011)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #42853

This PR simply adds the `require_all_software_windows` config option. It
doesn't use it. The logic to use it will be hooked up in subsequent PRs.

The fleetctl TestIntegrationsPreview test is expected to fail since it
builds the server against main and doesn't know about our new config
option.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

## New Fleet configuration settings

- [x] Verified that the setting is exported via `fleetctl
generate-gitops`
- Not exported. generate-gitops does not export
require_all_software_windows (or require_all_software_macos either). The
generateControls function (generate_gitops.go) outputs a "TODO: update
with your setup_experience configuration" placeholder when any setup
experience config exists, rather than exporting individual field values.
This is a pre-existing limitation that applies equally to both fields -
not something introduced by our PR.
- [x] Verified the setting is documented in a separate PR to [the GitOps
documentation](https://github.com/fleetdm/fleet/blob/main/docs/Configuration/yaml-files.md#L485)
- Yes. PR #42046 adds require_all_software_windows to both docs/REST
API/rest-api.md and docs/Configuration/yaml-files.md.
- [x] Verified that the setting is cleared on the server if it is not
supplied in a YAML file (or that it is documented as being optional)
- Yes, it gets cleared to false - both when setup_experience: is present
without the field, and when setup_experience: is omitted entirely. This
is the same behavior as the existing require_all_software_macos field
- [x] Verified that any relevant UI is disabled when GitOps mode is
enabled
- Covered by #42854 (frontend subtask). The existing macOS checkbox in
InstallSoftwareForm.tsx:271 already checks gitOpsModeEnabled to disable
itself. The Windows checkbox to be added in #42854 will follow the same
pattern.


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

## Summary by CodeRabbit

* **New Features**
* Added a Windows setup experience software requirement setting. When
enabled, Windows devices will cancel the Autopilot setup if any required
software installation fails.

* **Tests**
* Added test coverage for the new Windows software requirement
configuration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-06 17:39:59 -05:00

110 lines
3 KiB
YAML

---
apiVersion: v1
kind: fleet
spec:
fleet:
host_expiry_settings:
host_expiry_enabled: false
host_expiry_window: 0
features:
enable_host_users: false
enable_software_inventory: false
integrations:
google_calendar: null
conditional_access_enabled: null
mdm:
enable_disk_encryption: false
enable_recovery_lock_password: false
windows_require_bitlocker_pin: null
apple_settings:
configuration_profiles: null
android_settings:
configuration_profiles: null
certificates: null
setup_experience:
macos_bootstrap_package: null
enable_end_user_authentication: false
lock_end_user_info: false
apple_setup_assistant: null
macos_manual_agent_install: null
require_all_software_macos: false
require_all_software_windows: false
apple_enable_release_device_manually: false
macos_script: null
software: null
macos_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ios_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ipados_updates:
deadline: null
minimum_version: null
update_new_hosts: null
windows_updates:
deadline_days: null
grace_period_days: null
windows_settings:
configuration_profiles: null
scripts: null
secrets: null
webhook_settings:
host_status_webhook: null
failing_policies_webhook: null
name: tm1
team:
host_expiry_settings:
host_expiry_enabled: false
host_expiry_window: 0
features:
enable_host_users: false
enable_software_inventory: false
integrations:
google_calendar: null
conditional_access_enabled: null
mdm:
enable_disk_encryption: false
enable_recovery_lock_password: false
windows_require_bitlocker_pin: null
macos_settings:
custom_settings: null
android_settings:
custom_settings: null
certificates: null
macos_setup:
bootstrap_package: null
enable_end_user_authentication: false
lock_end_user_info: false
macos_setup_assistant: null
manual_agent_install: null
require_all_software_macos: false
require_all_software_windows: false
enable_release_device_manually: false
script: null
software: null
macos_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ios_updates:
deadline: null
minimum_version: null
update_new_hosts: null
ipados_updates:
deadline: null
minimum_version: null
update_new_hosts: null
windows_updates:
deadline_days: null
grace_period_days: null
windows_settings:
custom_settings: null
scripts: null
secrets: null
webhook_settings:
host_status_webhook: null
failing_policies_webhook: null
name: tm1