Commit Graph

1517 Commits

Author SHA1 Message Date
noahtalerman
46a04fbeef
Add documentation for websocket endpoints (#395)
Add documentation on the websocket endpoints in the Fleet API. These endpoints allow users to retrieve live query results.

Endpoints added include:
- `api/v1/fleet/results`
- `api/v1/fleet/results/websockets`
2021-03-08 16:08:47 -08:00
Zach Wasserman
c5f931bb54
Bump development docker-compose Redis to version 5 (#414) 2021-03-08 14:36:10 -08:00
noahtalerman
53296ee930
Fix queries/run endpoint and queries/run_by_name (#411)
- Fix api/v1/fleet/queries/run endpoint. Prior the fix, the endpoint was incorrectly documented as api/v1/fleet/spec/queries/run
- Fix api/v1/fleet/queries/run_by_names endpoint. Prior the fix, the endpoint was incorrectly documented as api/v1/fleet/queries/run
2021-03-08 11:46:05 -08:00
noahtalerman
54ecabab35
Fix live query UI expanded view (#394)
- The expanded view for live query UI now fills the screen's height. Vertical scroll is allowed on the table if the results table's height larger than the screen's height.
Fixes #392
2021-03-08 11:45:17 -08:00
Lars Lehtonen
9317c81edc
server/service: Remove duplicate log import (#408) 2021-03-08 10:59:39 -08:00
Gabe Hernandez
70b76d9aef
change to horizontal nav (#379)
* start with making nav horizontal and updating nav and main content areas

* remove unneded subnav styling and JS code

* remove unused isSmallNav and --small styles

* remove isSmallNav in reducer and fix tests

* change 'admin' to 'settings'

* remove unnneded username to logo

* change account page urls

* Add user avatar dropdown to nav

* remove unused background colour on company logo

* get tabbing to work correctly

* implement styling of tab and page descriptions

* change default settings nav to organisation settings

* remove more unneeded subnav code

* fix some broken tests after changes

* pull out getdefaultTabIndex in settingsWrapper

* sticky sub nav for settings pages

* tweak zindex for setting subnav

* updated yarn.lock

* update icons

* fix collapsing nav items

* tweak avatar dropdown styles

* remove sidebar on osquery page
2021-03-08 16:48:29 +00:00
Josh Brower
db0102d80c
JSON formatting fixes (#410)
- Adds correct formatting to JSON in several places in the REST API docs
2021-03-08 08:13:06 -08:00
noahtalerman
c1650fdae9
Add asterisk for unshipped features and move auto updates (#403)
- On fleetdm.com, add asterisks for features coming in 2021
- Pull auto-update items nearer to each other
2021-03-05 17:27:59 -08:00
Mike Thomas
90ef5570e9
New icons for navigation bar (#390)
Updated nav icons. New design, size reduces to 16px (32px).
2021-03-05 08:29:00 -08:00
Zach Wasserman
2025afee71
Better handling of config_refresh values from clients (#388)
Since the original logic was implemented, there have been some changes
in the way that config refreshes are configured. This commit reflects
those changes and should be backwards compatible.

Closes #357
2021-03-05 08:25:46 -08:00
Zach Wasserman
df0e3675be
Remove second call to docker-compose in CI tests (#389)
This caused errors from Docker thinking we were trying to start
duplicate containers. The benefit was minimal.
2021-03-04 18:34:33 -08:00
Zach Wasserman
1d23c1452d
Add cleanup before make generate step (#386)
Older files building up in the assets directory was causing binary sizes
to become larger over time. This change should keep binary sizes consistent.
2021-03-04 18:16:20 -08:00
Zach Wasserman
20f21fafe4
Migrate tests to GitHub Actions and add E2E testing (#381)
- Migrate unit tests and linting from CircleCI to GitHub Actions
- Add E2E test in CI run
2021-03-04 17:13:28 -08:00
Zach Wasserman
f9312df174
Remove flaky log rotation test (#385)
This test has been flaky for years and it's time for it to go.
2021-03-04 16:29:50 -08:00
Gabe Hernandez
0483cc7aaa
Bring in Cypress e2e framework (#380)
Beginning of an e2e testing framework for the fleet application.

This uses [Cypress](https://www.cypress.io/) to implement a first end-to-end test in Fleet.
2021-03-04 14:08:11 -08:00
Mike McNeil
6d403aa09e
typofix 2021-03-04 13:30:12 -06:00
noahtalerman
0c4720c721
Fix IP column label and section label. Add border color style for inputs. (#374) 2021-03-04 15:18:21 +00:00
Gabe Hernandez
60d830527f
always show how column name in host table (#372) 2021-03-04 10:50:45 +00:00
Gabe Hernandez
0b9d20329b
add ts to data table components (#364)
* chnage webpack to resolve typescript modules. convert TextCell to TS

* change headercell and statuscell to ts

* ignore casesensitve error, seems a bit buggy

* ignore camelcase error, we already use snakecase many places

* updated LinkCell and modules it depends on to typescript

* fix up some warnings from changes

* fix more types in textcell and hosttableconfig

* use alias imports

* add require button state interfcae
2021-03-03 16:51:39 +00:00
Gabe Hernandez
3546b7d41a
adding typescript and updating linting to work with it (#356)
* updated typescript version and tsconfig in project

* updated eslint version

* change from experimental export to supported export

* removed accidentally added script

* turn off buggy jsx-a11y eslint rules

* remove unused tslint.json

* fix wrong jsx-a11y depedency

* use correct eslint-plugin-jsx-a11y version

* fix rest of linting errors

* move back js-yaml version to 3 major
2021-03-01 07:48:51 +00:00
Mike McNeil
108d378a2d
add standard query library 2021-02-28 20:30:00 -06:00
Mike McNeil
82f453f2d3
tweak to make it fit on one ine 2021-02-26 19:13:38 -06:00
noahtalerman
5f9b7db503
Add comparison table to fleetdm.com (#359)
- Add the comparison table to fleetdm.com with "SUPPORT" and "CAPABILITIES" sections
- Add two image assets, ellipse and check, to /website/assets/images directory
2021-02-26 16:47:08 -08:00
noahtalerman
b283767574
Add file carve endpoints and remaining user endpoints to REST API docs (#346)
The endpoint included in these changes:
- /api/v1/kolide/carves GET
- /api/v1/kolide/carves/{id} GET
- /api/v1/kolide/users/{id} PATCH
- /api/v1/kolide/users/{id}/enable POST
- /api/v1/kolide/users/{id}/admin POST
- /api/v1/kolide/users/{id}/require_password_reset POST
- /api/v1/kolide/users/{id}/sessions GET
- /api/v1/kolide/users/{id}/sessions DELETE
2021-02-25 11:43:15 -08:00
noahtalerman
b53d14a37a
Fix render issue in errors table where the number 0 would be rendered below results table (#354)
This is a visual bug fix.
- Fixes a rendering issue in the Errors table in which the number "0" is rendered below the results table. This rendering issue occurs when the query is completed and no errors are returned.
2021-02-25 11:42:40 -08:00
Zach Wasserman
499cd1d7dc
Prepare for 3.8.0 release (#352)
Update changelog, NPM package.json, Helm chart.
2021-02-25 09:14:29 -08:00
noahtalerman
9ec9018288
Errors table doesn't render if there are no error (#353)
The errors table in the live query UI doesn't render if there are no errors.
- Fixes #330
2021-02-25 09:14:13 -08:00
Gabe Hernandez
4de0090bd3
Add edit column modal feature (#351)
This adds the column toggling to the feature to the host data table.

Co-authored-by: Noah Talerman <noahtal@umich.edu>
2021-02-25 09:13:13 -08:00
Gabe Hernandez
a6c8987200
Feature - add search and sort to host table (#341)
* start adding global search filter

* update polyfill setup to use async await for react-table

* update browerslist to sensible defaults

* get global search functionality woring

* more progress on the data table

* get label network calls working in hostdatatable

* get pagination functionality into the HostDataTable

* get search query making network call

* get ordering making query

* make actual  sort order network calls

* disable cpu column sorting

* seperate get table data from get labels

* fix issues with input resetting and got search query working

* get sort working

* ignore vs code editor settings

* improve loading spinner to move inside the table

* improve styling

* add sorting arrows

* remove unused sorting arrow component

* add host query params to labels endpoint

* fix style for query textarea on label hosts

* got new pagination working

* set server data as source of truth for table global filter

* cleanup logs

* clean up pagination styles

* fix up paginationa and no host styles

* add result count to table

* remove logs

* tweak header styles

* fix to sort order

* simplify default sort direction

* keep sort order of server api responses and use in host table

* clean up logs

* Add styles for header cell and pagination

* fix tests for ManageHostPage

* fix tests for HostContainer

* fix lower level action reducer and thunk tests

* fix tests for hosts client

* fix up some host count styling

* added back no hosts start message

* fix linting errors

* remove unused old pagination code

* add back scrollToTop utility on pagination

* remove unused code in managehostpage test

Co-authored-by: Noah Talerman <noahtal@umich.edu>
2021-02-25 12:05:08 +00:00
Zach Wasserman
de0b3324b1
Add AWS Lambda as logging plugin (#347)
This plugin invokes the provided function with each log line as the
payload.

Closes #342
2021-02-24 10:02:26 -08:00
noahtalerman
e8b510a108
Edit /hosts and /labels endpoints in API docs (#280)
- Add query parameter to the /api/v1/fleet/hosts endpoint and edit the example request and response.
- Add query parameter to the /api/v1/fleet/labels/{id}/hosts endpoint
These changes support the ability to perform a search on the Hosts table by hostname, machine_serial, and ipv4.
2021-02-24 09:55:48 -08:00
Mike McNeil
2b1b8c8a2b
typofix 2021-02-22 16:42:30 -06:00
Mike McNeil
13a91f2227 Clean out issue template
See previous commit (I just forgot to empty out the issue.)

This will make it easier for us to do more work in the open.
2021-02-22 15:30:16 -06:00
Mike McNeil
7438085248 Add issue template
This will make it easier for us to do more work in the open.
2021-02-22 15:29:02 -06:00
Zach Wasserman
471f25e470
Return denylist parameter with pack configs (#339)
This was previously handled correctly within the Fleet server datastores
and API endpoints, but not returned to the actual osquery client.

Fixes #338
2021-02-21 09:58:36 -08:00
Lars Lehtonen
7e02b7abe3
server/datastore: fix swallowed test error (#337) 2021-02-19 08:19:43 -08:00
Zach Wasserman
305a285a35
Remove github.com/golang/dep from Makefile (#336)
This has been long unused in favor of Go modules.
2021-02-18 13:05:08 -08:00
noahtalerman
8d5c1c37d3
Add number of hosts responding in live query UI. (#333)
These changes fixe #303 by adding the number of hosts successfully responding to the live query UI. This information was previously removed in Fleet 3.7.1
2021-02-18 12:59:27 -08:00
noahtalerman
3ccd624ee1
Add /targets endpoint to REST API docs. (#331)
This PR is part of the Complete documentation for Fleet API project #43.

The endpoint included in these changes:
- `POST api/v1/fleet/targets`

Additional changes:
- Now order_key and order_direction are included in the parameters table for endpoints that support them. Fixes #326
- Change endpoints to `api/v1/fleet` naming
2021-02-18 12:54:06 -08:00
Zach Wasserman
c6c5e65a7d
Add support for filtering hosts in label (#335)
Support the same query syntax as the hosts endpoint, here also bounded
by the membership of the label.
2021-02-18 12:52:43 -08:00
Mike Thomas
1c71d397a4
Update z-new-teammate-onboarding.md (#312)
Added Github links for public and confidential issues to the onboarding process doc.
2021-02-16 17:32:51 -08:00
Zach Wasserman
cca4802642
Add support for query parameter in list hosts endpoint (#327)
Uses a LIKE clause to search for hosts matching the query against
columns `host_name`, `uuid`, `hardware_serial`, and `primary_ip`.

Introduces the `searchLike` helper to add the appropriate filters to the
SQL query.
2021-02-16 16:53:42 -08:00
Zach Wasserman
6b5019d65e
Add aliases for order keys in API (#329)
Aliases `hostname` (`host_name`) and `memory` (`physical_memory`) when
used as keys for ordering in the API this allows for better consistency
on the frontend.

To be cleaned up further in #317
2021-02-16 15:25:34 -08:00
noahtalerman
8438278ba3
Add instructions for moving queries and packs from one Fleet env to another (#307)
Add documentation that includes lean instructions for exporting queries and packs from one Fleet environment and importing them in another.
2021-02-16 14:48:19 -08:00
Zach Wasserman
06d919aa4e
Rename MySQL parameters for CircleCI (#328)
kolide -> fleet where appropriate
2021-02-16 14:40:38 -08:00
Zach Wasserman
b83fbf0ec9
Special case host_name on the backend to enable frontend consistency (#318)
See #317 for followup to this.
2021-02-15 11:58:05 -08:00
Mike Thomas
8107128320
Uploaded logo assets (#292)
Add logo assets to assets folder. These assets are not for Fleet UI. They are for people to grab for use in marketing etc.
2021-02-15 11:23:38 -08:00
Mike Thomas
8713daf44f
Update 1-Building-Fleet.md (#314)
Add correct Docker link to Building Fleet doc.
2021-02-15 11:22:43 -08:00
Mike Thomas
7bfce469de
Update 1-Building-Fleet.md (#313)
Added text to clarify that a new terminal tab should be opened after making changes to bash profile.
2021-02-15 11:21:57 -08:00
Zach Wasserman
a91a24bb58
Update fleetctl NPM package to 3.7.4 (#316)
This corresponds with the published 3.7.4 fleetctl release.
2021-02-15 10:44:57 -08:00