Skip to content

Win zero-touch: hold hosts until the IdP sign-in #60905

In progress

Description

@getvictor

Related user story

#57796

Task

Today, Fleet starts sending settings and software to a Windows host as soon as it enrolls. A zero-touch device enrolls during Windows setup, before anyone has signed in. This sub-issue makes Fleet hold that host until the end user signs in with the IdP, then release it. Only fleetd from the zero-touch package asks for this, so other hosts don't change.

What changes:

  • Fleet holds a host that asks for zero-touch when it enrolls, if Windows MDM is on and the license is Premium. There's no setting.
  • A held host gets no profiles, scripts, or software. Lock, unlock, MDM enrollment, and the managed local admin still work.
  • Only an IdP sign-in that started with the host's own single-use token releases it. Fleet then records the end user and starts what was waiting.
  • The setup status includes device profiles, so setup can wait for them. A failed profile doesn't block setup, the same as on macOS.
  • If no IdP is connected, the sign-in returns its own error, so the page can explain it.
  • If Windows MDM is turned off or Premium ends, fleetd is told to bring back the normal sign-in screen. If the host's fleet requires end user authentication, Fleet still sends nothing without it.
  • The host API returns windows_zero_touch.status: awaiting_sign_in, released, completed, or canceled.
  • Each held host gets a zero_touch_host_added activity.

Out of scope: a setting, and a way to cancel or release a host from Fleet. The draft PR has both, and they're left out.

Open questions

  • License tier. The draft PR requires Premium, but the story doesn't say. Product confirms.
  • Time limit for profiles. Profiles stop blocking setup 15 minutes after the sign-in. The number is a proposal. Product confirms.

Implementation notes: the windows-zero-touch OpenSpec change (#60856). Reference implementation: draft PR #60106.

Condition of satisfaction

  • A held host gets nothing until the IdP sign-in, then gets its fleet's profiles, scripts, and software.
  • Locking a held host works.
  • A sign-in with no token, a wrong token, or a used token doesn't release the host or record an end user.
  • A fleet that requires end user authentication doesn't refuse a zero-touch host, and the host gets nothing before the sign-in. That's also true after Windows MDM is turned off or Premium ends.
  • Moving a held host to another fleet keeps it held. After the sign-in, it gets what the new fleet has.
  • Enrolling again during setup keeps the hold and its token, and adds no second activity. A reinstalled device is held again, with a new token.
  • Setup runs when the end user signs in days after the device enrolled.
  • Setup waits for pending device profiles, including ones Fleet hasn't queued yet. It doesn't wait for failed or user-scoped profiles, past the time limit, or on a host that isn't enrolled in MDM.
  • Hosts that don't ask for zero-touch behave as before.
  • The query that picks hosts for Windows profiles still uses its indexes with a large number of hosts.
  • Integration tests cover these cases, and the audit log reference has the new activity.
  • The story's changes file is added.
  • Fleet accepts a report that an enrollment moved to SYSTEM only from a zero-touch host.

Activity

  1. added this to the 5.1.0 milestone on Dec 4, 2026
  2. added
    ~sub-task
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ~sub-task

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions