Commit Graph
13904 Commits
Author SHA1 Message Date
Luke Heath 833a886846 Add rc- prefix to RC branches (#22673) 2024-10-10 11:36:09 -05:00
Luke Heath b394f4f65b Update docker publish branch rules (#22806) 2024-10-10 11:20:06 -05:00
Tim Lee c462bde176 osquery-perf battery reporting (#22666) 2024-10-10 10:03:21 -06:00
Gabriel Hernandez 97a25810f7 fix typo in fleet maintained apps table empty state (#22812)
relates to #22731

quick typo fix on the fleet maintained apps table empty state
2024-10-10 16:26:57 +01:00
Noah Talerman 976571b4ea Custom OS settings guide: Update language (#22822)
- Remove "device" b/c we refer to these as "configuration profiles"
everywhere else in the docs/product
2024-10-10 08:23:25 -07:00
Gabriel Hernandez e51830f5a1 fix brave software and install icons (#22815)
relates to #22756

fix to improve the brave software icon the the install icon. We use the
SVG source from figma and don't run through our optimiser. Im thinking
this may be making some of the icons jank.
2024-10-10 16:03:51 +01:00
Victor Lyuboslavsky d2d9b82843 Backend patterns.md update (#22821)
Input preprocessing and JSON unmarshaling patterns discussed in recent
Backend syncs.
2024-10-10 10:00:25 -05:00
Ian Littman 0a8a396643 Ensure scripts set in no-team.yml can be used in run-script actions for No Team (#22809)
For #22787

Also revises the spec check to explain that scripts have to be defined
"controls" when used in policies for the same team, with an explicit
call-out for no-team.yml since this fix doesn't support pulling scripts
from the global file. This is because parsing and script-matching
happens early enough that we can't throw an error in the part of the
code where we bail when controls are defined in both no-team and default
files.

To minimize diff size, we're both "passing-by-ref" and returning the
maps-by-team of scripts and installers, though the former would be
sufficient on its own.

# 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. -->

- N/A 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 (sorta)
- [x] Manual QA for all new/changed functionality
2024-10-10 06:12:24 -05:00
Tim Lee 1ecdad24ad Remove panic recovery in CI tests (#22644) 2024-10-09 18:29:14 -06:00
Martin Angers 6224a5f81f Fix: document mdm_enrolled activity limitations for Microsoft enrollments (#22793) 2024-10-09 19:03:09 -05:00
Noah Talerman 98dbeb0737 Update drafting process: expected timeline (#22706)
Prioritized stories might ship in 6 weeks or more. 

We've learned that user stories on the drafting board don't always ship
in ≤6 weeks. Sometimes they're carried over into the next design sprint
because they took longer to design than anticipated or the engineering
capacity is less than expected.
  
Changes:
- Instead of shipping in ≤6 weeks, we want stories to fit into ≤1 design
sprint and ≤1 engineering sprint.
- Product team is still committed to delivering prioritized stories and
notifying requestors if they're deprioritized.
  - Update reasons for de-prioritization
- @noahtalerman: I removed the "ships in ≤6 weeks" from the drafting
board title and description.

Still TODO: Remove "dropped" and "...and thus were de-prioritized" from
[these
KPIs](https://docs.google.com/spreadsheets/d/1Hso0LxqwrRVINCyW_n436bNHmoqhoLhC8bcbvLPOs9A/edit?gid=0#gid=0):
![Screenshot 2024-10-07 at 2 42
45 PM](https://github.com/user-attachments/assets/21f62a75-7d5b-4d44-8775-35c689f03bb9)
- These stories aren't necessarily de-prioritized. In most cases they're
carried over into the next sprint.
2024-10-09 18:48:24 -05:00
Luke Heath d0bc2d34f3 Adjust product group capacity (#22804) 2024-10-09 18:18:51 -05:00
Ian Littman 92bb7ec666 Add policy ID and name to activity for automated software installs, list Fleet as author rather than installer uploader (#22747)
#22424, #22705

TODO: integration test updates

# 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] 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 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
2024-10-09 18:15:56 -05:00
Ian Littman 550de39a7c Switch path resolution for scripts to happen when spec is parsed (#22782)
#22555

This resolves issues where no-team script paths are resolved relative to
the base rather than the file they're in.

There was a similar issue for software packages, which I also fixed.

This also fixes script-poolicy associations when scripts and policy
files automating those scripts need different relative paths.

Test file moves ensure that these fixes are tested.

# 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] 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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-10-09 17:57:08 -05:00
Luke Heath df3d3f356b Move Victor to MDM group (#22798) 2024-10-09 17:49:03 -05:00
Mike ThomasandEric 3dc1dc6f64 Website: Integrations update (#22686)
- Added Homebrew to the list of integrations
- Update descriptions for Oomnitza and Adaptive Shield

Closes https://github.com/fleetdm/fleet/issues/21853 and
https://github.com/fleetdm/confidential/issues/8072

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-09 18:04:00 -04:00
Sam Pfluger 093292aae3 Make Ben Edwards CODEOWNER of render.yml (#22799) 2024-10-09 16:41:02 -05:00
Roberto Dip c02af491c2 fix typos and ensure installers with choices work (#22800)
for #22774

# 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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-10-09 18:24:25 -03:00
Victor Lyuboslavsky 567803955e NDES SCEP proxy backend (#22542)
#21955

<div>
<a href="https://www.loom.com/share/ba40b440502845d2861fd3ec7611bade">
<p>[Demo] Deploy SCEP certificates from Network Device Enrollment
Service (NDES) #21955 - Watch Video</p>
    </a>
<a href="https://www.loom.com/share/ba40b440502845d2861fd3ec7611bade">
<img style="max-width:300px;"
src="https://cdn.loom.com/sessions/thumbnails/ba40b440502845d2861fd3ec7611bade-84f2d88c9f5106c2-full-play.gif">
    </a>
  </div>

Note: A few remaining subtasks will be done in a follow-up PR. See
#22123 for a detailed list.

# 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] 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] Manual QA for all new/changed functionality
2024-10-09 13:47:27 -05:00
cui fliter cc6384eda1 fix: fix slice init length (#22608)
# Checklist for submitter



The intention here should be to initialize a slice with a capacity of
totalTitlesToProcess rather than initializing the length of this slice.

The only demo: https://go.dev/play/p/q1BcVCmvidW
2024-10-09 11:45:46 -05:00
Mike Thomas 5beea75e43 Website - homepage text fix (#22777)
Changed "Chromebook" to "ChromeOS" to be consistent with macOS, Windows,
and Linux, which refer to the operating system, not the device name.
2024-10-09 10:06:42 -05:00
Dale Ribeiro 2b300d13dc Change mentions of 0-day to same-day (#22763)
There's some discussion in the community of the best way to describe
this, but 0-day has associations with vulnerabilities. "Same-day
support" seems to the currently agreed upon phrase other products use.

# 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. -->

- [ ] 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-10-09 10:03:58 -05:00
Gabriel Hernandez a9f4749054 Add count and apps_updated_at data to GET /fleet_maintained_apps and UI (#22778)
relates to #22732

This adds the `counts` and `apps_updated_at` response data on the `GET
/fleet_maintained_apps` endpoint. We then add that to the UI to show the
counts and last time fleet maintained app data has been updated:


![image](https://github.com/user-attachments/assets/bb4d3819-2274-4782-a56b-b1868122cce0)


- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-10-09 15:49:06 +01:00
Lucas Manuel Rodriguez 9eea9ffa7f Clear policy failing counts on hosts that are not running policies (#22665)
#21470

- [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] Added/updated tests
- [X] Manual QA for all new/changed functionality
2024-10-09 08:14:21 -03:00
Mike McNeil d65d78807d Fix circular link (#22776) 2024-10-09 00:04:22 -05:00
Ian Littman 5339794f97 Include the policy ID and name in the "script ran" activity of a script run queued by a policy failure (#22690)
#22692 

# 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] 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 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
2024-10-08 15:45:31 -05:00
Lucas Manuel Rodriguez 580dc13f92 Remove root rotation from releaser.sh script (#22748)
We will move the rotation of the root key to a separate script+guide.
2024-10-08 16:49:14 -03:00
Sarah Gillespie 9c4671a37e Increase max size and remove timeout for software installer uploads (#22725) 2024-10-08 14:27:55 -05:00
jacobshandlingandJacob Shandling 88fe04ebdf UI - Show installer extension in select options (#22720)
## #22656 

- Tighten software `source` and `browser` types
- Include package extensions, when present, in help text
<img width="1271" alt="Screenshot 2024-10-07 at 3 09 47 PM"
src="https://github.com/user-attachments/assets/d401498b-41d0-4afe-8bca-4e52b821939c">

- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-08 12:19:32 -07:00
Noah Talerman 2839fe1187 Story issue template (#22695)
- Add "Objective" and "Original requests" section
  - Remove "Requestor" item b/c it's now covered by original requests
2024-10-08 13:28:38 -05:00
Noah Talerman 5d054adc4f Update sprint kickoff review ritual (#22718)
Update ritual to reflect what actually happens today

- @noahtalerman: I'm responsible for updating the stories pushed KPI. I
do this async using the `~pushed` label
- @noahtalerman: I'm responsible for notifying stakeholders. I do this
async
- @noahtalerman: We haven't been chatting about product group staffing
on this call. I think this is happening separately during 1:1s and other
calls. I chat w/ Luke about this semi-regularly during our 1:1
2024-10-08 13:28:00 -05:00
Mike McNeil dafa1692ee Capitalization: Update fleet-desktop.md (#22730) 2024-10-08 10:35:11 -07:00
Eric 7c14a3cace Website: Move /try-fleet link in /start questionnaire (#22749)
Closes: #22737

Changes:
- Moved the link to /try-fleet to the "What did you think" step of the
/start questionnaire
2024-10-08 11:38:16 -05:00
Roberto Dip c4c8efb5b1 Back-end fixes for FMA (#22742)
for https://github.com/fleetdm/fleet/issues/22733,
https://github.com/fleetdm/fleet/issues/22734 and
https://github.com/fleetdm/fleet/issues/22735

# 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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-10-08 12:49:11 -03:00
Eric 2b651a9e01 [A/B] Website: remove integrations section on homepage (#22746)
Related to: #22738

Changes:
- Commented out the integrations section on the homepage
2024-10-08 10:46:41 -05:00
Gabriel Hernandez e4bf007d9f fix for typo and adding link for empty fleet maintained apps table (#22744)
relates to #22731

fix typo and put in link
2024-10-08 16:30:17 +01:00
Mike Thomas e3a5985b92 updated homepage (#22736)
- updated text in the carousel
- swapped position of integrations and open interface card
- updated links in open by design columns
- swapped IoT icon for iOS
- reduced/made spacings consistent
2024-10-08 10:19:56 -05:00
Roberto DipandZach Wasserman cb35db4b14 tool to perform touchless MDM migrations (#18151)
This started as a proof of concept that was later successfully used to
perform a touchless migration.

# 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)
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2024-10-08 09:48:06 -03:00
Sam Pfluger 4ff5f7a18a Fix workiversary (#22728) 2024-10-07 21:15:30 -05:00
jacobshandlingandJacob Shandling e625e94577 to RC: UI - Limit width of query selection options (#22722) (#22726)
#### This PR already merged to `main`, see
https://github.com/fleetdm/fleet/pull/22722. This is against the release
branch so it can be included in 4.58.0.

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-07 17:25:02 -07:00
jacobshandlingandJacob Shandling 4c661acb19 UI - Limit width of query selection options (#22722)
## #22660 
<img width="1271" alt="Screenshot 2024-10-07 at 1 48 25 PM"
src="https://github.com/user-attachments/assets/5621b0fc-62b5-40c7-8f94-150bb2bf49fb">
- [x] Manual QA for all new/changed functionality

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-10-07 15:02:05 -07:00
Sam Pfluger d2594ec142 Update drive folder for interview feedback (#22721) 2024-10-07 16:48:13 -05:00
Lucas Manuel Rodriguez d0a1e621f1 releaser.sh don't pull when pushing (#22724) 2024-10-07 16:15:47 -05:00
Mike ThomasandEric 25c5e0c760 Update basic-documentation.less (#22688)
- Fixed spaces and sizes of headings
- Table margin-bottom so scroll sits correctly on narrow widths

Closes https://github.com/fleetdm/confidential/issues/8071

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-07 14:38:32 -05:00
Mike Thomas f510946d80 Website "Less friction" text update (#22685)
Closes https://github.com/fleetdm/fleet/issues/21965
2024-10-07 14:10:38 -05:00
Allen Houchins 278b81d7f5 Fixed minor typo in yaml-files.md (#22698)
# 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. -->

- [ ] 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-10-07 12:48:34 -05:00
Manoj GuglaniandEric 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
Mike ThomasandEric 55f5c6aad9 updated psystage images (#22649)
Updated psy-stage images

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-10-07 11:04:32 -05:00
Lucas Manuel Rodriguez d7caf304c2 Add fix for rotate-root-key (#22703)
#22687
2024-10-07 10:49:26 -05:00
Lucas Manuel Rodriguez d9a7d4e5e8 Add missing setup step for root (#22699) 2024-10-07 10:15:16 -05:00