fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.01k stars 418 forks source link

Automatically enroll new ABM devices in Fleet #9459

Closed lukeheath closed 1 year ago

lukeheath commented 1 year ago

Story

As an IT admin, I want the new Macs I order through Apple Business Manager to automatically enroll (fleetd installed) to Fleet so I can manage them.

Tasks

zwass commented 1 year ago

Do we have a plan already for how this will be done? I have an idea:

Have Orbit read configuration information from macOS profiles on startup. That way we can make a single global fleetd package that can be signed and notarized and deployed to DEP enrolled hosts for all Fleet deployments. Then when a new DEP device enrolls we can first push a profile with the necessary configs (probably enroll_secret, fleet_url, update channels, maybe some others?) and then install the fleetd package with InstallEnterpriseApplication.

Does this make sense? Happy to chat about this more next week.

roperzh commented 1 year ago

@zwass I really like that idea, I have updated the spec with your suggestion, do you mind taking a look to make sure we're on the same page? please feel free to directly edit if you want!

zwass commented 1 year ago

Yes, those specs look right, thank you! I think using the profiles tool is a fine approach for now. Later we can use cgo to hit the native API if we feel it's necessary.

lukeheath commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @mna @roperzh

lukeheath commented 1 year ago

Hey team! Please add your planning poker estimate with Zenhub @mna @roperzh

lukeheath commented 1 year ago

@roperzh @zwass - Following up on this item in the specs:

Send a InstallEnterpriseApplication command to install a pre-built signed fleetd that will be hosted in a location to be coordinated with @zwass

@zwass Do you have a ticket tracking this? @spokanemac asked about it.

cc @noahtalerman

zwass commented 1 year ago

Created https://github.com/fleetdm/fleet/issues/10865. I can do it easily if we determine what params we want for the package. Let's take any discussion of that to the other issue.

roperzh commented 1 year ago

hey @noahtalerman , as part of this, we need to send a configuration profile to hosts, does this name looks good? any thoughts?

image

noahtalerman commented 1 year ago

@roperzh looks good! Minor nit: Can we use "Fleetd configuration" (capital F, lowercase c) instead? I'm trying to make sure we're consistent with sentence casing: https://fleetdm.com/handbook/marketing/content-style-guide#sentence-case

It looks like we need to update the name of the enrollment profile too: "Fleet Device Management Inc enrollment" (lowercase e)

noahtalerman commented 1 year ago

@roperzh are we adding a description for the profile too? I imagine it would be something like "Default configuration for the fleetd agent."

What do you think?

roperzh commented 1 year ago

@noahtalerman that sounds good! I'll update the enrollment profile too. Thank you!

xpkoala commented 1 year ago

It appears that osquery might not be installed correctly. /opt/orbit/secret.txt contains no key on hosts enrolled this way. /opt/orbit/nudge-config.json also doesn't exist, but this might be a side effect of the previous issue.

fleet-release commented 1 year ago

New Macs enroll fast, Nature's breeze guides them to Fleet, Effortless control.

noahtalerman commented 1 year ago

@noahtalerman make sure we tell users that we install fleetd automatically for new Macs.

noahtalerman commented 1 year ago

@noahtalerman we need a section in the macos setup docs that explains that we install fleetd automatically and a profile to configure it.

noahtalerman commented 1 year ago

we need a section in the macos setup docs that explains that we install fleetd automatically and a profile to configure it.

Open PR is here: https://github.com/fleetdm/fleet/pull/11260

fleet-release commented 1 year ago

New Macs from the sky, Enroll with Fleet seamlessly, Nature's touch in tech.