[API/YAML] Windows setup experience: If software fails cancel setup#42046
Merged
rachaelshaw merged 1 commit intodocs-v4.85.0from Mar 19, 2026
Merged
[API/YAML] Windows setup experience: If software fails cancel setup#42046rachaelshaw merged 1 commit intodocs-v4.85.0from
rachaelshaw merged 1 commit intodocs-v4.85.0from
Conversation
…docs-v4.85.0 backport)
40 tasks
| - `manual_agent_install` specifies whether Fleet's agent (fleetd) will be installed as part of setup experience. Applies to macOS only (default: `false`) | ||
| - `enable_end_user_authentication` specifies whether or not to require end user authentication when the user first sets up their host. Applies to macOS, Windows, Linux, iOS/iPadOS, and Android. | ||
| - `require_all_software` specifies whether to cancel setup on a macOS host if any software installs fail. | ||
| - `require_all_software_macos` specifies whether to cancel setup on a macOS host if any software installs fail. |
Member
There was a problem hiding this comment.
Dev note
- Rename
require_all_softwaretorequire_all_software_macos. Keep old field name for backwards compatibility.
Member
There was a problem hiding this comment.
TODO @marko-lisica: error message in case user have both require_all_software and require_all_software_macos specified.
|
|
||
| ```yaml | ||
| macos_setup: | ||
| setup_experience: |
Member
There was a problem hiding this comment.
Dev note
Rename macos_setup to setup_experience, and keep the old name for backwards compatibility.
rachaelshaw
approved these changes
Mar 19, 2026
This was referenced Apr 6, 2026
getvictor
added a commit
that referenced
this pull request
Apr 6, 2026
<!-- 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 -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #40788 to the
docs-v4.85.0branch.Related to:
Changes
macos_setuptosetup_experiencein YAML configuration docsrequire_all_softwareintorequire_all_software_macosandrequire_all_software_windowsparametersrequire_all_software_windowsparameter to the REST API docsBuilt for Marko Lisica by Kilo for Slack