Commit Graph
11855 Commits
Author SHA1 Message Date
Mike McNeil 618bca80f5 Make Eric DRI of more things (#18929) 2024-05-10 17:16:46 -05:00
Eric 4b9f561332 Vulnerability dashboard: Update update-reports script. (#18919)
Related to: https://github.com/fleetdm/confidential/issues/6523

Changes:
- Updated the vulnerability dashboard's update-reports script to
continue if a Fleet instance returns a 404 response when a request is
sent to get a filtered array of hosts with a vulnerable software item
installed.
2024-05-10 17:16:40 -05:00
Rachael ShawandGeorge Karr 7ca3bda4a4 Recategorize & reorganize /mdm/ REST API endpoints (#18886)
Original PR for API design: https://github.com/fleetdm/fleet/pull/16728

---------

Co-authored-by: George Karr <georgekarrv@users.noreply.github.com>
2024-05-10 16:57:06 -05:00
Victor Lyuboslavsky c3ecae2846 Enable AI autofill for team admin, maintainer, and gitops. (#18920)
#18914 
Enable AI autofill for team admin, maintainer, and gitops.

# Checklist for submitter

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-05-10 16:40:02 -05:00
Eric cde4a61bd3 Website: requested changes from website review (#18923)
Changes:
- Moved the logic for redirecting users to the license dispenser after
they login/sign up into the page scripts for the login and register
pages.
- Updated error messages in the create lead helper
2024-05-10 16:33:45 -05:00
Victor Lyuboslavsky ab3f7ec08f Fixed bug where fleetd-chrome sent multiple read requests to Fleet server at the same time. (#18777)
#18775 
Fixed bug where fleetd-chrome sent multiple read requests to Fleet
server at the same time.

# Checklist for submitter

<!-- 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://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
2024-05-10 15:52:04 -05:00
Robert Fairburn 098790fad5 Update tf-mod-root version on terraform example (#18793) 2024-05-10 15:35:01 -05:00
RachelElysiaandSarah Gillespie ed3c7037a5 [released bug] Fleet UI: Final piece to keep form state when toggling new policy modal (#18917)
Co-authored-by: Sarah Gillespie <73313222+gillespi314@users.noreply.github.com>
2024-05-10 16:30:30 -04:00
Savannah Friend 4047300fcd Handbook/Communications Update note (#18916)
...
2024-05-10 13:36:03 -05:00
Sam Pfluger 14baf248e5 fix formatting on digital experience page (#18911)
...
2024-05-10 11:17:31 -05:00
RachelElysia 73388f547c [unreleased bug] UI: Delete activity dropdown cannot click 60 or 90 days (#18910) 2024-05-10 11:54:13 -04:00
Lucas Manuel Rodriguez b9d38c4b66 Bump osqueryd version to 5.12.2 (#18893) 2024-05-09 19:00:27 -03:00
github-actions[bot]andlucasmrod 5887a69193 Update versions of fleetd components in Fleet's TUF [automated] (#18894)
Automated change from [GitHub
action](https://github.com/fleetdm/fleet/actions/workflows/fleetd-tuf.yml).

Co-authored-by: lucasmrod <lucasmrod@users.noreply.github.com>
2024-05-09 17:25:39 -03:00
Victor Lyuboslavsky ed792e078f Updated release-fleetd-base workflow to use production values. (#18887)
#16347 
Updated release-fleetd-base workflow to use production values.
2024-05-09 14:56:04 -05:00
RachelElysia 9c678b50ff [unreleased bug] UI: Hide add policies button on initial empty state (#18883) 2024-05-09 15:45:02 -04:00
Tim Lee 98ec500761 Bugfix: Policies count filter (#18882) 2024-05-09 13:30:19 -06:00
db070837c8 API design: Create API endpoint to turn disk encryption for teams crossplatform (#18885)
Original PR: https://github.com/fleetdm/fleet/pull/16129

---------

Co-authored-by: Marko Lisica <83164494+marko-lisica@users.noreply.github.com>
Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-05-09 13:57:38 -05:00
Rachael Shaw d1791518a4 Docs: Reduce words in a note (#18884)
published to nvd -> published
2024-05-09 13:43:11 -05:00
Tim Lee ae00942d5c Add backoff and retry to vuln downloads (#18855)
This adds a 3min max retry interval when downloading vulnerability
assets. The need was discovered initially due to frequent test failures
when downloading an unstable Ubuntu Kinetic OVAL feed.
2024-05-09 11:38:12 -06:00
Victor LyuboslavskyandTim Lee 62361329ec Allow applying built-in label specs without modifications. (#18804)
#18477 

Built-in labels can now be applied via `fleetctl apply` as long as no
changes are made to them. This allows the following workflow:
  1. `fleetctl get labels --yaml > labels.yml`
  2. (Optional) Edit/add non-built in labels in labels.yml
  3. fleetctl apply -f labels.yml

# 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://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Tim Lee <timlee@fleetdm.com>
2024-05-09 11:47:50 -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
Lucas Manuel Rodriguez a1f77e01e5 Add support for escaping $ in gitops yamls (#18845)
#18467

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#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.~
- [X] Added/updated tests
- ~[ ] 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`).~
- [X] Manual QA for all new/changed functionality
  - ~For Orbit and Fleet Desktop changes:~
- ~[ ] 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-05-09 12:29:16 -03:00
Eric 4ee1d0b736 Website: update receive-usage-analytics webhook (#18864)
Related to: https://github.com/fleetdm/fleet/issues/18863

Changes:
- Updated the receive-usage-analytics webhook to set a default value for
organization if a Fleet instance reports an empty string as its
organization.
2024-05-09 08:39:49 -05:00
Tim Lee 7bba061ad2 Bugfix: Use hyphen delimiter in resolved_in_version (#17683) 2024-05-09 06:49:55 -06:00
Lucas Manuel Rodriguez e5cdafc075 Add cleanup of idle connections in fleetd (#18857)
#18783

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/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.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2024-05-09 08:54:11 -03:00
Eric c931c33595 Website: Browser compatibility fixes (#18861)
Closes: #18814
Closes: #18821

Changes:
- Updated the animation of the logo-carousel component on Safari v13 and
iOS 13
- Updated the earliest supported version of Opera (v64 » v67)
2024-05-08 17:34:39 -05:00
Victor Lyuboslavsky c2df15dfd1 In GitOps workflow, do dry run on pull request. (#18854) 2024-05-08 14:58:56 -05:00
RachelElysia 184c41fbb6 Fleet UI: Fix reversed accordion text (#18767) 2024-05-08 15:55:18 -04:00
Benjamin Edwards b7e10a3dd8 fleet on render (#18850) 2024-05-08 14:12:40 -04:00
Noah Talerman 10fdee06f0 Eng handbook: Update link and language (#18820) 2024-05-08 12:32:31 -05:00
Tim Lee 74f55f2388 Bugfix: 18843 fix policy host counts (#18846) 2024-05-08 11:23:58 -06:00
RachelElysia c6ffc60f61 [unreleased changes] UI: Copy changes to autofill tooltips (#18816) 2024-05-08 12:37:04 -04:00
Victor Lyuboslavsky abf4837eff Broke apart the hourly host_software count query to reduce the individual query runtime (#18773)
#18221
Broke apart the hourly host_software count query to reduce the
individual query runtime. This fixes timeouts seen when host_software
table has over 25 million records.

I recommend hiding whitespace during review:
<img width="240" alt="image"
src="https://github.com/fleetdm/fleet/assets/2685025/6da9b643-8582-4d2f-bf32-8a1cc38f1032">


# Checklist for submitter

<!-- 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://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-05-08 09:27:17 -05:00
Victor Lyuboslavsky a453979202 Updated macadmins and added new tables. (#18819)
#18808 
Added the new `sofa_security_release_info` and `sofa_unpatched_cves`
tables from `macadmins/osquery-extension` 1.0.1

These tables do not have detailed documentation in macadmins repo, so
not adding documentation at this point.

# Checklist for submitter
<!-- 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://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.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2024-05-08 08:57:16 -05:00
Eric df301648b0 Website: Fix homepage and calendar-banner partial (#18826)
Related to: https://github.com/fleetdm/fleet/issues/18825

Changes:
- Added a missing closing parenthesis to the conditional added to the
homepage in https://github.com/fleetdm/fleet/pull/18822 and the calendar
banner partial in https://github.com/fleetdm/fleet/pull/18824
2024-05-08 01:41:21 -05:00
Mike McNeil ee8bd43c49 Update calendar-banner.partial.ejs (#18824) 2024-05-07 23:28:52 -05:00
Mike McNeilandMike Thomas be364afde8 Update device-management.ejs (#18823)
Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2024-05-08 13:11:51 +09:00
Mike McNeil f1946bc1e7 Website: Update homepage.ejs (#18822) 2024-05-07 22:43:59 -05:00
Noah Talerman 9258f53ca3 Move commands into /lib (#18794)
- Move the send fleetd command to `/lib`
- Update name of send fleetd macOS MDM command to include the platform:
macos
2024-05-07 17:57:02 -04:00
Eric 6e1bb1b85b Website: Fix assertion error in save-questionnaire-progress (#18818)
Related to: https://github.com/fleetdm/fleet/issues/18817

Changes:
- Updated a conditional statement in save-questionnaire-progress to
check the correct variable for a user's previous answer to the "Have you
ever used Fleet?" question
2024-05-07 16:46:00 -05:00
RachelElysia 15ab9a4ed8 15605 Merge Inherited Queries and Policies (#18813) 2024-05-07 16:09:26 -04:00
RachelElysia e8b544d1a1 [unreleased bug] FE: Fix empty types to match empty type returned from Policies APIs (#18795) 2024-05-07 15:45:13 -04:00
RachelElysia 8e9adb0889 [unreleased bug] Fleet UI: Automated queries policies (#18774) 2024-05-07 15:45:05 -04:00
RachelElysia 973b0780d4 Fleet UI: Merge queries/policies tests and polish (#18737) 2024-05-07 15:44:55 -04:00
Tim Lee 24696a6f1b bugfix: 18703 policies filter (#18706)
#18703
2024-05-07 15:44:48 -04:00
Jacob ShandlingandJacob Shandling 1725cb3a0c UI - Merge inherited and and team-scope queries tables (#18596)
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-05-07 15:44:41 -04:00
RachelElysia ba1c783eea Fleet UI: Merge inherited policies into team policies (#18543) 2024-05-07 15:44:28 -04:00
Tim LeeandRachelElysia 270db29328 17744 policies count backend (#18567)
#17744 

This adds the `merged_inherited` query param to
`/teams/:id/policies/count` related to
https://github.com/fleetdm/fleet/pull/18564

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#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

---------

Co-authored-by: RachelElysia <rachel@fleetdm.com>
2024-05-07 15:44:17 -04:00
Tim LeeandRachelElysia 56d02eae2d 17744 policies backend (#18564)
#17744 

This change implements a new query parameter on `/teams/%d/policies` to
merge inherited policies into the policies array instead of listing them
separately. The frontend will key off the existing `team_id` field to
mark policies as "inherited" in theUI.

I opted for an additive approach in adding a datastore method rather
than modifying the existing ListTeamPolicies to avoid a large test
refactor.

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#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

---------

Co-authored-by: RachelElysia <rachel@fleetdm.com>
2024-05-07 15:43:26 -04:00
Tim LeeandRachelElysia 2c45ccb0a1 17745 queries backend (#18582)
#17745 

implement `merge_inherited` on the list queries endpoint to combine team
and inherited queries.

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#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

---------

Co-authored-by: RachelElysia <rachel@fleetdm.com>
2024-05-07 15:43:10 -04:00