Fleet logo
Menu An icon indicating that interacting with this button will open the navigation menu.
Fleet logo An 'X' icon indicating that this can be interacted with to close the navigation menu.

Solutions

a small chevron
Device management

Device management

Remotely manage, and protect laptops and mobile devices.

Orchestration

Orchestration

Automate tasks across devices, from app installs to scripts.

Software management

Software management

Inventory, patch, and manage installed software.

GitOps

Infrastructure as code

See every change, undo any error, repeat every success.

Deployment

Deployment

Run Fleet the way that fits your team.

Extend Fleet

Extend Fleet

Integrate your favorite tools with Fleet.


Customers
Pricing

More

a small chevron
Docs

Docs

Guides

Guides

Support

Support

News

News

Get your license

Get your license

The handbook

The handbook

GitOps for device management

In-person workshop for beginners.

Join us
Get a demo
Solutions A small chevron
Device management

Device management

Remotely manage, and protect laptops and mobile devices.

Orchestration

Orchestration

Automate tasks across devices, from app installs to scripts.

Software management

Software management

Inventory, patch, and manage installed software.

GitOps

Infrastructure as code

See every change, undo any error, repeat every success.

Deployment

Deployment

Run Fleet the way that fits your team.

Extend Fleet

Extend Fleet

Integrate your favorite tools with Fleet.

Customers Pricing
More A small chevron

GitOps for device management

In-person workshop for beginners.

Join us
Docs

Docs

Guides

Guides

Support

Support

News

News

Get your license

Get your license

The handbook

The handbook

Get a demo
{{categoryFriendlyName}}/
{{thisPage.meta.articleTitle}}
search

Rethinking endpoint management: Fleet, osquery and Infrastructure as Code

{{articleSubtitle}}

Last updated on |
The author's GitHub profile picture

Ashish Kuthiala, CMO, Fleet Device Management

Share

Share this article on Hacker News Share this article on LinkedIn Share this article on Twitter

On this page

{{topic.title}}
Docs Docs REST API REST API Guides Guides Get a demoGet a demo
Suggest an editSuggest an edit

Rethinking endpoint management: Fleet, osquery and Infrastructure as Code

{{articleSubtitle}}

Last updated on | The author's GitHub profile picture

Ashish Kuthiala, CMO, Fleet Device Management

Rethinking endpoint management: Fleet, osquery and Infrastructure as Code

Traditional MDM and EDR tools demand blind trust. It’s time to adopt an engineering approach to device management that prioritizes visibility, auditability, and scale

The black box

For decades, IT and security leaders have entered into an uncomfortable bargain with endpoint management vendors. You buy a proprietary "black box" (a Mobile Device Management (MDM) solution or an Endpoint Detection and Response (EDR) agent), install it on your thousands of devices, and hope it does what the sales brochure promised.

You trust that it’s patching correctly. You trust that it’s detecting the right threats. You trust that the vendor’s private API isn’t doing something it shouldn't.

But in an era of zero-day vulnerabilities, distributed workforces, and heterogeneous OS environments, blind trust is no longer a viable strategy. Modern organizations need to move beyond "Click-Ops" (manual, error-prone processes for managing devices via a web GUI) and adopt an engineering-driven approach.

Why embrace automation? Because it’s relatively easy to reverse automation, and very hard to unclick a button.

Implementing this idea requires a fundamental shift in the stack. It means moving away from opaque, proprietary tools and toward a transparent, composable architecture built on three pillars:

  • Comprehensive endpoint visibility
  • API-driven automation
  • Infrastructure as code (IAC) workflows

Here is why forward-thinking IT leaders are rebuilding their endpoint strategy around this open foundation.

The foundation of truth

If you cannot see it, you cannot manage it.

Traditional client-side agents provide a filtered, pre-determined view of device data based on what the vendor thinks is important. Furthermore, the data is often hours or even days old. To manage your configuration, you must know what your complete configuration actually is in real time. This is a solved problem.

osquery changes the paradigm. It is an open-source instrumentation framework that expresses operating system data (Windows, macOS, Linux, ChromeOS) as a high-performance relational database. It allows you to ask questions about your devices using SQLite syntax.

Instead of running complex, brittle PowerShell or bash scripts to check the status of a firewall or look for a rogue process, you write a simple query:

SELECT * FROM firewall_rules;

or

SELECT name, pid FROM processes WHERE name = 'suspicious_binary';

