Commit Graph

678 Commits

Author SHA1 Message Date
Roberto Dip
19f995d3b5
only include policies in device endpoints for premium users (#6077)
This removes policy information from `GET /api/_version_/fleet/device/{token}` from non-premium Fleet instances.

Starting the server with `./build/fleet serve --dev --dev_license`

```bash
$ curl -s https://localhost:8080/api/latest/fleet/device/1804e808-171f-4dda-9bec-f695b2f2371a | jq '.host.policies // "not present"'
[
  {
    "id": 3,
    "name": "Antivirus healthy (Linux)",
    "query": "SELECT score FROM (SELECT case when COUNT(*) = 2 then 1 ELSE 0 END AS score FROM processes WHERE (name = 'clamd') OR (name = 'freshclam')) WHERE score == 1;",
    "description": "Checks that both ClamAV's daemon and its updater service (freshclam) are running.",
    "author_id": 1,
    "author_name": "Roberto",
    "author_email": "test@example.com",
    "team_id": null,
    "resolution": "Ensure ClamAV and Freshclam are installed and running.",
    "platform": "darwin,linux",
    "created_at": "2022-05-23T20:53:36Z",
    "updated_at": "2022-06-03T13:17:42Z",
    "response": ""
  }
]
```

Starting the server with `./build/fleet serve --dev`

```bash
$ curl -s https://localhost:8080/api/latest/fleet/device/1804e808-171f-4dda-9bec-f695b2f2371a | jq '.host.policies // "not present"'
"not present"
```
2022-06-07 13:27:13 -03:00
Martin Angers
a23e0c41ff
Support failing policies integrations (#5973) 2022-06-06 10:41:51 -04:00
Luke Heath
9651539f75
Update API token modal to include more information (#5994) 2022-06-02 18:03:03 -05:00
Luke Heath
0530a86b7c
Fix device page redirect on expired token (#5976) 2022-06-02 17:56:26 -05:00
gillespi314
5d68a1fead
Add probability of exploit (EPSS score) to Software page in Fleet Premium (#5925) 2022-06-02 17:32:13 -05:00
Lucas Manuel Rodriguez
33bb7886b6
Add automation for orbit shell (with TUF) (#5856)
* fix old root dir in orbit

* add changes

* Add automation for orbit shell (with TUF)

* Fix workflow syntax

* Add logging to latest fleetctl preview action

* Add changes to fix workflow

* Use macOS host for TUF server and package generation

* Remove copy/paste if clause

* Fix orbit logs on macOS, Ubuntu

* Simplify TUF and generation of packages

* Set enroll secret instead of getting it

* Increase timeouts

* Add step id

* Fixes to the upload/download of artifacts

* Rearrange steps to not lose the downloads

* Fix copy/paste

* Add fleetctl login step

* Add missing config set

* Fix quotes on Windows

* Increase timeout

* Fix job termination

* Disable FLEET_DESKTOP for now

* Checkout repository on macOS

* Fix logs path

* Enable fleet desktop

* Use cancel, nitpick

Co-authored-by: Michal Nicpon <michal@fleetdm.com>
2022-06-01 13:54:16 -03:00
Michal Nicpon
30a864c8d2
Sync CVE scores periodically (#5838) 2022-06-01 10:06:57 -06:00
Roberto Dip
eb8defdcbe
add premium, device authed endpoint to retrieve policies (#5967)
This adds a new device authenticated endpoint, `/api/_version_/fleet/device/{token}/policies` to retrieve the device policies.

An example request / response looks like:

```bash
curl  https://localhost:8080/api/latest/fleet/device/1804e808-171f-4dda-9bec-f695b2f2371a/policies
```

```json
{
  "policies": [
    {
      "id": 3,
      "name": "Antivirus healthy (Linux)",
      "query": "SELECT score FROM (SELECT case when COUNT(*) = 2 then 1 ELSE 0 END AS score FROM processes WHERE (name = 'clamd') OR (name = 'freshclam')) WHERE score == 1;",
      "description": "Checks that both ClamAV's daemon and its updater service (freshclam) are running.",
      "author_id": 1,
      "author_name": "Admin",
      "author_email": "admin@example.com",
      "team_id": null,
      "resolution": "Ensure ClamAV and Freshclam are installed and running.",
      "platform": "darwin,windows,linux",
      "created_at": "2022-05-23T20:53:36Z",
      "updated_at": "2022-05-23T20:53:36Z",
      "response": "fail"
    }
  ]
}
```

Related to [#5685](https://github.com/fleetdm/fleet/issues/5685), in another changeset I will be adding "client" endpoints so we can consume this endpoint from Fleet Desktop
2022-05-31 14:54:43 -03:00
Lucas Manuel Rodriguez
98be6cfc29
Improve Fleet Desktop "My Device" menu item UX at install time (#5915)
* Improve Fleet Desktop My Device link availability

* Use svc.clock and add test

* Revert change and add check for LastEnrolledAt on tests
2022-05-31 12:56:51 -03:00
Michal Nicpon
a652292d0f
Don't return orphaned software from the API (#5840) 2022-05-30 09:23:27 -06:00
Roberto Dip
fc7a045209
ensure previous host membership policies are deleted on enrollment (#5890)
Related to #5776, this ensures that when a host is re-enrolled on a different team we cleanup existing policy memberships in the same way we do when a host is assigned a team through the API.
2022-05-30 10:30:15 -03:00
Roberto Dip
5b1ea0f079
update changelog for v4.15.0 (#5951) 2022-05-27 17:52:06 -03:00
Noah Talerman
d17a8151b4
Prepare for 4.15.0 (#5858)
Co-authored-by: Katheryn Satterlee <me@ksatter.com>
Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2022-05-27 16:50:20 -03:00
gillespi314
baeff6e893
Add validation for pack scheduled query interval (#5918) 2022-05-26 16:54:21 -05:00
Michal Nicpon
6083b180a6
fix duplicate hosts in vuln webhook (#5843) 2022-05-25 11:40:12 -06:00
gillespi314
85c6ca0e5f
Improve precision in reporting of unseen hosts via host status webhook automations (#5889) 2022-05-25 10:54:56 -05:00
Sharvil Shah
0e01b11994
osquery changelog (#5853)
Co-authored-by: Noah Talerman <noahtal@umich.edu>
2022-05-24 19:16:21 +05:30
Luke Heath
b1028465e1
Export hosts to CSV with selected columns (#5841) 2022-05-23 22:46:40 -05:00
gillespi314
78b1a60a0d
Add bundle identifier to Software page UI (#5868) 2022-05-23 17:08:44 -05:00
gillespi314
546986787a
Remove iptables from UI (#5869) 2022-05-23 17:08:30 -05:00
Michal Nicpon
4398644185
Fix root dir detection when using orbit shell (#5844)
* fix old root dir in orbit

* add changes
2022-05-23 16:47:46 -03:00
Martin Angers
56ce1649ee
Add issues and device_mapping output to CSV export (#5864) 2022-05-23 15:35:05 -04:00
gillespi314
bbc1891420
Add ability to see Google Chrome profiles on the Hosts page (#5839) 2022-05-23 14:27:30 -05:00
gillespi314
2db2c16511
Include MIA hosts under total count for Offline hosts (#5854) 2022-05-23 14:11:02 -05:00
Desmi-Dizney
fc3b887481
Editor pass - Include CVE scores when listing software (#5834)
* Editor pass - Include CVE scores when listing software

Editor pass for:
-  https://github.com/fleetdm/fleet/pull/5673

* Update REST-API.md
2022-05-23 10:22:58 -05:00
Michal Nicpon
983f9e59b3
Include CVE scores when listing software (#5673) 2022-05-20 10:58:40 -06:00
Desmi-Dizney
a5ae8dce0e
Editor pass (#5809)
Comma no longer fits our style guide.
2022-05-20 09:32:46 -04:00
gillespi314
8e333509b1
Add license object to GET /fleet/device/{token} response (#5820) 2022-05-19 16:28:49 -05:00
gillespi314
4a4e832d3a
Increase minimum password length to 12 characters (#5712) 2022-05-18 12:03:00 -05:00
Desmi-Dizney
c4962a2463
Editor pass - Add label information to host summary response (#5753)
* Editor pass - Add label information to host summary response

Editor pass for:
-  https://github.com/fleetdm/fleet/pull/5573

* Update issue-4738-host-summary
2022-05-18 10:52:29 -05:00
Luke Heath
c52604cfb7
Add policies to my device page (#5787) 2022-05-18 10:27:03 -05:00
Luke Heath
8eeeebb19f
Add more loading spinners to async actions (#5742) 2022-05-17 14:14:09 -05:00
Desmi-Dizney
34dccc7b16
Editor pass - Support async saving of hosts' last seen time (#5751)
Editor pass for:
-  https://github.com/fleetdm/fleet/pull/5640
2022-05-17 13:59:51 -05:00
Desmi-Dizney
a9c3b55db6
Editor pass - don't clear errors automatically when reading them from Redis (#5748)
This has been edited for content and copy.
2022-05-17 11:44:15 -04:00
Desmi-Dizney
a595ed8dca
Editor pass - Changes - issue-3399-last-used-column (#5763)
This has been edited for content and copy.
2022-05-17 09:56:37 -04:00
Desmi-Dizney
0346c1d392
Editor pass - Changes - issue-4738-host-summary (#5764)
This has been edited for content and copy.
2022-05-17 09:56:16 -04:00
Desmi-Dizney
a703ffeb15
Editor pass - Changes - issue-5103-export-hosts-csv-columns (#5765)
This has been edited for content and copy.
2022-05-17 09:55:55 -04:00
Desmi-Dizney
1bbdbd3a65
Editor pass - Changes - issue-5188-zendesk-ui-added (#5766)
This has been edited for content and copy.
2022-05-17 09:55:32 -04:00
Desmi-Dizney
26d1ae3a39
Editor pass - Changes - issue-5493-5497-safari-table-bugs (#5767)
This has been edited for content and copy.
2022-05-17 09:55:07 -04:00
Desmi-Dizney
698093a1bc
Editor pass - Changes - issue-5504-improve-debug-output (#5768)
This has been edited for content and copy.
2022-05-17 09:54:35 -04:00
Desmi-Dizney
376d10b4c1
Editor pass - Changes - issue-5536-async-host-last-seen (#5769)
This has been edited for content and copy.
2022-05-17 09:53:56 -04:00
Desmi-Dizney
1f5274d8de
Editor pass - Changes - issue-5536-configure-async-tasks-per-task (#5770)
This has been edited for content and copy.
2022-05-17 09:53:29 -04:00
Desmi-Dizney
8c79422a33
Editor pass - Changes - issue-5625-create-new-user-password (#5771)
This has been edited for content and copy.
2022-05-17 09:52:39 -04:00
Desmi-Dizney
42f47e5606
Editor pass - Changes - issue-use-local-system-user-on-msi (#5772)
This has been edited for content and copy.
2022-05-17 09:51:49 -04:00
Roberto Dip
a6a97f31cf
add documentation for debug tools (#5737)
This adds documentation about our debugging endpoints and a brief excerpt about the fleetctl debug command with instructions to generate the archive so we have a place with instructions to which we can direct people.

It also adds the .prof file extension to profiling files, which hopefully clarifies that they are meant to be used by go tool pprof.
2022-05-17 10:00:47 -03:00
Roberto Dip
32cc4c4641
allow fleetctl preview to work with docker compose v1 and v2 (#5755)
This adds compatibility in `fleetctl preview` to work with docker compose (version 2). Since this version was released this April, we are still keeping backwards compatibility and using docker-compose as a fallback.

As v2 is now the recommended version and v1 is deprecated, this also rewords all prompts and help messages to say "docker compose".

Rel: #5746
2022-05-16 18:06:29 -03:00
Martin Angers
e6b90ca8b9
Support per-task configuration for async host processing configuration (#5700) 2022-05-16 09:44:50 -04:00
Lucas Manuel Rodriguez
961f0ffc10
Use LocalSystem user instead of nt authority/system on MSI (#5729) 2022-05-13 06:42:40 -03:00
Luke Heath
a6b2d2413a
Add last used column to host details software table (#5681) 2022-05-12 11:34:46 -05:00
Luke Heath
9b857d0233
Set selection header width on tables, fix queries icon (#5703) 2022-05-12 09:23:06 -05:00