Commit graph

11829 commits

Author SHA1 Message Date
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 McNeil
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 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 Lee
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 Lee
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 Lee
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
RachelElysia
f71aae8c87 Feature branch with changelog only 2024-05-07 15:42:04 -04:00
Rachael Shaw
c145a5eb54
Update default policy templates (#18802)
Updated the descriptions and resolutions for the policy templates to
match the updated help text in the UI (friendlier for calendar events).
See #18670.
2024-05-07 13:39:55 -05:00
Marko Lisica
643a3eb34a
Docs: Reminder for APNs and ABM renewal (#16919)
Improve docs for APNs renewal:
- Learn users that they should check that Common name (CN) of
certificate in APNs portal should match one used in Fleet
2024-05-07 14:04:06 -04:00
Rachael Shaw
2d970f61fb
Add redirect to audit log docs (for use in the Fleet UI) (#18584)
For #14722
2024-05-07 13:03:53 -05:00
RachelElysia
4b66e024b7
Revert "Feature: 15605 merge inherited queries and policies" (#18803)
Reverts fleetdm/fleet#18801
2024-05-07 13:33:49 -04:00
Sharon Katz
e735e51915
Adding changes for patch 4.49.3 (#18769)
Co-authored-by: Luke Heath <luke@fleetdm.com>
2024-05-07 13:32:46 -04:00
RachelElysia
e92e76aee3
Revert "Feature: 15605 merge inherited queries and policies" 2024-05-07 13:30:39 -04:00
RachelElysia
9e66ef6b34
Feature: 15605 merge inherited queries and policies (#18801)
## Issue
Feature branch including all frontend and backend of #15605
2024-05-07 13:07:54 -04:00
RachelElysia
4ea5ea9f00
Revert "Feature: 15605 merge inherited queries and policies" (#18800)
Reverts fleetdm/fleet#18771

(Because of accidental squash and merge of feature dev by 3 of us only has my name on it)
2024-05-07 12:47:12 -04:00
George Karr
db5d553545
Initial fleetctl api command works with GETS and fields (#17971) 2024-05-07 11:22:05 -05:00
Robert Fairburn
ef0414d1ec
Terraform monitoring alert thresholds update (#18790)
This allows customizing alert thresholds for http elb and target 5xx
errors. This will prevent a single 5xx from triggering an alert if we
decide the thresholds should be higher. The default 120 seconds with 0
tolerance will be used if nothing is passed in, but alternatives can be
specified by a threshold and an interval.

closes #18776

---------

Co-authored-by: Luke Heath <luke@fleetdm.com>
2024-05-07 11:17:01 -05:00
RachelElysia
434239e5f9
Feature: 15605 merge inherited queries and policies (#18771) 2024-05-07 12:10:06 -04:00
Victor Lyuboslavsky
9a6b2f655e
Fixed MySQL sort buffer overflow when fetching activities. (#18782)
#12619

Fixed MySQL sort buffer overflow when fetching activities. This issue
happened when activities contained very large details, such as large SQL
queries.

# 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.
- [ ] Added/updated tests
  - Existing tests provide sufficient coverage
- [x] Manual QA for all new/changed functionality
2024-05-07 10:53:24 -05:00
George Karr
0b9ec5e322
Adding cli improvements for run-scripts (#18010) 2024-05-07 10:10:22 -05:00
RachelElysia
7f52999ed5
[unreleased bug] FE: Fix empty types to match empty type returned from Policies APIs (#18795) 2024-05-07 10:32:08 -04:00
Mike McNeil
443bcb92a0
Update endpoint-ops.ejs (#18792)
<img width="562" alt="image"
src="https://github.com/fleetdm/fleet/assets/618009/c2be8d32-7f79-4f1a-b0e6-78c61357aca1">


![image](https://github.com/fleetdm/fleet/assets/618009/ad467372-dd97-41c3-8145-3ce5db3104cf)
2024-05-07 03:41:46 -05:00
Mike McNeil
32ad959c0d
YOLO's price (#18791)
my bad
https://github.com/fleetdm/fleet/pull/18785#issuecomment-2097648373
2024-05-07 02:56:02 -05:00
Mike McNeil
8cebddc72e
Website: Personalization fix (#18785) 2024-05-07 02:38:09 -05:00
Eric
2990d09cb4
Website: update salesforce helper (#18789)
Changes:

- Updated the `update-or-create-contact-and-account` helper to actually
check the OwnerID of the returned account record (if one was found).
2024-05-06 20:51:03 -05:00
Eric
9e988cb216
Website: Fix round robin in update-or-create-contact-and-account.js. (#18788)
Changes:
- Fixed a conditional that was determining if existing account records
should be round-robined or not.
2024-05-06 19:51:21 -05:00
Eric
d0741f276b
Website: Update personalization on /endpoint-ops page. (#18784)
Changes:
- Updated personalization on the endpoint ops page for users who have a
primaryBuyingSituation set to MDM
2024-05-06 18:40:20 -05:00
Mike McNeil
c0d112ec09
Update testimonials.yml: Add second Nico quote (#18786)
adds in quote from #18785
2024-05-06 18:36:20 -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
RachelElysia
749c1270df
[unreleased bug] Fleet UI: Automated queries policies (#18774) 2024-05-06 16:40:19 -04:00
Eric
607ddbe8b1
Website: Update update-or-create-contact-and-account helper to round robin existing account records. (#18778)
Changes:
- Updated the `update-or-create-contact-and-account` helper to round
robin existing Account records assigned to the "Integrations admin"
user.
2024-05-06 15:17:49 -05:00
RachelElysia
486657d08e Fleet UI: Merge queries/policies tests and polish (#18737) 2024-05-06 12:27:06 -04:00