Fleet is the lightweight, programmable telemetry platform for servers and workstations. Get comprehensive, customizable data from all your devices and operating systems — without the downtime risk.
Go to file
Lucas Manuel Rodriguez 5ec4fab440
Orbit to set --database_path when invoking osquery to retrieve system info (#10308)
#9132

The actual fix for the empty hosts is adding the `--database_path`
argument in the initial `osqueryd -S` invocation when retrieving the
UUID. Osquery attempts to retrieve the UUID from OS files/APIs, when not
possible (which is what happens on some linux distributions), then it
resorts to generating a new random UUID and storing it in the
`osquery.db`. The issue was Orbit's first invocation of `osqueryd -S`
was not using the same `osquery.db` as the main daemon invocation of
`osqueryd`.

I'm also adding a `hostname` + `platform` to the orbit enroll phase so
that if there are any issues in the future we can avoid the "empty" host
and have some information to help us troubleshoot.

## How to reproduce

On Linux, osquery reads `/sys/class/dmi/id/product_uuid` to load the
hardware UUID.
Some Linux distributions running on specific hardware or container
environments do not have such file available.
The way to reproduce on a Linux VM is to do the following:
```sh
$ sudo su
# chmod -r /sys/class/dmi/id/product_uuid
```
which will turn the file inaccessible to root.

## Checklist

- [X] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- ~[ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)~
- ~[ ] Documented any permissions changes~
- [X] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [X] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [X] Added/updated tests
- [x] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [x] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-03-13 18:54:18 -03:00
.github Observers can observe team settings (#10447) 2023-03-13 15:34:39 -03:00
.storybook Replace import-glob-loader with node-sass-glob-importer (#10171) 2023-03-01 12:33:42 -08:00
.vscode implement mdm scripts page UI (#10092) 2023-03-06 15:03:48 +00:00
articles Blog image update (#10437) 2023-03-13 13:01:01 -05:00
assets check disk encryption key from host details page (#9691) 2023-02-14 17:00:36 +00:00
changes Orbit to set --database_path when invoking osquery to retrieve system info (#10308) 2023-03-13 18:54:18 -03:00
charts/fleet Prepare for 4.28.0 (#10103) 2023-02-27 15:19:15 -08:00
cmd Orbit to set --database_path when invoking osquery to retrieve system info (#10308) 2023-03-13 18:54:18 -03:00
cypress Fleet UI: Consistent URL validation (#9806) 2023-02-22 09:05:38 -05:00
docs Contributor docs: Fix broken link (#10431) 2023-03-13 17:03:08 -04:00
ee CIS 18.9.4.x to cis 18.9.8.x (#10451) 2023-03-13 17:19:21 -03:00
frontend allow to start Fleet MDM without configuring Apple BM (#10453) 2023-03-13 18:16:11 -03:00
handbook Fix obvious typo in why-this-way.md (#10436) 2023-03-12 20:02:41 -05:00
infrastructure Dogfood returns (#10345) 2023-03-08 16:38:53 -05:00
mdm_profiles Add mdm_profiles codeowner, update profile for demo (#10429) 2023-03-10 13:28:38 -06:00
orbit Orbit to set --database_path when invoking osquery to retrieve system info (#10308) 2023-03-13 18:54:18 -03:00
pkg Add automation for win-10 cis policies and fix yaml (#10289) 2023-03-03 16:11:04 -03:00
proposals Add proposal for fleetctl trigger (#8127) 2022-12-02 10:05:16 -06:00
schema Add macOS CIS 5.3.1 (#10397) 2023-03-10 12:29:14 -05:00
scripts add on-call script (#4781) 2022-03-28 10:00:33 -06:00
server Orbit to set --database_path when invoking osquery to retrieve system info (#10308) 2023-03-13 18:54:18 -03:00
terraform Add ability to use sidecars (#10287) 2023-03-03 13:50:48 -05:00
test/upgrade Only set public IPs on host.public_ip and add docs (#9900) 2023-02-17 13:00:56 -03:00
tools Allow setting user roles during JIT provisioning (#10193) 2023-03-01 20:18:40 -03:00
website Blog image update (#10437) 2023-03-13 13:01:01 -05:00
.dockerignore Added support to read jwt and mysql password from a file (#141) 2021-01-04 07:58:43 -08:00
.eslintrc.js add linting for react hooks to warn missing deps (#7551) 2022-09-06 15:02:10 +01:00
.gitattributes Windows friendly changes after walking through getting started guide (#1441) 2021-07-21 20:49:44 -04:00
.gitignore Feature 9386: Parse the Mac Office release notes for vulnerability processing (#9993) 2023-02-24 14:18:25 -04:00
.gitpod.yml Add gitpod yml (#2915) 2021-11-19 10:03:56 -03:00
.golangci.yml Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
.goreleaser-snapshot.yml use image containing installer deps for fleetdm/fleetctl (#7040) 2022-08-24 12:10:16 +00:00
.goreleaser.yml use image containing installer deps for fleetdm/fleetctl (#7040) 2022-08-24 12:10:16 +00:00
.npmignore Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
.prettierignore move policies to own constants and allow escaping on DEFAULT_POLICIES (#8121) 2022-10-07 14:31:57 +01:00
.prettierrc.json add prettier and have it format all fleet application code (#625) 2021-04-12 14:32:25 +01:00
.trivyignore 8241 trivy ignore file action (#8345) 2022-10-31 10:50:29 -04:00
CHANGELOG.md Prepare for 4.28.0 (#10103) 2023-02-27 15:19:15 -08:00
CODE_OF_CONDUCT.md Remove @fleetdm.com emails from fleetdm/fleet repo (#882) 2021-05-27 17:19:14 -04:00
CODEOWNERS make DRIs match (#10426) 2023-03-10 11:37:42 -06:00
docker-compose.yml Add guide on how to simulate slow connections to redis and mysql (#9140) 2023-01-03 17:29:40 -03:00
Dockerfile Pin image SHA in Dockerfiles (#10205) 2023-03-01 11:37:00 -08:00
Dockerfile-desktop-linux Pin image SHA in Dockerfiles (#10205) 2023-03-01 11:37:00 -08:00
Dockerfile.osquery-perf Pin image SHA in Dockerfiles (#10205) 2023-03-01 11:37:00 -08:00
go.mod Bump github.com/kevinburke/go-bindata from 3.22.0+incompatible to 3.24.0+incompatible (#10186) 2023-02-28 19:28:12 -08:00
go.sum Bump github.com/kevinburke/go-bindata from 3.22.0+incompatible to 3.24.0+incompatible (#10186) 2023-02-28 19:28:12 -08:00
LICENSE Update LICENSE (#10) 2020-11-04 19:57:51 -06:00
Makefile update mockimpl version to allow concurrent mock calls (#9989) 2023-02-21 16:36:06 -03:00
manifest.yml.cloudgov.example cloud.gov deployment (#7611) 2022-09-07 13:30:06 -05:00
package.json Replace import-glob-loader with node-sass-glob-importer (#10171) 2023-03-01 12:33:42 -08:00
postcss.config.js Upgrade Bourbon to 5.1.0 and fix deprecation warnings (#1973) 2019-01-03 12:46:55 -08:00
README.md Move CONTRIBUTING.md into docs/contributing (#7283) 2022-08-26 12:14:43 -05:00
SECURITY.md Editing security policy (#5333) 2022-05-05 20:29:06 -05:00
tools.go Update notarization to use notarytool (#7962) 2022-09-27 08:25:42 -07:00
tsconfig.json Feat/update query doc sidepanel (#8214) 2022-10-14 17:45:57 +01:00
webpack.config.js Replace import-glob-loader with node-sass-glob-importer (#10171) 2023-03-01 12:33:42 -08:00
yarn.lock Bump loader-utils from 1.4.0 to 1.4.2 (#10234) 2023-03-01 12:39:57 -08:00

Fleet logo, landscape, dark text, transparent background

Website   News   Report a bug

Run Tests   Go Report Card   CII Best Practices   Twitter Follow  

Fleet is the lightweight, open source telemetry platform for servers and workstations. Deploy osquery with Fleet to get comprehensive, customizable data from all your devices and operating systems without the downtime risk.

Try Fleet

Head to fleetdm.com/try-fleet to fire up a one-off cloud instance for quickly trying out Fleet.

Now what?

Check out the Learn how to use Fleet doc to learn how to add your device to Fleet and how to ask questions about your devices by running queries.

Team

Fleet is independently backed and actively maintained with the help of many amazing contributors.

📖 In keeping with our value of openness, Fleet Device Management's company handbook is public and open source. You can read about the history of Fleet and osquery and our commitment to improving the product. To upgrade from Fleet ≤3.2.0, just follow the upgrading steps for the latest release from this repository (it'll work out of the box).

Documentation

Documentation for Fleet can be found here.

Community

Chat

Please join us in the #fleet channel on osquery Slack.

Contributing

Contributions are welcome, whether you answer questions on Slack/GitHub/StackOverflow/Twitter, improve the documentation or website, write a tutorial, give a talk, start a local osquery meetup, troubleshoot reported issues, or submit a patch. The Fleet code of conduct is on GitHub.

Banner featuring a futuristic cloud city with the Fleet logo