The Value for IT Leaders: osquery provides universal, kernel-level visibility that is vendor-agnostic. It turns endpoint telemetry into structured data that your team already knows how to get and, if they don’t, Fleet makes it easy to upload pre-built queries from trusted sources based on security standards like CIS & the NIST Security Compliance Project. It eliminates the reliance on proprietary vendor dashboards for basic truths about your infrastructure.

The orchestration layer

osquery is powerful, but it is a single-host tool. You cannot manually ssh into 50,000 laptops to run SQL queries. You need a control plane to manage deployments, schedule queries, collect results, and take action. Most importantly, the way you manage the control plane must enable trusted and validated automation of all actions. In order to interact and manage a fleet of devices, the solution must make it easy to automate all changes, which means it needs to expose all the APIs so that automated actions are first-class citizens as much as clicking around in the UI.

This is Fleet.

Fleet is the most widely used open-source control plane for osquery. It is designed to scale from a startup's first ten Macs to an enterprise's 300,000 mixed-OS servers and workstations. Designed and architected as API-first, all of Fleet’s features and functions are available in the GUI and the API.

  • Fleet Free provides the essential rails for querying devices in real-time and piping that data into your SIEM or data lake (like Snowflake, Splunk, or ELK) for analysis.
  • Fleet Premium adds MDM, transforming the stack from purely observational to operational. It allows you to enforce disk encryption, push software profiles, manage updates, and remotely wipe devices - all using the same lightweight agent that provides device visibility.

The Value for IT Leaders: Fleet consolidates your tool sprawl. Instead of separate agents for security visibility, inventory management, and MDM, you have one platform. Because Fleet’s core is open-source, you are never locked into a black box. The API is open, the code is auditable, and the roadmap is transparent.

The management philosophy: Infrastructure as Code (IaC)

This is where the true revolution happens. Managing osquery with Fleet is powerful, but if your admins are still logging into a web console to manually toggle settings for 10,000 users, you have only incrementally improved a broken process.

To achieve true scale and reliability, endpoint management must be treated like software engineering. It must be managed as Infrastructure as Code (IaC). In an IaC workflow with Fleet, you don't define a security policy by clicking buttons in a GUI. You define it in a simple text file that humans can read called a ‘YAML’ file, stored in a Git repository.

For example, a policy requiring FileVault encryption on macOS can be controlled with a checkbox in the Fleet GUI. But, that checkbox can also be declaratively controlled with a text file containing the FileVault configuration. Add the text file into a version-controlled git repository. When that code is merged to the main branch, a CI / CD pipeline automatically uses Fleet’s API via fleetctl to push that configuration out to managed devices in scope.

The Value for IT Leaders: IaC introduces engineering rigor to IT operations.

  1. Auditability & Compliance: Every change to your device configurations is tracked in Git. You know exactly who changed a firewall policy, when they did it, and why (via the commit message). Compliance audits go from weeks of archaeology to hours of reviewing Git history.
  2. Peer Review & Safety: No lone admin can accidentally push a bad configuration that bricks half your fleet on a Friday afternoon. Changes require pull requests and peer reviews by senior engineers before they touch production devices.
  3. Disaster Recovery & Repeatability: If your management environment went down today, could you rebuild it exactly as it was? With IaC, your entire configuration is backed up in Git. You can spin up a new environment and re-apply your state in minutes.

The shift to engineering-driven IT

The combination of the ground truth from osquery, Fleet’s scalable orchestration, and the rigor of Infrastructure as Code provides something traditional vendors cannot: complete control over your environment. Fleet transforms device management from manual labor in the GUI into proactive infrastructure engineering with all the benefits that GitOps entails: your teams can see every change, undo any error, and repeat every success.

There is a catch: moving to code-based management requires new skills. How do you enable a standard IT admin to write SQL queries and YAML configurations without needing the expertise of a seasoned DevOps engineer?

In part 3 of this series, we will explore how emerging AI coding assistants and event-driven automation bridge that gap, making this powerful stack accessible to teams of any size.

Fleet logo
Solutions Device management Orchestration Software management Integrations Pricing
Documentation Support Docs API Release notes Get your license
Company About Trust Jobs Logos/artwork Why open source?
a small checkmarkSOC2 Type 2 Creative Commons Licence CC BY-SA 4.0
© 2026 Fleet Inc. Privacy
Slack logo GitHub logo LinkedIn logo X (Twitter) logo Youtube logo Mastadon logo