Commit Graph
3666 Commits
Author SHA1 Message Date
gillespi314 089f49cc5d Add new activity types for policy-related activities (#4043)
* Add new activities for policy create, delete, and modify, and apply policy spec
* Add PoliciesByID ds method; refactor delete svcs
2022-02-16 09:33:56 -06:00
Martin Angers 80079e4fd7 Fix race in mock datastore for recent_vulns test (#4230) 2022-02-16 09:23:27 -05:00
Nate Felton 68b0a33aee Linting LaunchDaemon to fix formatting (#4180)
This is the equivalent of running the command
`plutil -convert xml1 com.fleetdm.orbit.plist`
2022-02-16 08:31:27 -03:00
Nate Felton bb0b56acb7 Update postinstall to use more modern launchctl commands (#4179)
* Update postinstall to use more modern launchctl comamnds

Fixes #3995

* Switching to service-target specifier

* Removing unnecessary kill flag
2022-02-16 08:31:16 -03:00
Tharun Rajendran ed41c2a445 chore(test): rewritten forgot password form test using rtl (#4121) 2022-02-15 20:35:12 -06:00
eashaw 5f777729f0 Add Q&A signup form to Fleet homepage (#4224)
* create deliver-demo-signup action

* register call to action and styles

* Update homepage.less

* Update deliver-demo-signup.js

* Update homepage.less

* Update homepage.ejs

* Update deliver-demo-signup.js

* update message
2022-02-16 11:15:55 +09:00
Kelvin Oghenerhoro Omereshone 7af7d5f25d Feature/add architecture diagram (#4222)
* feat: add fleet architecture diagram

* feat: add Fleet architecture diagram to deployment guide
2022-02-15 23:37:49 +01:00
Michal Nicpon 15fef92c6e fix format uint (#4221) 2022-02-15 15:03:27 -07:00
Martavis Parker cd275b7435 Homepage platform picker e2e tests (#4207)
* added homepage platform tests to free

* added view hosts tests per platform

* added platform tests for premium

* lint fixes
2022-02-15 12:57:50 -08:00
Guillaume Ross e68ff05243 Cleaning up standard library (#4215)
First cleanup as a part of #4212.
2022-02-15 15:43:16 -05:00
Martin Angers e29797deb0 Migrate the last batch of authenticatedUser endpoints to the new pattern (#4210) 2022-02-15 15:22:19 -05:00
Guillaume Ross 531ef1eddc Adding disk encryption policy query for Linux (#4211)
On website + constants.ts. Does not support all Linux encryption scenarios, we will add more to this query as we discover the patterns people need.

Closes #4208
2022-02-15 14:35:11 -05:00
Tomas Touceda a49f2a06ed Allow removal of munki versions (#4189)
* Skip any versions that are empty in munki

* Return not found if munki is uninstalled

* Fix lint

* wip

* Add deleted at for host_munki_version
2022-02-15 16:29:14 -03:00
Michal Nicpon 0be26613b3 Cache team agent options (#4193)
* use raw literal for json
* wrap cache to clone all values
2022-02-15 12:07:51 -07:00
Michal Nicpon 9009857022 Add get team by name to fleetctl (#4202) 2022-02-15 11:48:09 -07:00
Martin Angers 290b5d90e5 Add team target filters to rego authorization checks for running queries (#4194) 2022-02-15 13:41:48 -05:00
Zachary Winnerman 69c0434e88 Add terraform for the loadtesting environment (#4172)
* Add terraform for the loadtesting environment

* Add some checkov stuff and minor updates

* Remove defunct commented stuff

* Add separate cloudwatch namespace for migrations

* Remove defunct code

* checkin
2022-02-15 13:00:24 -05:00
Zachary WinnermanandTomas Touceda c5c72ed713 Add apm for testing apm (#4053)
* Add apm for testing apm

* Testing opentracing

* testing

* Testing

* go fmt

* Add config switch for tracing.

* fixup

* Update cmd/fleet/serve.go

Co-authored-by: Tomas Touceda <chiiph@gmail.com>

* Add support for both elasticapm and opentelemetry

* Fix driver stuff and config options

* Fixup

* fixup

* Add changes file

* Add config for sql driver

* fixup

* Add doc to exported field

* testing

* fixup

* fixup

* Testing again

* fixup

* testing

* Undo

Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2022-02-15 12:42:22 -05:00
RachelElysia 0ffca38f77 Queries and Scheduled Queries UI: Performance impact tooltips (#4201) 2022-02-15 11:19:01 -05:00
dependabot[bot] 06e7d5472f Bump node-sass from 6.0.1 to 7.0.0 (#4148)
Bumps [node-sass](https://github.com/sass/node-sass) from 6.0.1 to 7.0.0.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v6.0.1...v7.0.0)

---
updated-dependencies:
- dependency-name: node-sass
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 10:09:11 -06:00
dependabot[bot] 8589cdd553 Bump follow-redirects from 1.14.4 to 1.14.8 in /tools/fleetctl-npm (#4183)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 10:08:07 -06:00
dependabot[bot] 7aaba70d5b Bump follow-redirects from 1.14.5 to 1.14.8 (#4184)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.5 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.5...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-15 10:07:21 -06:00
Lucas Manuel Rodriguez d8b8794d51 Fix setting of envs for schedule (#4205)
* Attempt to fix setting of env for schedule

* Revert logic after testing
2022-02-15 09:26:28 -03:00
Kelvin Oghenerhoro Omereshone afa63805c8 fix: update heading to conform to Fleet's style guide (#4153)
* fix: update heading to conform to Fleet's style guide

* fix: update heading link to conform to style guide
2022-02-15 10:16:58 +01:00
eashaw 4dc10f6a26 Update platform page (#4075)
* update images

* update page layout and stylesheet

* Update platform.ejs

* mobile padding

* fix logo padding

* Update platform.ejs

* replace schrodinger logo, add missing image, adjust svg width for safari

* lint fixes

* fix logo rows margin and Schrodinger logo on mobile
2022-02-14 17:14:54 -06:00
RachelElysia bb11f5008f Frontend tech debt: Clean up 409 lint warnings (#3703)
* Clean up unused variables, return types, many quick type any
2022-02-14 17:11:12 -05:00
RachelElysia 439d6f0623 Fix flaky e2e policies (#4190) 2022-02-14 17:09:55 -05:00
Guillaume RossandNoah Talerman 381d3b4206 Added AV Policies + Re-ordered (#4171)
* Added AV Policies + Re-ordered

Added a policy to check AV health for every OS. Re-ordered policies in alphabetical order.

* Update frontend/utilities/constants.ts

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>

* Update frontend/utilities/constants.ts

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>

* Update frontend/utilities/constants.ts

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>

* Update frontend/utilities/constants.ts

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>

* Removed extra carriage return

* Fixed linting issue

Added CRs where expected by linter

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2022-02-14 16:51:29 -05:00
Lucas Manuel Rodriguez aa9e257a2a Upgrade fleetdm/goose version to latest (#4195) 2022-02-14 17:33:37 -03:00
Lucas Manuel Rodriguez 297dd245ec Run go tests with -race at night (#4090)
* Run go tests with race at night

* Add missing run on step

* Fix boolean logic

* Allow manual run for test-go.yaml

* Add slack notification step

* Try global environment variable for cron schedule

* Fix indentation

* Try number 2

* Try setting cron as usual

* Remove global env

* Only send notification in case of failure when running schedule

* Run with race enable to test

* Add more fixes

* Fix github event variable name

* Set timeouts

* Fix slack notification link

* Re-enable if clause

* Last try on Github Actions

* Re-enable the if clause
2022-02-14 16:38:53 -03:00
Guillaume Ross 2378db08c8 3946-Adding antivirus queries (#4154)
* Adding antivirus queries

Adding 3 antivirus queries in the form of an information query as well as in the form of policy queries

* Update standard-query-library.yml

Adding newline at end of file
2022-02-14 14:35:22 -05:00
Zach Wasserman 9e68e66eb6 Update CODEOWNERS (#4006) 2022-02-14 10:49:40 -08:00
Lucas Manuel Rodriguez be72dc356c Add CentOS parsing+post-processing to reduce false positives in vulnerability processing (#4037)
* Add CentOS parsing and post-processing in fleet

* Add tests and amend SyncCPEDatabase

* Add test for centosPostProcessing

* Changes from PR comments

* Amend software test

* Fix sync test

* Add index to source and vendor

* Use os.MkdirTemp

* Rearrange migrations

* Regenerate test schema

* Add support for testing migrations (#4112)

* Add support for testing migrations

* Rename migration in tests

* Changes suggested in PR

* Go mod tidy
2022-02-14 15:13:44 -03:00
Mike McNeil 57d9546081 apostrophe (#4181) 2022-02-14 12:01:13 -06:00
Zachary Winnerman 3babf53cf4 Fix OSVersion to work properly when distribution does not follow symver (#3968)
* Fix OSVersion to work properly when distribution does not follow symver

Certain distros such as ClearLinux or ArchLinux do not use symver or any
dotted versioning scheme for their releases. Archlinux uses the static
string "Rolling" and ClearLinux uses a single build number such as 35550
for their versions.

In Fleet console, this shows up as a string like "Archlinux 0.0.0.0"
which makes very little sense to the user. This change makes it so that
if OSQuery cannot generate a dotted version number, we should instead
use the build id as an opaque string.

* Add /changes

* Add tests for os_version

* fixup

* fixup
2022-02-14 12:55:23 -05:00
Michal Nicpon 075702113a Print version warning when using fleetctl (#4139)
* Remove deprecated call in fleetctl
* Remove duplicate error returned by app.Run in tests
2022-02-14 09:43:34 -07:00
Noah Talerman f14653fcd6 Fix broken link and sentence casing in UI (#4127)
- Fix broken link in the empty state for the "Software" card on Home page
- Update "API Token" to sentence case "API token"
2022-02-14 10:19:33 -05:00
Zach Wasserman 8e8909eb8e Fix date of 4.10.0 release in changelog (#4185) 2022-02-14 10:18:05 -05:00
Martavis Parker fc5c0e17d5 trimming vuln software json to fix on windows (#4084) 2022-02-14 12:14:26 -03:00
Lucas Manuel Rodriguez 9c25ea1641 Prepare LoadHostByNodeKey query once (#4128)
* Prepare LoadHostByNodeKey query once

* Use a protected map for storing statements

* Add proposed test
2022-02-14 12:13:38 -03:00
Lucas Manuel Rodriguez 0ed0c4e27f Allow manual dispatch of test-go.yml (#4160) 2022-02-14 12:13:02 -03:00
Kelvin Oghenerhoro OmereshoneandMike Thomas 8070e1e606 fix: update heading (#4152)
* fix: update heading

* Update docs/01-Using-Fleet/README.md

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2022-02-14 15:50:19 +01:00
Kelvin Oghenerhoro Omereshone e1708466b5 [DOCS] the last of the headings normalization (#4157)
* fix: update headings in configuration files docs

* fix: update heading in testing docs

* fix: update heading in seeding data docs

* fix: update headings in committing changes docs

* fix: update heading from External Contributors to External contributors

* fix: update headings in API for contributors docs.

* fix: update heading in API versioning docs.
2022-02-14 15:49:43 +01:00
dayldanddayld c32a225104 users table to cached_users to improve performance (#4170)
* users table to cached_users to improve performance

* add changes file

Co-authored-by: dayld <>
2022-02-14 09:48:17 -03:00
Zach Wasserman 1e843f3b89 Allow short IdP name in server validation (#4077)
A customer encountered an error when setting the value to "SSO" which
seems quite reasonable.
2022-02-13 19:35:59 -08:00
Noah TalermanandZach Wasserman 67827474c2 Prepare for Fleet 4.10.0 (#4161)
Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2022-02-13 18:13:06 -08:00
Noah Talerman e0716d0c2a Add vulnerability automations to "Automations" docs (#4130) 2022-02-13 18:12:51 -08:00
Mike McNeil c204e915b1 script to report estimations (#4182)
* prototype

* run in parallel

* actually run on all projects
2022-02-13 14:01:07 -06:00
eashaw 7a5694c15c Add performance feedback section to the handbook (#4178)
* performance feedback

* sentence case
2022-02-11 19:54:16 -06:00
Luke Heath 890ff7b3f7 Fix lint error (#4175) 2022-02-11 14:35:23 -06:00