Commit graph

2481 commits

Author SHA1 Message Date
Jordan Montgomery
cfbc9d8829
Fix osquery detection of vscode extensions (#33523)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #33520 

Recent changes to the users query accidentally introduced an ambiguous
column error with the vscode extensions query. Fixed the SELECT
statement in vscode_extensions to properly account for this

No changes file added since this is an unreleased bug and the feature
has a changes file

# 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/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/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] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes

## Testing

No automated tests in this area so no tests to update/add

- [x] Added/updated automated tests
- [x] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [x] QA'd all new/changed functionality manually

For unreleased bug fixes in a release candidate, one of:

- [x] Confirmed that the fix is not expected to adversely impact load
test results
2025-09-26 15:22:45 -04:00
Noah Talerman
65989fbfc6
API reference: Which software supports last_opened (#33459)
Context:
https://github.com/fleetdm/fleet/issues/31268#issuecomment-3319200507

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2025-09-26 12:37:36 -05:00
Noah Talerman
375d7e8046
API reference: Which software supports hash_sha256 (#33506)
Context:
2025-09-26 12:35:42 -05:00
Sarah Gillespie
128a71eb4f
Add backend support for Smallstep CA (#32872)
Co-authored-by: Jordan Montgomery <elijah.jordan.montgomery@gmail.com>
Co-authored-by: Magnus Jensen <magnus@fleetdm.com>
2025-09-25 10:03:36 -05:00
Steven Palmesano
4a47305353
Change Mac script references from .ps1 to .sh (#33407)
Our example shows a Mac app using .ps1 scripts, but Macs don't use
PowerShell.
2025-09-24 10:12:34 -05:00
Mike Thomas
4bddc81357
Update why-fleet.md (#33257)
Closes https://github.com/fleetdm/fleet/issues/22566

I added scope transparency information based on @JoGSal 's suggestion
from [this issue](https://github.com/fleetdm/fleet/pull/20726/files).
The content was rewritten in Fleet's plain, straight-talking tone to
match the rest of the page, e.g., short sentences and active voice.

I also removed some instances of `<0xa0>` non-breaking spaces from the
section above.
2025-09-24 08:02:08 +09:00
Dante Catalfamo
834ab62ed0
Use new pacman table to ingest software from arch linux (#33238)
#32862
2025-09-23 10:28:32 -04:00
Victor Lyuboslavsky
2c38e97c97
Research doc for Okta conditional access. (#33057)
**Related issue:** Resolves #32766
2025-09-23 09:06:52 -05:00
Noah Talerman
a543a9c49e
Don't use contributor configuration (#33314)
Same language as the contributor API docs:
https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/api-for-contributors.md

Context:
https://github.com/fleetdm/fleet/issues/32669#issuecomment-3321434569
2025-09-22 17:48:16 -05:00
Martin Angers
72571a9f8e
Feature branch for Android config profiles (#32976) 2025-09-22 11:29:57 -04:00
Eric
26e552f2c0
Docs: Update host vital queries in queries.yml (#33228)
Changes:
- Updated host vital queries in queries.yml to include changes from
134c74a94b,
e9f595a2e2,
50151f6dee,
11097befb4,
4994571c22,
39dc7a3772, and
4dfe95304b.
2025-09-19 17:32:56 -05:00
Eric
048fcd13ed
Website: Add controls library pages (#33143)
Related to: https://github.com/fleetdm/confidential/issues/10737

Changes:
- Added `docs/scripts.yml`, a YAML file that contains a list of scripts
- Added `docs/mdm-commands.yml`, a YAML file that contains Windows and
Apple MDM commands
- Added `/mdm-commands`, a page that contains a list of MDM commands for
Windows and Apple commands
- Added `/scripts`, a page that contains a list of scripts
- Updated the `<docs-nav-and-search>` component to have a link to the
controls library, and reordered the lists.
- Updated the build static content script to add the scripts and mdm
commands from scripts.yml and mdm-commands.yml to the website's
`builtStaticContent` configuration.
- Updated the layout of the os-settings page to match the latest
wireframes
2025-09-19 12:02:55 -05:00
Noah Talerman
b6b012250a
Update design-qa-considerations.md (#33135) 2025-09-18 17:51:00 -05:00
Victor Lyuboslavsky
27d35524c8
Updated dev instructions for building a signed fleetd-base installer. (#33131) 2025-09-18 17:50:00 -05:00
George Karr
f9f5b6ab7e
Update sprint kickoff guidelines for clarity (#33123) 2025-09-18 17:48:48 -05:00
Lucas Manuel Rodriguez
134c74a94b
Add initial Arch Linux support (#33096)
For #32859.

We can ignore the "Dependency review" failure in
[CVE-2023-32698](https://github.com/advisories/GHSA-w7jw-q4fg-qc4c)
because we already have the rules to ignore it (we are not vulnerable).
I'm not updating nfpm to latest because it would require further changes
on all deb/rpm generation (source code breaking changes on the golang
interfaces).

---

<img width="448" height="151" alt="screenshot-2025-09-11_08-38-20"
src="https://github.com/user-attachments/assets/4c00b960-568a-48d9-8098-308c8ab8916f"
/>
<img width="391" height="73" alt="screenshot-2025-09-11_08-37-40"
src="https://github.com/user-attachments/assets/dec6ea22-31f8-4930-b067-0b04b4ec2b5f"
/>

<img width="759" height="428" alt="Image"
src="https://github.com/user-attachments/assets/0a76d070-4709-4a35-8e6e-caf869473d28"
/>
<img width="1178" height="634" alt="Image"
src="https://github.com/user-attachments/assets/98e6fa2a-ba07-4a55-81aa-ad747f1c57b9"
/>
<img width="1388" height="830" alt="Image"
src="https://github.com/user-attachments/assets/19d36bad-d01d-4130-b271-38bea2534833"
/>
<img width="933" height="930" alt="Image"
src="https://github.com/user-attachments/assets/1d6a369b-65d7-46a4-98a6-e6f0b29be2c8"
/>
<img width="2241" height="693" alt="Image"
src="https://github.com/user-attachments/assets/d8f98e97-f027-4c1c-ae5d-c4fa3b592a20"
/>

- [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/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] Added/updated automated tests
- [X] QA'd all new/changed functionality manually
2025-09-18 18:55:31 -03:00
Marko Lisica
ba43b23a20
Remove object that's not implemented (#33156)
This is mistakenly documented. Probably this got deprioritized at some
point.
2025-09-18 16:52:08 -05:00
Lucas Manuel Rodriguez
b3adf3455e
Add support for Windows setup experience software (#33134)
For #32542.

- [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/guides/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)

## Testing

- [X] Added/updated automated tests
- [X] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)
- [X] QA'd all new/changed functionality manually
2025-09-18 16:39:15 -03:00
Noah Talerman
3d0a0639f6
YAML reference docs: Built-in variables (#33085)
Add `$FLEET_VAR_HOST_HARDWARE_SERIAL`

Looks like we added this variable as part of [this
sub-task](https://github.com/fleetdm/fleet/issues/26609) but we didn't
documented it.
2025-09-17 11:53:23 -05:00
Noah Talerman
d9cadccee7
Update design-qa-considerations.md (#33072) 2025-09-17 09:54:20 -05:00
Noah Talerman
03e785d1f2
Supported host operating systems (#33063)
Add RHEL. Fleet supports RHEL today. We have users/customers with RHEL
hosts enrolled.
2025-09-16 19:05:16 -04:00
Scott Gress
5718a42637
ADR-0006: Replace no team with default team (#32883) 2025-09-16 12:54:21 -05:00
Allen Houchins
fccdd8c152
Clean up "Compliance exclusions" references (#32969)
- https://github.com/fleetdm/fleet/issues/32633
2025-09-15 13:38:20 -05:00
Luke Heath
13df3f290d
Add Scrum ritual documentation (#32332) 2025-09-13 21:17:15 -05:00
Victor Lyuboslavsky
f28fa96321
Improving Building Fleet guide. (#32818) 2025-09-11 18:29:00 -05:00
jacobshandling
ee4d4c0a7d
Fix minor inconsistency in agent config overrides docs (#32874)
Only macs would be overridden here

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2025-09-11 12:37:14 -05:00
Rachael Shaw
35eaf7dec5
#29609 API design (add IdP department to host vitals) (#30054)
For #29609

> TODO: check whether IdP data is on "My device" page, and add to
documentation if so
2025-09-11 11:52:42 -05:00
Rachael Shaw
8e05a45680
"setup" (noun) to "set up" (verb) (#32717) 2025-09-11 11:29:30 -05:00
Ian Littman
197c14f722
Add smoke test item, QA considerations for testing Fleet Desktop with Fleet Free (#32805) 2025-09-10 13:53:51 -05:00
Janis Watts
4678a4e883
Update design-qa-considerations.md with responsiveness considerations (#32616) 2025-09-10 13:52:49 -05:00
Noah Talerman
ad68c67874
API reference: Fix broken anchor link (#32687) 2025-09-09 17:59:50 -05:00
Lucas Manuel Rodriguez
4fe2ec58b7
Fix duplicate note and while we're at it some typos under docs/ (#32575)
Fixing the following duplicate note in
`docs/Configuration/yaml-files.md`:
<img width="512" height="630" alt="Screenshot 2025-09-04 at 5 49 05 AM"
src="https://github.com/user-attachments/assets/37229d45-e9b2-4744-9fe1-1c4c54be72b0"
/>

And while we're at it... fixing some typos under `docs/`.
2025-09-09 19:33:18 -03:00
Jonathan Katz
8c66ebbc2f
Update packages_only flag in rest-api.md (#32359)
### why
team_id is a Fleet Premium feature, and packages_only only works with
team_id set, so it should be marked as Fleet Premium too.

#31581
2025-09-09 17:15:43 -05:00
Rachael Shaw
2a901105bf
Docs v4.73.0 (#32682)
Documentation changes for the 4.73.0 release

---------

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
Co-authored-by: Marko Lisica <83164494+marko-lisica@users.noreply.github.com>
Co-authored-by: Ian Littman <iansltx@gmail.com>
Co-authored-by: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com>
Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
Co-authored-by: Magnus Jensen <magnus@fleetdm.com>
Co-authored-by: RachelElysia <rachel@fleetdm.com>
Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com>
Co-authored-by: Lucas Manuel Rodriguez <lucas@fleetdm.com>
Co-authored-by: Scott Gress <scottmgress@gmail.com>
Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2025-09-08 19:09:44 -05:00
Rachael Shaw
bf23533b35
#28390 API design (schedule script) (#30443)
For https://github.com/fleetdm/fleet/issues/28390

---------

Co-authored-by: jacobshandling <61553566+jacobshandling@users.noreply.github.com>
2025-09-08 17:47:56 -05:00
Marko Lisica
f0c0411d10
[Guide update] IdP authentication before BYOD iOS, iPadOS, and Android enrollment (#32475)
Related to:

- #30684

- @noahtalerman: Added a "Variables" section in the YAML reference so we
can link to it.

---------

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
Co-authored-by: Rachael Shaw <r@rachael.wtf>
2025-09-08 10:09:11 -05:00
Ian Littman
0d29f2bfc0
Add custom software icons (#32652)
For #29478, sans GitOps.

---------

Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com>
Co-authored-by: Konstantin Sykulev <konst@sykulev.com>
2025-09-05 17:31:03 -05:00
Noah Talerman
5252cc4291
Don't use contributor API endpoints (#32666)
Context:
https://docs.google.com/document/d/15npT4SkclNm6mQUTGxCtH07HotQ9zTmAyFHjRmRei0I/edit?tab=t.0
2025-09-05 13:55:16 -07:00
Noah Talerman
e06fa6bd07
API reference: Fix broken links (#32510) 2025-09-05 13:11:01 -05:00
Jordan Montgomery
ebd32fa2f4
Hydrant CA followup (#32606)
For #29426
For #30941

We didn't have an activities subtask for Hydrant so some changes related
to them were unfortunately missed and discovered during engineering
test. This addresses that and also fixes one other API issue noticed
where the GET endpoint was not returning the proper timestamps. No
changes file added because the Hydrant story changes file already covers
this feature

# Checklist for submitter

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

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] If paths of existing endpoints are modified without backwards
compatibility, checked the frontend/CLI for any necessary changes

## Testing

- [x] Added/updated automated tests

- [x] QA'd all new/changed functionality manually
2025-09-05 06:37:20 -04:00
Lucas Manuel Rodriguez
29475ab55e
API endpoints for Linux setup experience (#32493)
For #32040.

---

Backend changes to unblock the development of the orbit and frontend
changes.

New GET and PUT APIs for setting/getting software for Linux Setup
Experience:
```
curl -k -X GET -H "Authorization: Bearer $TEST_TOKEN" https://localhost:8080/api/latest/fleet/setup_experience/linux/software?team_id=8&per_page=3000
curl -k -X PUT -H "Authorization: Bearer $TEST_TOKEN" https://localhost:8080/api/latest/fleet/setup_experience/linux/software -d '{"team_id":8,"software_title_ids":[3000, 3001, 3007]}'
```

New setup_experience/init API called by orbit to trigger the Linux setup
experience on the device:
```
curl -v -k -X POST -H "Content-Type: application/json" "https://localhost:8080/api/fleet/orbit/setup_experience/init" -d '{"orbit_node_key": "ynYEtFsvv9xZ7rX619UE8of1I28H+GCj"}'
```

Get status API to call on "My device":
```
curl -v -k -X POST "https://localhost:8080/api/latest/fleet/device/7d940b6e-130a-493b-b58a-2b6e9f9f8bfc/setup_experience/status"
```

---

- [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/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [X] Added/updated automated tests
- [X] Where appropriate, [automated tests simulate multiple hosts and
test for host
isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing)
(updates to one hosts's records do not affect another)

- [x] QA'd all new/changed functionality manually

## New Fleet configuration settings

- [X] Verified that the setting is exported via `fleetctl
generate-gitops`
- [X] Verified the setting is documented in a separate PR to [the GitOps
documentation](https://github.com/fleetdm/fleet/blob/main/docs/Configuration/yaml-files.md#L485)
- [X] Verified that the setting is cleared on the server if it is not
supplied in a YAML file (or that it is documented as being optional)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
  - Added Linux support for Setup Experience alongside macOS.
- Introduced platform-specific admin APIs to configure and retrieve
Setup Experience software (macOS/Linux).
- Added device API to report Setup Experience status and an Orbit API to
initialize Setup Experience on non-macOS devices.
- Setup Experience now gates policy queries on Linux until setup is
complete.
- New activity log entry when Setup Experience software is edited
(includes platform and team).

- Documentation
- Updated audit logs reference to include the new “edited setup
experience software” event.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-04 12:58:47 -03:00
Eric
ee655a6953
Docs: Update broken README links, remove unused folder (#32370)
Closes: #32361

Changes:
- Updated links in the `docs/Deploy` folder's README
- Removed the `docs/Using Fleet` folder.
2025-09-03 16:18:18 -05:00
Noah Talerman
3a6ef84b82
Revert API reference (#32407)
- @noahtalerman: We shipped https://github.com/fleetdm/fleet/pull/29956
into but we haven't shipped the user story yet:
  - #29727

So that changes aren't actually live in Fleet.
2025-09-02 14:40:36 -05:00
Kitzy
b96c80c1ce
Docs: Fix invalid SQL join in VS Code extensions query (#32495)
The existing query used a CROSS JOIN with USING(uid), which is not valid
SQL in Fleet/osquery/SQLite and prevented the query from being saved.

This change replaces the CROSS JOIN with a standard JOIN ... ON ...
clause. The explicit ON form was chosen for clarity:

- Makes the join condition (u.uid = vs.uid) explicit to readers
- Avoids the subtle column-merging behavior of USING

This preserves the intended behavior (joining users with their installed
VS Code extensions) while ensuring the query runs correctly in Fleet.
2025-09-02 14:16:04 -05:00
Kitzy
178ebc7077
Docs: Fix invalid SQL join in Fleet query (#32494)
The existing query used a CROSS JOIN with USING(id), which is not valid
SQL in Fleet/SQLite and resulted in a syntax error when saving the
query.

This change replaces the CROSS JOIN with a standard JOIN ... ON ...
clause. The explicit ON form was chosen for clarity:

- Makes the join condition (c.id = p.id) obvious to readers
- Avoids the subtle column-merging behavior of USING

This preserves the intended behavior (joining containers with their
processes by ID) while ensuring the query can be saved and run correctly
in Fleet.
2025-09-02 14:15:43 -05:00
Rachael Shaw
6a64cf8da0
#30879 YAML changes (#31542)
For #30879

---------

Co-authored-by: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com>
Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2025-08-29 14:54:27 -05:00
Noah Talerman
c8ff6c4c77
Supported operating systems: Amazon Linux (#32045)
- @noahtalerman: During #g-software design review on 2025-08-15, we
learned that Fleet builds and tests against Amazon Linux

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2025-08-27 13:05:26 -05:00
Dhruv Trivedi
431decc3ce
fix: standardize team_id handling in policy activities (#32151)
handles the edge case mentioned in QA Notes #27689 and
- Use consistent *int64 for TeamID across all policy activity types 
- Fix JSON omitempty issue causing team_id: 0 to be omitted(to fix a
small copy test bug in Frontend)

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually

Current Output
<img width="639" height="166" alt="image"
src="https://github.com/user-attachments/assets/ee17b3ee-65c9-430f-ae3b-3c350f7e20f9"
/>
<img width="647" height="524" alt="image"
src="https://github.com/user-attachments/assets/9bc01988-ccca-4ea4-84bf-3a15f35ba428"
/>

---------

Co-authored-by: Scott Gress <scottmgress@gmail.com>
2025-08-27 08:43:36 -05:00
Noah Talerman
58eb8332a4
Supported operating systems: Android 13+ (#32258)
12 is EOL: https://endoflife.date/android
2025-08-26 18:00:37 -05:00
Ian Littman
d7b7ba4c61
Document binary hash visibility in host software API endpoint (#32243)
This was added a few fleetd/Fleet server releases ago; lack of docs was
an oversight at that point.

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2025-08-26 18:00:03 -05:00