Commit graph

72 commits

Author SHA1 Message Date
Dante Catalfamo
5392cf6def
Make sure we correct agent options config on all endpoints (#25899)
#24038

Follow up to #25199

Bug caught by @xpkoala in QA, key corrections were only applying to team
agent configs, not global.
2025-01-30 14:32:58 -05:00
Brock Walters
af475c7d6d
Update ioreg.yml (#25889)
Added example query.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2025-01-30 12:42:04 -05:00
Lucas Manuel Rodriguez
88a58041a9
Add update_url column to orbit_info (#25532)
Adding new column to ease TUF migration QA and deployment.

![Screenshot 2025-01-17 at 8 24
56 AM](https://github.com/user-attachments/assets/3565fa4c-4bb4-4218-8122-5f3402e02d99)
2025-01-17 11:52:21 -03:00
Lucas Manuel Rodriguez
9daa5a2950
Add docs for the nftables fleetd table (#24749)
#15651

We missed to add the docs in the original PR:
https://github.com/fleetdm/fleet/pull/23941

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-12-13 21:34:24 -03:00
Rebecca Cowart
bf83f0309b
Update windows_eventlog.yml (#24711)
Stray quotation in example query

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-12-12 15:31:32 -06:00
Andrea Scarpino
12a92f3407
doc: firefox_preferences works on linux and windows (#23967)
Solves #23955

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [ ] Added/updated tests
- [ ] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
- [ ] If database migrations are included, checked table schema to
confirm autoupdate
- For database migrations:
- [ ] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [ ] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ ] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
- [ ] Manual QA for all new/changed functionality
- For Orbit and Fleet Desktop changes:
- [ ] Orbit runs on macOS, Linux and Windows. Check if the orbit
feature/bugfix should only apply to one platform (`runtime.GOOS`).
- [ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2024-11-20 16:46:07 -06:00
Brock Walters
d84fd349d5
Update groups.yml (#23828)
Added new example query.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-11-15 14:25:32 -05:00
Lucas Manuel Rodriguez
4b4fc976a2
Add team_identifier to macOS software (#23766)
Changes to add `team_identifier` signing information to macOS
applications on the `/api/latest/fleet/hosts/:id/software` API endpoint.

Docs: https://github.com/fleetdm/fleet/pull/23743

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [X] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [X] Added/updated tests
- [X] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes
- [X] If database migrations are included, checked table schema to
confirm autoupdate
- For database migrations:
- [X] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [X] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ X Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
- [X] Manual QA for all new/changed functionality
- For Orbit and Fleet Desktop changes:
- [X] Orbit runs on macOS, Linux and Windows. Check if the orbit
feature/bugfix should only apply to one platform (`runtime.GOOS`).
- [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)).

---------

Co-authored-by: Tim Lee <timlee@fleetdm.com>
Co-authored-by: Ian Littman <iansltx@gmail.com>
2024-11-15 14:17:04 -03:00
Rachael Shaw
4175df17ee
Remove note about using the certificates table sparingly (#23700)
Looks like the bug was fixed:
https://github.com/fleetdm/fleet/issues/13065
2024-11-12 12:06:12 -06:00
Harrison Ravazzolo
446200bdf2
Override osquery core schema, incorrect support for Windows (#23361)
The core osquery schema incorrectly lists Windows as a supported os for
this query:https://osquery.io/schema/5.12.1/#yara_events

Adding a yaml override to reflect this in Fleet's docu

---------

Co-authored-by: Harrison John <harrisonjohn@Harrisons-MacBook-Pro.local>
Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-29 15:16:59 -07:00
Mike McNeil
89d53330f5
Update process_open_sockets.yml (#23033)
Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-22 12:41:33 -05:00
Manoj Guglani
f9c0b2444b
Update account_policy_data.yml (#22684)
Missing comma between u.username, u.uid causes the query to fail with
this error (Note the query is only applicable to Mac OS):

```
osquery> SELECT u.username u.uid, strftime('%Y-%m-%dT%H:%M:%S', a.password_last_set_time, 'unixepoch') AS password_last_set_time, a.failed_login_count, strftime('%Y-%m-%dT%H:%M:%S', a.failed_login_timestamp, 'unixepoch') AS failed_login_timestamp FROM account_policy_data AS a CROSS JOIN users AS u USING (uid) ORDER BY password_last_set_time ASC;
Error: near ".": syntax error
```
Output after fixing the missing , (removed part of the output):

```
osquery> SELECT u.username, u.uid, strftime('%Y-%m-%dT%H:%M:%S', a.password_last_set_time, 'unixepoch') AS password_last_set_time, a.failed_login_count, strftime('%Y-%m-%dT%H:%M:%S', a.failed_login_timestamp, 'unixepoch') AS failed_login_timestamp FROM account_policy_data AS a CROSS JOIN users AS u USING (uid) ORDER BY password_last_set_time ASC;
+--------------+------------+------------------------+--------------------+------------------------+
| username     | uid        | password_last_set_time | failed_login_count | failed_login_timestamp |
+--------------+------------+------------------------+--------------------+------------------------+
| nobody       | 4294967294 |                        |                    |                        |
| root         | 0          |                        |                    |                        |
```
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-07 11:05:17 -05:00
Eric
0fb66e58af
Schema: show iptables table documentation (#21956)
Related to: https://github.com/fleetdm/fleet/issues/15651

Changes:
- Removed `hidden: true` from the YAML override file for the iptables
table.
- Regenerated osquery_fleet_schema.json
2024-09-10 14:30:30 -05:00
Brock Walters
80e37fb787
Update cryptoinfo.yml (#21762) 2024-09-03 12:24:24 -05:00
Sam Pfluger
7ae1fe9527
Add note from the community (#20433)
Co-authored-by: Eric <eashaw@sailsjs.com>
2024-07-12 18:15:43 -05:00
Marko Lisica
5555f7c651
Design for TCC access fleetd table (#19719)
Table design for:  #18222

Old PR: #18224

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
Co-authored-by: Eric <eashaw@sailsjs.com>
Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-06-20 11:53:15 -05:00
Victor Lyuboslavsky
accf7b5ae7
windows_updates doc update (#19899)
#19057 
windows_updates doc update
2024-06-20 10:18:39 -05:00
Dante Catalfamo
cf39a24778
Mdm bridge docs warning (#19785)
Adds docs for changes made to table as part of #19709
2024-06-17 15:19:48 -05:00
Eric
44680cbe15
(2024-06-11) Regenerate osquery_fleet_schema.json (#19653)
Closes: #19611

Changes:
- Regenerated `schema/osquery_fleet_schema.json`
2024-06-11 11:37:30 -05:00
Dante Catalfamo
ecef0d4263
fleetd_logs table (#19489)
#18234
2024-06-11 11:02:50 -04:00
Eric
ba6ae8f8db
Regenerate osquery_fleet_schema.json (#19488)
Closes: #19439
2024-06-04 10:47:47 -05:00
Eric
02437a098e
Schema: change default block scalar used in schema override files (#19296)
Closes: #19271
Closes: #19286

Changes:
- Updated the example in the schema folder readme
- Updated the block scalar used in Fleet's osquery override
documentation (`>-` » `|-`) and removed extra newlines
- Updated the block scalar used in URLs used to create new yaml override
files
- Regenerated osqeury_fleet_schema.json
2024-05-27 18:18:56 -05:00
Eric
9eb8508b30
Schema: Update version of osquery schema (#18890)
Changes:
- Updated the version of osquery schema that is merged with Fleet's
overrides: (5.11.0 » 5.12.1)
- Regenerated schema/osquery_fleet_schema.json
2024-05-13 16:52:01 -05:00
Victor Lyuboslavsky
c77dea8c2b
Schema documentation for new SOFA tables. (#18853)
#18832 
Schema documentation for new SOFA tables from macadmins extension.
2024-05-09 10:50:16 -05:00
Eric
85a8647700
Schema: Regenerate osquery_fleet_schema.json (#18781)
Closes: #18761

changes:
- Regenerated `schema/osquery_fleet_schema.json`
2024-05-06 16:42:00 -05:00
Eric
5db04b937c
Regenerate osquery_fleet_schema.json (2024-04-30) (#18658)
Closes: #18600

Changes:
 - regenerated `schema/osquery_fleet_schema.json`
2024-04-30 16:55:01 -05:00
Eric
084ddb5dd8
Regenerate osquery_fleet_schema.json (2024-04-22) (#18476)
Closes: #18442
2024-04-22 18:10:10 -05:00
Eric
c2f333aebb
Schema: Update schema overrides to only use one YAML block scalar (#18351)
Closes: #18240

Changes:
- Updated the schema override files to use only one YAML block scalar
(`>-`)
- Updated the template yaml included in the link to create a new
override file in get-extended-osquery-schema helper to use the `>-`
block scalar
- regenerated osquery_fleet_schema.json
2024-04-16 18:35:23 -05:00
Victor Lyuboslavsky
a27634deb1
Updating orbit_info schema. (#18135)
#17148
#17361 

In orbit_info table, added the following fields:
- desktop_version
- scripts_enabled
2024-04-10 09:50:26 -05:00
Eric
766d08e767
Schema: remove requires_user_context related code, regenerate schema json. (#18091)
Changes:
- Updated the `build-static-content` script to remove support for the
`requires_user_context` column attribute
- Updated `get-extended-osquery-schema` to not set a
`requires_user_context` value in the merged schema json.
- Regenerated `schema/osquery_fleet_schema.json`
2024-04-05 15:39:02 -05:00
Zach Wasserman
e3deceeb6d
Add parse_json, parse_jsonl, parse_xml, and parse_ini tables to fleetd (#18035)
For #17577

# 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/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [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. (performed only on macOS)
2024-04-03 09:13:04 -07:00
Eric
2ae85ac2c4
Website: update get-extended-osquery-schema helper to ensure all column types are lowercase. (#17931)
Closes: #17883

Changes:
- Updated the `get-extended-osquery-schema` helper to set the `type`
values of columns of tables with Fleet overrides to be lowercase.
- Regenerated `osquery_fleet_schema.json`
2024-04-01 12:05:42 -05:00
Eric
286d6f86eb
Update examples in osquery_fleet_schema.json (#17932)
Related to: https://github.com/fleetdm/fleet/issues/17861

Changes: 
- Updated `get-extended-osquery-schema` helper to remove `examples`
values from the merged schema JSON if they are an empty array.
- regenerated `osqeury_fleet_schema.json`
2024-03-29 19:41:13 -05:00
Eric
1f1f0ce4d0
Update Fleet schema overrides (string » text) & regenerate osquery_fleet_schema.json (#17884)
Changes:
- Updated the type of all override columns with `type:string` to
`type:text`
- Regenerated `osquery_fleet_schema.json`
2024-03-27 08:17:28 -05:00
Eric
a450bf2c58
Website: update get-extended-osquery-schema helper (#17190)
Closes: https://github.com/fleetdm/fleet/issues/17188

Changes:
- Updated `get-extended-osquery-schema.js` to only include the last
example from the osquery schema if a table has an override file that
does not contain an `examples` value.
- Regenerated osquery_fleet_schema.json with the correct `examples`
values
2024-03-01 12:48:06 -06:00
Eric
73a5d6ba99
Regenerate osquery_fleet_schema.json (2024-02-21) (#17063)
Changes:
- Ran the `generate-merged-schema` script to regenerate
`schema/osquery_fleet_schema.json`
2024-02-21 15:58:33 -06:00
Eric
8878613277
Update vscode_extensions override file & regenerate merged schema (#16829)
Changes:
- Added a newline before the code block in the example of the
`vscode_extensions` table override to fix the formatting of the page
generated for this table (see screenshot)
- Ran the `generate-merged-schema` script to regenerate
`osquery_fleet_schema.json`
<img width="860" alt="image"
src="https://github.com/fleetdm/fleet/assets/7445991/1f6f1b37-1240-4d16-b102-f67ecff5fb28">
2024-02-14 13:40:50 -06:00
Eric
98e825e434
Update osquery schema version, regenerate merged schema JSON (#16597)
For https://github.com/fleetdm/fleet/issues/13891

Changes:
- Updated the version of the osquery schema used to generate
osqeury_fleet_schema.json (`5.9.1` » `5.11.0`)
- Removed the table override file for the `atom_packages` table (It was
removed from the osquery schema, our override file was previously hiding
the table)
- Ran the `generate-merged-schema` script to regenerate
osquery_fleet_schema.json
2024-02-05 17:30:41 -06:00
Eric
b133e51a59
Regenerate osquery_fleet_schema.json (#16072)
Changes:
- Ran the `generate-merged-schema` script to regenerate
`osquery_fleet_schema.json`
2024-01-11 15:34:08 -06:00
Lucas Manuel Rodriguez
bd16acb66e
Adding doc changes for configuring fleetd channels remotely (#15872)
#13825

Creating a separate PR to not block on docs review.
2024-01-04 10:23:51 -03:00
Eric
cda91571b8
2023-12-06 Regenerate osquery_fleet_schema.json (#15474)
Changes:
- Ran the `update-merged-schema` script to regenerate
`schema/osquery_fleet_schema.json`
2023-12-08 17:00:12 -06:00
Eric
597dafa187
(2023-11-17) Regenerate osquery_fleet_schema.json (#15189)
Changes:
- Regenerated `schema/osquery_fleet_schema.json`
2023-11-17 13:23:11 -06:00
Rachael Shaw
ae669e1749
2023-10-17 Update osquery schema version & regenerate merged schema (#14436)
When running a live query recently, I noticed some columns in the
results that we didn't have documented, and realized we weren't using
the latest osquery schema version when regenerating the merged schema.

According to the docs, [we support the latest version of
osquery](https://fleetdm.com/docs/using-fleet/enroll-hosts#supported-osquery-versions),
so figure we ought to update the schema version to the latest.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2023-10-26 18:04:23 -05:00
Eric
1d9299dea2
Regenerate osquery_fleet_schema.json (2023-09-26) (#14161)
Changes:
- Ran the `generate-merged-schema` script to regenerate
`/schema/osquery_fleet_schema.json`
2023-09-27 16:29:58 -05:00
Eric
2de35a0ff7
Schema: Hide iptables table. (#14054)
Changes:
- Created an override file for the `iptables` table
- Regenerated merged schema.
2023-09-26 16:49:48 -05:00
Eric
45e1b56bb1
Website: sort merged osquery schema (#13959)
Closes: #13722

Changes:
- Updated the `get-extended-osquery-schema` helper to sort the merged
schema by table name.
- Regenerated `/schema/osquery_fleet_schema.JSON`
2023-09-15 18:40:57 -05:00
Eric
51485beb40
Regenerate osquery_fleet_schema.json (#13723)
Changes:
- Ran the `generate-merged-schema` script to regenerate
`schema/osquery_fleet_schema.json`.
2023-09-05 16:29:39 -05:00
Eric
08af35d294
Schema: Regenerate merged schema JSON (#13311)
Changes
- Ran the `generate-merged-schema` script to regenerate
`schema/osquery_fleet_schema.json`.
2023-08-15 18:35:19 -05:00
Lucas Manuel Rodriguez
810eb58b95
macOS CIS: Use find command (exposed as fleetd table) instead of relying on the osquery core file table (#12560)
#10292, #12554

When scanning tens of thousands of files for permissions, using the
`find` command exposed as a fleetd table is more performant than trying
to use the `file` table. This change caused the watchdog to *stop*
killing osquery because of exceeding memory or CPU limit.

- [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~
- ~[ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)~
- ~[ ] 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.
- ~[ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).~
2023-06-29 16:22:41 -03:00
RachelElysia
4c073278a8
ChromeOS tables: Add min chrome version to table schemas (#12540) 2023-06-27 14:16:51 -07:00