Commit Graph

10132 Commits

Author SHA1 Message Date
Victor Lyuboslavsky
2520fc2179
Reduce server load for fleetd upgrade (#15606)
📺 Loom:
https://www.loom.com/share/9e17848963574af3aa10d426b450bcd0?sid=f8078293-c7e1-4864-a8a3-4cec996971f5

#15476 
#15540 
#15542

After upgrading fleetd, customer-blanco saw a spike in traffic and a
spike in DB connections. These fixes attempt to reduce the traffic and
DB load when fleetd is upgraded.

On the server, added fleet/device/{token}/ping endpoint to be used by
agents to check their token.

On the agent:
- Removed call to fleet/orbit/device_token unless token needs to be
updated.
- Changed call to fleet/device/{token}/desktop with a less resource
intensive call to fleet/device/{token}/ping
- Removed call to fleet/orbit/ping

# 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/` 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.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2023-12-13 14:31:48 -06:00
Joanne Stableford
2d7a4e7c69
Adding in new CSA teammate (#15628)
...
2023-12-13 13:47:40 -06:00
Sarah Gillespie
a59699d207
Add no team option to automatic enrollment modal (#15616) 2023-12-13 12:27:14 -06:00
Joanne Stableford
654783b715
Update min macOS for fleetctl-workstations to 14.2 (#15622) 2023-12-13 13:08:31 -05:00
Robert Fairburn
e064b58724
ECR Repo and images for osquery in dogfood-free (#15516) 2023-12-13 11:52:57 -06:00
Roberto Dip
6353849004
update Go to 1.21.5 (#15592)
for https://github.com/fleetdm/fleet/issues/15584

# 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/` 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
2023-12-13 13:57:12 -03:00
Martin Angers
f0f1d592d7
Add note in changelog for DB migation time (#15624) 2023-12-13 11:52:59 -05:00
Luke Heath
89b71b863b
Revert "Enforce codecov requirements" (#15586) 2023-12-13 10:52:37 -06:00
Luke Heath
66e1852ab5
Add left padding to link in ABM expired message (#15603) 2023-12-13 10:51:45 -06:00
Joanne Stableford
fb25b5c564
Update min macOS for workstation canary group to 14.2 (#15588) 2023-12-13 11:28:39 -05:00
Roberto Dip
fbaa479d01
pre-calculate host counts for software titles (#15601)
found during the load test, this addresses a performance issue with
software titles.

# 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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2023-12-13 12:48:57 -03:00
Martin Angers
dd123eacde
Update migration to avoid running DML on table without a PK (#15620) 2023-12-13 10:27:40 -05:00
George Karr
f1159172df
Update NudgePreview.tsx (#15470) 2023-12-13 09:06:58 -06:00
Mike McNeil
3c220e874c
Update scrollable-tweets.component.js (#15617) 2023-12-13 00:09:20 -06:00
Sarah Gillespie
7155d83b6f
Adjust tooltip style for query page side panel (#15614) 2023-12-12 20:48:31 -06:00
Jacob Shandling
7938f70adf
UI – Fix 2 small unreleased bugs (#15613)
Fix bugs where:
- global queries cache would be set unfiltered and then overridden
filtered as desired – filtered them in the same way whether fetched as
inherited or current team
- avoid blindly adding the `host_display_name` column to query report
exports if not desired

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-12-12 18:44:08 -08:00
Sarah Gillespie
1681603bae
Fetch host count for software version detail page (#15610) 2023-12-12 17:28:41 -06:00
Martin Angers
3e4f36a20e
Add checksum hash unique column to software table. (#15598) 2023-12-12 17:51:58 -05:00
Luke Heath
6ee5d87d48
Add loading spinner to host details' scripts tab (#15607) 2023-12-12 16:34:53 -06:00
Jacob Shandling
0967256cce
Per Host Query Reports (#15591)
## Addresses #14415 
<img width="1281" alt="image"
src="https://github.com/fleetdm/fleet/assets/61553566/568f367b-abaa-4c27-b68d-763af9c6a104">
<img width="1277" alt="image"
src="https://github.com/fleetdm/fleet/assets/61553566/07043268-d68a-46c7-94cf-47adb2b86ae3">

- [X] Changes file added for user-visible changes in `changes/` 
- [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 @mostlikelee and @jacobshandling
2023-12-12 14:32:41 -08:00
Sarah Gillespie
6b4f85fd92
Add browser type to software titles UI and API (#15604) 2023-12-12 16:21:44 -06:00
Jacob Shandling
ea27f88580 Merge branch '14415' of https://github.com/fleetdm/fleet into 14415 2023-12-12 13:27:59 -08:00
Jacob Shandling
076f286c86 update prop name to sync new code from main 2023-12-12 13:27:41 -08:00
mostlikelee
1af37c8c85 changelog 2023-12-12 14:22:02 -07:00
Jacob Shandling
df1d279a92 Merge branch 'main' into 14415 2023-12-12 13:13:56 -08:00
Noah Talerman
b60c91cb19
Fix link on Organization settings > SSO page (#15581)
- Add redirect so that we can change the link later w/o breaking it in
the UI
2023-12-12 16:13:35 -05:00
Gabriel Hernandez
9d65a2dc8c
Implement UI for new software pages (#15579) 2023-12-12 15:03:33 -06:00
Noah Talerman
053582fd88
Update disk encryption docs (#15496)
- Associated w/ this story: #15600 
- Update docs now that disk encryption enforcement is cross platform
(Windows story here: #12577)
- Remove section about resetting a password w/ disk encryption key to
reduce doc content. Remove this link from the UI
2023-12-12 15:58:26 -05:00
Luke Heath
7a1797f621
Linux and Windows MDM scripts (#15501) 2023-12-12 14:52:27 -06:00
Jacob Shandling
fd1b1c50b5
14415 - Loose ends 2 (#15595)
## Addresses #15011 

- Sort host details > queries list by query name
- Update shape of expected response from HQR call to schedulable query
API
- Shorten the 'clipped' banner's message for Observers and Observers+
- Update tooltips in RevealButton

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

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-12-12 11:32:16 -08:00
Noah Talerman
65f5404565
Fix link on Windows automatic enrollment page (#15580)
For this bug: #15566

- Add redirect so that we can change the link later w/o breaking it
2023-12-12 14:31:20 -05:00
Sarah Gillespie
13a5f3c205
Fix button text wrapping in UI for Settings > Integrations > MDM. (#15594) 2023-12-12 13:12:50 -06:00
Jacob Shandling
3a482f56b7 Merge branch 'main' into 14415 2023-12-12 10:37:41 -08:00
Jahziel Villasana-Espinoza
e1eb017249
fix: send back queries but ignore them on the FE (#15507)
> #15009 

# 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/` or
`orbit/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
2023-12-12 10:36:33 -08:00
Roberto Dip
2ed3026819
Add pagination meta to software versions endpoint (#15550) 2023-12-12 12:24:20 -06:00
Luke Heath
47e8e57d5a
Revert "Add Windows scripts and set scripts table width" (#15590) 2023-12-12 12:20:41 -06:00
Luke Heath
8c548afe31 Add Windows scripts and set scripts table width 2023-12-12 12:04:23 -06:00
Jacob Shandling
5bea0c5cb9
Call real API (#15589)
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-12-12 10:03:34 -08:00
Tim Lee
f1acd30bcf
15380 extend hosts api (#15421) 2023-12-12 08:40:57 -07:00
mostlikelee
5c12b0a6ae Merge branch 'main' into 14415 2023-12-12 07:59:10 -07:00
Tim Lee
e981b7be84
hotfix: fix return codes on enterprise tests (#15578) 2023-12-12 07:58:47 -07:00
Mike Thomas
b33a579c4f
Website fleet mdm landpage update (#15549)
- Updated device management content
- Add new images
- Removed the "ClickOps or DevOps" section from the home page

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2023-12-12 15:08:58 +09:00
Tim Lee
33999cddae
15381 host query report api (#15441) 2023-12-11 15:33:31 -07:00
Eric
bc3ace02b4
Website: Update macOS link on /try-fleet (#15573)
Changes:
- Updated the link to the macOS host on /try-fleet/explore-data to go to
results for the `account_policy_data` table.
2023-12-11 15:53:25 -06:00
Jacob Shandling
d2359675d4 Merge branch 'main' into 14415 2023-12-11 13:52:45 -08:00
Eric
2db26cd44e
Website: Add "Explore data" (#15400)
Closes: #14847

Changes:
- Added two new pages:
- `/try-fleet/explore-data`: A page where users can select a host, and
be taken to a page where they can see query results for that host.
- `try-fleet/explore-data/:platformName/:tableName`: A page where users
can see the contents of osquery tables on hosts.
     - The view-action for this page will:
- Redirect unauthenticated users to the /try-fleet/login page. (With a
query parameter that will tell the login/register pages to redirect
users back to this page)
        - Get information for hosts on a specified team.
- Build a filtered list of osquery tables that are compatible with the
host and have queries that will run on a specified host.
- Get the latest query results for a specified query/osquery table for
the specified host, and reorder the results to match the order of the
columns in the osquery schema.
- Updated build-static-content to add information about osquery tables
for the /explore-data pages to
`sails.config.builtStaticContent.osqueryTables`.
- Added 5 new config variables:
- `sails.config.custom.fleetBaseUrlForQueryReports`: The URL of the
Fleet instance used for the /explore-data pages
- `sails.config.custom.fleetTokenForQueryReports`: An API token for the
Fleet instance used for the /explore-data pages
- `sails.config.custom.teamApidForQueryReports`: the API ID of the team
that the hosts listed on the explore-data page are in.
- `sails.config.custom.queryIdsByTableName`: A dictionary containing
key:value pairs where each key is the name of an osquery table, and the
value is the API ID of the query that gets results for this table in a
Fleet instance. This is stored in the custom configuration to make it
easily editable (If we ever need to add or remove queries
- `sails.config.custom.hostIdsByHostPlatform`: A dictionary containing
key:value pairs where each key is a type of operating system, and the
value is the API ID of a Host.
- Updated the `/try-fleet` redirect to go to `/try-fleet/explore-data`
- Updated the "try it out" button links to go to `/try-fleet`
- Updated /try-fleet/login and /try-fleet/register to send users who are
redirected to the page via the /explore-data page to the page they had
tried to navigate to when they log in/create an account.


I'm creating this as a PR as a draft. It will be ready to merge when we:
- [x] Add hosts to the "Explore data (fleetdm.com) [DO NOT DELETE]" team
- [x] Create queries for every compatible osquery table for the "Explore
data (fleetdm.com) [DO NOT DELETE]" team.
- [ ] Add a `sails.config.custom.queryIdsByTableName` config variable
with the query IDs for the queries created in the previous step
- [ ] Add `sails.config.custom.hostIdsByHostPlatform` config variable
with the real host IDs/platforms
2023-12-11 15:29:30 -06:00
Andrew Baker
08b9f58c68
Drew bakerfdm podcast episode 7 (#15568) 2023-12-11 16:24:40 -05:00
Luke Heath
ccea52897a
Add new open/close bugs and product group KPIs (#15554) 2023-12-11 14:38:51 -06:00
Luke Heath
b6ec1f7786
Enforce codecov requirements (#13931) 2023-12-11 13:23:42 -06:00
Sharon Katz
da755ea2ea
Bug-15430 change timeout errror code to 408 (#15552) 2023-12-11 12:34:59 -05:00