Commit Graph

3702 Commits

Author SHA1 Message Date
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 Winnerman
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 Ross
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 Omereshone
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
dayld
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 Talerman
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
Zach Wasserman
e20a9b4508
Add platform filters for MDM/Munki/Chrome queries (#4144)
* Add platform filters for MDM/Munki/Chrome queries

This should help quiet warnings that users/customers have reported when
these queries try to run on platforms without the macadmins extension
tables.

For #4123

* Improve documentation

* add changes file

* revert doc formatting

* Update tests

* Yet another test fix

Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2022-02-11 14:10:26 -03:00
Tomas Touceda
c45115a915
Properly handle path in CVE URL prefix (#4174) 2022-02-11 14:10:13 -03:00
Tomas Touceda
d167556514
Make sure we handle unenrolling properly (#4158)
* Make sure we handle unenrolling properly

* Update failing test

* Fix test
2022-02-11 08:27:15 -03:00
eashaw
9af92b23aa
Update links to documentation (#4163)
* update links to documentation

* revert .sailsrc change

* fix broken link
2022-02-10 19:26:18 -06:00
Martavis Parker
df87e8e4b6
Fixed macOS homepage tooltips (#4167)
* complete refactor of homepage card layout

* modified data fetching for hosts summary

* lint fixes

* removed comments

* unnecessary file

* Add CountsUpdatedAt for munki/mdm status

* Update doc

* fixed last updated at text

* added changes file

* moved card description implementation

* lint fixes

* fixed manage hosts link; clean up

* filtering macadmins by team

* fixed host summary count toggling

* lint fix

* fixed tooltip collision

* clean up

Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2022-02-10 15:58:29 -08:00
RachelElysia
de4fa90550
Host details page: e2e test (software, schedule, policy, users) (#4099) 2022-02-10 17:49:10 -06:00
Martavis Parker
21f1260b3a
Fixed platform host count on homepage (#4155)
* complete refactor of homepage card layout

* modified data fetching for hosts summary

* lint fixes

* removed comments

* unnecessary file

* Add CountsUpdatedAt for munki/mdm status

* Update doc

* fixed last updated at text

* added changes file

* moved card description implementation

* lint fixes

* fixed manage hosts link; clean up

* filtering macadmins by team

* fixed host summary count toggling

* lint fix

Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2022-02-10 14:04:22 -08:00
Noah Talerman
9c24c7d92c
Add policy templates to standard query library (#3956)
* Add remaining policy templates

* Removeempty resolution field

* Update naming for standard policies

* Add enabled word to SIP policy

* Use full SIP

* Also change in constants

* Update windows disk encryption

* Add changes file

* Tweak windows disk encryption policy

* Address lint errors

* Make requested changes

* Reflect changes in policy tempaltes

* Make sure that standard policies and policy templates are the same

* Edit automatic login disabled description

* Also edit in constants
2022-02-10 12:34:30 -05:00
Michal Nicpon
447a4b58ed
Update receive-from-github.js (#4115) 2022-02-10 10:00:24 -07:00
RachelElysia
7bca25a803
Show observer query's OS compatibility (#4140) 2022-02-10 10:40:04 -06:00
Zach Wasserman
1b1d3f8a61
Update go-tuf dependency (#3837)
Resolves the warning described in #3699 by updating to the latest
version of the dependency with the warning fixed.

The warning should go away on all clients after new metadata is 
generated with these changes.
2022-02-10 08:16:36 -08:00
Martavis Parker
3d523aef05
Replaced anchor tags for JS - for safari & firefox (#4131)
* replaced anchor tags for js - for safari & firefox

* better logic to account for page offset
2022-02-10 08:10:51 -08:00
Zach Wasserman
600549d8a4
Prepare for 4.9.1 release (#3996) (#4005)
Merging back to `main` from patch branch.
2022-02-10 10:46:21 -05:00
Kelvin Oghenerhoro Omereshone
f3b1a53cd4
fix: update heading to sentence case (#4143) 2022-02-10 15:36:57 +09:00