Commit Graph

191 Commits

Author SHA1 Message Date
Gabriel Hernandez
b14c7af645
move policies to own constants and allow escaping on DEFAULT_POLICIES (#8121) 2022-10-07 14:31:57 +01:00
Luke Heath
97155238c7
Disable linting for constants file (#8107) 2022-10-06 14:45:59 -05:00
Josh Brower
b7daa3d0ad
Add Windows CIS policies (#7959)
- Add 7 policies to fleetdm.com/queries and the Fleet product
2022-10-06 12:43:34 -04:00
RachelElysia
92d6161edb
Fleet UI: Clarify last fetched and last seen time on Manage Host Page (#8087) 2022-10-06 09:15:40 -04:00
RachelElysia
ee2f28e890
Fleet UI: Rename to machine serial and private IP address (#8074) 2022-10-04 13:35:32 -04:00
Martin Angers
f5b6523359
Hide overrides key if empty, display comment for flags if empty (#7986) 2022-10-04 08:40:40 -04:00
Zach Wasserman
486b67caca
Add initial support for kubequery (#6863)
Configuration and fixes for the Fleet server and frontend to add support
for https://github.com/Uptycs/kubequery.

Co-authored-by: Michal Nicpon <michal@fleetdm.com>
2022-09-15 10:02:17 -06:00
Noah Talerman
035ef3f6e7
Update standard policies and policy templates (#7662)
- Remove "[CIS x.x.x]" tags from product
- Add "CIS" tag to all policies in the standard query library on fleetdm.com
- Remove duplicate "Guest users"policy
- Update language in policies' names and descriptions to be consistent
2022-09-09 11:00:20 -04:00
RachelElysia
0c13141ba1
Fix online, offline, new dropdown (#7572) 2022-09-05 22:24:40 -04:00
RachelElysia
f9737cdb48
Fleet UI: macOS dashboard Munki issues (#7096) 2022-09-02 17:05:07 -05:00
RachelElysia
3e310ba150
Fleet UI: Fix bug with label sidebar not collapsing (#7402) 2022-09-01 17:42:25 -04:00
Guillaume Ross
54569281de
Fixing bug and bumping versions for AV check on macOS (#7522)
The policy had been pasted in `constants.ts` wrong - replacing with the right one, and while I'm here, bumping the versions.
2022-09-01 14:28:30 -04:00
RachelElysia
d30dea44ee
Frontend: Refactor building query params for export hosts and host count (#7269) 2022-08-31 14:18:32 -07:00
Guillaume Ross
f413ae764a
7231 - Second batch of macOS policy queries for CIS Benchmark (#7380)
* Adding CIS 1.5 / 1.6 / 2.2.1 to constants.ts

* Adding CIS 1.5 / 1.6 / 2.2.1 to standard query library

* Adding 2.3.1

* Adding 2.3.1 to query library and 2.4.2 to both

* Adding 2.4.10

* Tagging 2.5.1.1

* Tagging 2.5.2.1

* Tagging 2.5.2.2

* Adding 2.5.6

* Adding 2.6.1.4

* Adding 3.6

* Tagging 5.1.2

* Tagging 5.2.2

* Tagging 5.8

The query we have for the screen lock is comprehensive and covers more than one CIS requirement

* Adding 6.1.3 and 6.1.4
2022-08-26 16:59:16 -04:00
Luke Heath
f08cf6c11c
Remove FreeBSD references from website, UI, and query library (#7279) 2022-08-24 16:03:35 -05:00
Guillaume Ross
c4ccf20bd6
Adding first set of CIS benchmark policies for macOS (#7296)
* Adding CIS 1.1 for macOS

* Adding CIS 1.2

* Fix linting

* Adding CIS 1.3

* Adding CIS 1.4

* Apply suggestions from code review

Committing Noah's suggestions

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

* Fixed copy pasta errors + changed formatting

Fixed some auto update queries that were accidentally the same, and put [CIS X.X] between brackets in `constants.ts`

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2022-08-22 19:23:09 +00:00
Guillaume Ross
dcee7a15ea
Making Bitlocker policy stricter (#7253)
Adding a filter to check that this is happening on the C drive and not some random other drive.
2022-08-18 13:45:17 -04:00
RachelElysia
18852aae66
Fleet UI: macOS dashboard MDM solutions (#7014)
Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
2022-08-15 17:47:07 -05:00
gillespi314
78af071fce
Handle invalid time values on host details page (#7217) 2022-08-15 15:09:27 -05:00
RachelElysia
73d0299af9
Fleet UI: Schedule frequency units, Convert seconds to units using date-fns (#7102) 2022-08-09 10:00:09 -04:00
Gabriel Hernandez
35a0c1c1a0
clean up host entity loadHosts method (#7083) 2022-08-09 12:25:49 +01:00
Gabriel Hernandez
aa60f3a54f
cleanup of manage host page utilities (#7055)
* colocate LabelForm with ManageHostPage

* add url utility to create query string from params object
2022-08-05 09:27:10 -04:00
RachelElysia
140a651f3b
Fix spelling and grammar in standard query library (#6937) 2022-08-02 10:12:54 -04:00
RachelElysia
4631e4eeaa
Fleet UI: Sentence casing, typo (#6942) 2022-07-28 14:54:01 -04:00
RachelElysia
f78fa3c42a
Fix firefox/safari > input alignment (#6925) 2022-07-27 17:22:35 -04:00
RachelElysia
5a0f4eb318
Packs UI: Update osquery releases on add/edit query pack dropdown (#6888) 2022-07-26 15:27:56 -04:00
RachelElysia
6ec08b405b
Manage Host UI: Convert uptime column to last restarted (#6812) 2022-07-25 09:37:12 -04:00
gillespi314
406004894a
Update placeholder text for select targets search box (#6826) 2022-07-22 11:13:37 -05:00
Desmi-Dizney
097f71e76c
Editor Pass - Adding password policy query to the default library (#6768)
* Editor Pass - Adding password policy query to the default library

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

* Update constants.ts

* Update frontend/utilities/constants.ts
2022-07-21 13:51:17 -05:00
RachelElysia
0afa3e4b54
Host UI: Refactored disk space bar graph to a global component (#6741) 2022-07-20 12:39:19 -04:00
gillespi314
4792d7a759
Add UI for Fleet Sandbox to download prepackaged installers (#6721) 2022-07-19 14:28:06 -05:00
RachelElysia
733abe1aa7
Manage Host Page: Render host disk space (#6593) 2022-07-18 16:37:38 -04:00
gillespi314
3aa64f93ba
Add isSandboxMode to AppContext (#6704) 2022-07-18 09:13:23 -05:00
Guillaume Ross
7559988000
Adding password policy query to the default library (#6641)
* Adding password policy query to the default library

Adding a built-in policy to check the minimum password length on macOS using the recently released password_policy table.

* Addding osquery minimum version + adding query to constants.ts
2022-07-13 15:26:31 -04:00
RachelElysia
ed33a031db
Fleet UI: Host details / Device user page last restart time bug (#6500) 2022-07-06 13:56:31 -04:00
gillespi314
44f902218c
Improve live query UX (#5749) 2022-06-10 13:29:45 -05:00
Guillaume Ross
bda0ad90ad
Fix linting issue (#6178)
* Fix linting issue

Removing a query that eslint is complaining about. Will fix next week - wether by adding ignore rules or figuring out a way to escape the tons of backslashes windows wants

* Fix linting issue

Putting query back in but with escaped backslashes, which should fix the linting issue and still work in the UI.
2022-06-10 13:17:29 -04:00
Guillaume Ross
04a0c355c5
Add Windows screen lock policy (#6167)
* Adding policy query to check firewall on Mac

This commit closes https://github.com/fleetdm/confidential/issues/1410 once merged.

* Adding policies

This commit closes https://github.com/fleetdm/confidential/issues/1412. Right now there is no way to check the screenlock so instead we check if a profile for screenlock is there.

https://github.com/fleetdm/confidential/issues/1410 also closed by this.

* Update constants.ts

Fixed space

* Resolution text fix for new policies

Fixed copy based on @zhumo's comments!

* Screen lock policy

Adding a policy to check if the inactivity timeout is enabled on Windows and set to 1800 seconds or less (30min)

* Update constants.ts

Fix identation

* Update Windows screen lock policy

Changed wording from "administrator" to "IT administrator" in both files.
2022-06-10 12:05:32 -04:00
Guillaume Ross
38aaaffd65
Add policies (#6158)
* Adding policy query to check firewall on Mac

This commit closes https://github.com/fleetdm/confidential/issues/1410 once merged.

* Adding policies

This commit closes https://github.com/fleetdm/confidential/issues/1412. Right now there is no way to check the screenlock so instead we check if a profile for screenlock is there.

https://github.com/fleetdm/confidential/issues/1410 also closed by this.

* Update constants.ts

Fixed space

* Resolution text fix for new policies

Fixed copy based on @zhumo's comments!
2022-06-09 15:20:30 -04:00
gillespi314
db7424282b
Add software details page (#6089) 2022-06-08 14:01:38 -05:00
gillespi314
baeff6e893
Add validation for pack scheduled query interval (#5918) 2022-05-26 16:54:21 -05:00
gillespi314
2db2c16511
Include MIA hosts under total count for Offline hosts (#5854) 2022-05-23 14:11:02 -05:00
RachelElysia
34a2d3e483
UI Zendesk integrations (#5356) 2022-05-10 21:33:30 -05:00
Martavis Parker
384c987389
Removed all traces of Redux from the app! (#5287)
* clean up routes and useless components

* component clean up

* removed redux from routes

* rename file

* moved useDeepEffect hook with others

* removed redux, fleet, app_constants dirs; added types to utilities

* style cleanup

* typo fix

* removed unused ts-ignore comments

* removed redux packages!!!

* formatting

* fixed typing for simple search function

* updated frontend readme
2022-04-22 09:45:35 -07:00
Martavis Parker
0cc02b5fe3
replaced old api calls with new version (#5254) 2022-04-20 10:45:32 -07:00
gillespi314
fa8bfbd796
Extend sort functionality for policy status UI (#5078) 2022-04-13 11:08:37 -05:00
gillespi314
ab85963cbd
Handle UI error parsing invalid sql (#5016) 2022-04-11 15:18:31 -05:00
RachelElysia
d885758a6a
UI: Settings > Integrations tab, Software Vulnerabilities Webhook v. Integration (#4874) 2022-04-11 15:04:41 -04:00
Martavis Parker
cfb1474eb8
Auth Redux Removal (#4924)
* all login methods no longer use redux

* removed redux from registration

* redirect user from registration

* removed redux from sso invite

* removed redundant component

* refactored user settings page

* removed redux from logout

* cleaned up unused redux calls

* lint fixes

* removed test

* removed old config interface

* fixed registration bug

* team permission fix

* removed remaining redux references from pages - #4436

* better way to set config
2022-04-07 09:08:00 -07:00
gillespi314
2092fe437f
Add tables from macadmins extension to compatibility check (#4722) 2022-03-21 18:06:25 -05:00
gillespi314
deeaf9d036
Add ability to detect compatibility and update which hosts are checked for a policy (#4703)
Add new usePlatformSelector custom hook
Add new usePlatformCompatibility custom hook
Add new PlatformSelector global component
Refactor PlatformCompatibility as global component
Refactor sql_tools to TypeScript
Improve type definitions for context/policy
Align PolicyPage and QueryPage with platform compatibility changes
2022-03-21 11:51:00 -05:00
Guillaume Ross
62042e35cd
Fix guest policy in standard query library and constants.ts (#4573)
* Fix guest policy in standard query library

* Fix guest policy in constants.ts
2022-03-14 14:31:33 -04:00
RachelElysia
a022a11ebf
Frontend Tech Debt: Typescript types (#4319) 2022-03-10 10:10:44 -05:00
Guillaume Ross
4f8847ddd2
Adding new policy to check for MDM enrollment (#4343) 2022-03-03 14:22:23 -05:00
RachelElysia
8af5fa7a5a
Fix duplicate (team name, label name, user email) error handling (#4352) 2022-03-01 13:28:51 -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
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
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
Luke Heath
0d36b39059
Fix label search crashing app on special character input (#4124) 2022-02-09 16:02:49 -06:00
RachelElysia
778ee22147
/logout route automatically logs out user (#4057)
Co-authored-by: Luke Heath <luke@fleetdm.com>
2022-02-09 11:36:24 -06:00
Martavis Parker
260d8c6910
Homepage refactor - MDM/Munki (#4038) 2022-02-07 23:03:01 -06:00
gillespi314
4d5e3277ef
Add new feature: Software page (#3923)
* Add new software page
* Add hosts counts and last updated to software card on homepage
* Extend InfoCard component to all children to set dynamic title information and hyperlinks
* Add new TeamsDropdownHeader component
* Refactor TableContainer to move server-side pagination buttons to DataTable
* Extend DataTable to include footer element
2022-01-31 16:24:20 -06:00
Noah Talerman
7dafc5ab66
Add policies to standard query library (#3848)
- Add 3 policies to `standard-query-library.yml` and update standard policy templates in the Fleet UI
2022-01-25 15:00:31 -05:00
gillespi314
dea23356de
Improve accuracy of query platform compatibility check when WITH expressions used (#3731) 2022-01-17 20:01:29 -06:00
Noah Talerman
7f5b3cc15c
Update policy template for "Are guest users disabled on macOS devices?" (#3431)
* Update policy's `query` by setting `value = 1` instead of `value = 0`. This way, hosts with guest users disabled respond with "Yes".
2021-12-21 08:20:47 -08:00
Luke Heath
0d52460c27
Allow platform selection on policy query creation (#3338) 2021-12-13 18:21:36 -06:00
Noah Talerman
f717f55cec
Add platform to policy templates in the Fleet UI (#3311) 2021-12-10 15:48:24 -05:00
RachelElysia
eba5d1b1b6
Manage Policies Page: New policy modal (#3108) 2021-12-05 17:12:55 -06:00
Noah Talerman
9e095abddb
On the "New policy" page, update default policy (#3192)
- Update default policy from "Gatekeeper enabled" to "Is osquery running?"
2021-12-03 17:08:10 -05:00
RachelElysia
3b0a454fb5
App wide UI: Fix policies keys (#3145) 2021-11-30 13:24:30 -05:00
Lucas Manuel Rodriguez
964f85b174
Amend policy creation and spec (for proprietary query), and add update APIs (#2890)
* Amend policy creation (proprietary query), add update APIs

* Fix Datastore.SavePolicy bug (and add tests)

* Add integration tests for new policy APIs

* Add author email

* Add activities

* Push breaking changes for return policy fields

* WIP

* Add integration test for host policies

* Make more improvements to policy representation

* Improve upgrade code (from PR review comments)

* PR changes

* Revert activities for policies

* Use *uint instead of uint for queryID, use fleet.PolicyPayload

* Filter out other schemas

* New policy flow (#2922)

* created new policy flow -- no API connection

* added api props

* fixed prop name

* lint fixes

* removed unused modal; fixed style

* name, desc icons; created global components

* lint fixes

* ignoring certain files and lines for prettier

* Update frontend/pages/policies/PolicyPage/PolicyPage.tsx

* Make policy names unique across deployment

* Amend upgrade script

* Fix migration for unique names

* Do not deduplicate but instead rename policies

Co-authored-by: Martavis Parker <47053705+martavis@users.noreply.github.com>
2021-11-24 14:16:42 -03:00
RachelElysia
9cf025a0a5
Fleet UI: No Access only access to dashboard and my account page (#3063) 2021-11-23 11:50:21 -05:00
gillespi314
47dcafa2d5
Enhance UI for query-platform compatibility checks in new/edit query form (#2757) 2021-11-04 18:01:24 -05:00
Luke Heath
e50ca4ece7
Allow team admins to manage scheduled queries (#2738) 2021-10-28 16:23:23 -05:00
Luke Heath
b877c4244c
Hide delete button from team observers on host details (#2709) 2021-10-27 16:33:20 -05:00
RachelElysia
c194f8ae57
Team Admin: Give team admin all team maintainer's permissions for query experience (#2689) 2021-10-26 16:55:53 -04:00
Luke Heath
b12c7ab925
Add UI for team admin role (#2637) 2021-10-26 09:24:16 -05:00
gillespi314
cab1099890
Surface query-platform compatibility in FleetUI (#2640)
- Add functionality to parse sql for platform compatibility based on osquery tables
- Surface query-platform compatibility in create/edit query form
- Surface query-platform compatibility as new column in manage queries table
- Add filter-by-platform feature to manage queries table
- Refactor manage queries page to useQuery and useContext patterns
2021-10-25 13:00:32 -05:00
RachelElysia
57150fde6c
Host Details Page: Paginate user and software tables (#2464) 2021-10-18 15:14:24 -04:00
RachelElysia
981028705e
Sentence Case: Throughout UI, tests, validators, docs (#2455) 2021-10-11 10:58:27 -04:00
Martavis Parker
b6659cfaaa
Refactored Manage Hosts (#2233)
* Add new feature: team policies

* Continue work on team policies

* Continue work on team policies

* Continue team policies

* Revert accidental deletion

* Rename variables

* code refactored; working on runtime errors

* updated front end docs

* Update URLs from team to teams, add tests for policy auth

* Fix test

* Continue work on team policies

* Add permission checks

* mange hosts functional and cleaned up; typing

* improved label logic

* added try catch to awaits

* lint fixes

* frontend unit tests don't work for functional components

* test fix

* revert

* Address errors related to refetch on window focus

* Add loading error check

* Fix typos in loading error checks

* Guard against invariant condition in useEffect

* Update links and routes for team policies

* lint fixes

* Update frontend/pages/hosts/ManageHostsPage/helpers.ts

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>

* Change inherited policies button, tooltip

* lint fixes

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2021-09-30 12:32:06 -07:00
gillespi314
e60f21ea18
Enhance software inventory table (#2105)
Add tooltip to surface bundle_identifier in software inventory table
Add new column to software inventory table to surface "last used" information
Add link from software inventory table to manage hosts page filtered by software id
Replace software vulnerabilities table with info banner directing users to manage hosts page filtered by software id where software-specific vulnerabilities will be displayed
Refactor SoftwareVulnerabilities.jsx using TypeScript
Add utility function for sorting string representations of dates and refactor semantics of existing sort functions
2021-09-28 23:04:58 -05:00
Martavis Parker
8ab5c27621
Fixed passing query info around Query console (#2247)
* refactored state mgmt for query console

* changes files

* lint fixes

* teams e2e test were flaky

* lint fixes

* fixed bug for observer running query, run again button

* fixed inconsistent query body change

* disabled refetch on window focus
2021-09-28 11:33:51 -07:00
Martavis Parker
5d647025f9
1497 improved query experience (#1998)
* Step 1 for improving query experience (#1591)

* fake change to create draft PR

* temp routes to work and not modify old query page

* created new API abstraction for query

* refactored App.jsx to prepare react-query

* fixed flow of redirects after page refresh; functional component added

* setup for getting data on edit

* implementing functions for query page

* Old form showing on new setup

* improving and breaking up query form

* no need for the helpers anymore; clean up

* added type for button component variant

* step toward new save modal; have to switch gears to #1619

* creating new query works

* clean up

* linting cleanup

* added default value for new query

* will address dynamic save disabled in edit step

* Step 2 for improving query experience (select targets) (#1732)

* fake change to create draft PR

* temp routes to work and not modify old query page

* created new API abstraction for query

* refactored App.jsx to prepare react-query

* fixed flow of redirects after page refresh; functional component added

* setup for getting data on edit

* implementing functions for query page

* Old form showing on new setup

* improving and breaking up query form

* no need for the helpers anymore; clean up

* added type for button component variant

* step toward new save modal; have to switch gears to #1619

* creating new query works

* clean up

* linting cleanup

* added default value for new query

* split steps into separate files for readability

* components laid out

* new targets picker

* function clean up

* styling tables

* fixing logic

* fixed logic to keep getting related hosts

* formatting targets for API

* fixed default query

* clean up

* styled target selectors; fixed target input styles

* began total count

* forgot to remove debugging code

* lint fixes

* added target count from API

* clean up

* able to remove selected host targets from table

* lint fixes

* Improving query experience - Step 3 (query results) (#1766)

* fake change to create draft PR

* temp routes to work and not modify old query page

* created new API abstraction for query

* refactored App.jsx to prepare react-query

* fixed flow of redirects after page refresh; functional component added

* setup for getting data on edit

* implementing functions for query page

* Old form showing on new setup

* improving and breaking up query form

* no need for the helpers anymore; clean up

* added type for button component variant

* step toward new save modal; have to switch gears to #1619

* creating new query works

* clean up

* linting cleanup

* added default value for new query

* split steps into separate files for readability

* components laid out

* new targets picker

* function clean up

* styling tables

* fixing logic

* fixed logic to keep getting related hosts

* formatting targets for API

* fixed default query

* clean up

* styled target selectors; fixed target input styles

* began total count

* forgot to remove debugging code

* lint fixes

* added target count from API

* clean up

* able to remove selected host targets from table

* lint fixes

* connected run query with modern React/JS; clean up

* linting fixes

* fixed logic to retrieve results from live query

* linting fixes

* created new, simpler query progress

* populating results and errors tables as expected

* syntax fixes

* fixing styles for query results

* more styling for query results

* manual merge from main

* Rename core->free and basic->premium

* Fix lint js

* Comment out portion of test that seems to timeout

* Rename tier  to premium if basic is still loaded

* go sum

* Query Experience Cleanup Tasks (#1807)

* fixes to get merged main branch to build and work

* moved screens for query pages; clean up

* updated and typed react ace for query form; clean up

* using console error instead

* added real types instead of `any` except for errors

* query side panel ts and functional. prep for close task.

* ability to hide, show query table sidebar

* improved live query status warning

* added loading and error state for targets search

* error screen for targets; improved loading display

* now using API-created label for all linux

* missed some files on previous commit

* able to edit query

* clean up

* lint fixes

* query results showing as they come

* remove unused code

* removed old query page. major file cleanup.

* removed selectedTargets redux implementation

* removed unused redux actions and reducers

* removed unused keys in initial state

* selectedOsqueryTable is now using context API

* removed all querypages redux code

* set up context for app and user

* fixed auth with temp fix for wrapper

* completed redux removal from query page

* fixed var names coming from main branch

* fixed var name changes coming from issue 1501

* fixed save popup bug; clean up

* added permissions

* fixed login redirect

* removed unused props

* linting fix

* clean up

* removed unused component, refactor, and clean up

* fixed styles for step 1 as admin

* fixed styles for step 1 as observer

* fixed percentage of online hosts

* added loading progress to query stop button

* reset query status on run again

* added download icon to export button text

* fixed error reset on name input; fixed styles

* fixed bug where query value wasn't saving

* fixed query value when blank

* fixed bug - default query was running every time

* auto adding host from url to targets

* fixed flows for repeating run and save steps

* fleet ace is now TS and functional

* fixed a couple of tests

* fixed issues with query value text inconsistencies

* fixed query side panel not showing

* hiding error count if not > 0

* fixed showing editor for different roles

* using integer for targets

* go sum

* fixed targets param

* catching all errors while running query

* fixed hover state for title and description

* ignore unit test for now; lint fixes

* locking react-ace version

* ignoring tests breaking in github actions

* brought tests back

* fixing file name

* fixing file name again

* fixed e2e test

* have to ignore tests for now

* ignore certain premium tests for now

* one last test to revamp

* another test

* fixed teamflow test

* fixed observer query 403

* lint fixes

* fixed maintainer test

* added changes file

Co-authored-by: Tomas Touceda <chiiph@gmail.com>
2021-09-10 12:06:37 -07:00
gillespi314
56157617c6
Allow users to schedule queries to run every 15 minutes (#1928)
* Add new 15-min interval option to schedule
2021-09-03 11:26:30 -05:00
Tomas Touceda
6d2ae02efd
Rename core->free and basic->premium (#1870)
* Rename core->free and basic->premium

* Fix lint js

* Comment out portion of test that seems to timeout

* Rename tier  to premium if basic is still loaded
2021-09-03 13:05:23 -03:00
gillespi314
a8c4e10fad
FleetUI: Update Avatar component (#1880)
* Replace default avatar; update components

* Add permanent images folder to website; update paths

* Disable flaky e2e tests
2021-09-02 12:12:42 -05:00
gillespi314
84615afbb3
Fix display of platform labels (#1866)
* Add policies UI components

* Add policy filter to hosts page
2021-08-31 20:02:23 -05:00
gillespi314
452392f5d2
Add new feature: Policies (#1772) 2021-08-30 18:02:53 -05:00
RachelElysia
05691d49ca
Schedule Page - New Feature! (#1333)
- Schedule page functionality: Create (modal), delete (modal), view schedule, advanced options
- Replaces Packs tab with Schedules tab
- Updates e2e tests, mocks, stubs, etc
- Defaults logging type to snapshot for packs
- Adds conversion helpers and tests helper functions
- Adds global_scheduled_queries to redux
2021-07-26 14:41:36 -04:00
RachelElysia
37e267bef9
TableContainer additions: simpleSearch utility and IconCell (#1404)
* Create simpleSearch and IconCell
2021-07-19 08:44:11 -07:00
Martavis Parker
ec23d4ee8e
Select all matching hosts (#1226)
* #940 passing matching props to table; typescript

* #940 fixed use of results title

* #940 logic to swap states of selected and not

* #940 optimized rendering selected text

* #940 began styling to match flexbox spacing

* #940 added logic to API

* #940 clean up

* #940 fixed action

* #940 fixed conflict and coment

* #940 hide select matching if under 100 hosts

* #940 fixed issue with status filter
2021-07-10 10:29:27 -07:00
noahtalerman
0255638f0b
Add persistence to saved columns in "Hosts" table after user logs out (#1131)
- Add `removeItem` method so that we only remove the `auth_token`, and not the saved columns, from `localStorage` when the user logs out
2021-06-18 10:32:51 -04:00
Martavis Parker
5b2cac31d9
Agent options added to organization settings (#1120)
* #511 refactored update options - new params & ts

* updated server to include agent_options for read and update

* added agent options form to org settings

* #511 finished connecting agent form to server

* #511 fixing api to save/read agent options

* #511 linted

* #511 fixed reading & updating agent options

* #511 api fixes to support agent options

* #511 removed log

* Fix json.RawMessage pointers in tests

Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2021-06-17 13:47:15 -07:00
Zach Wasserman
229a9afed2
Change name of localstorage auth token (#980) 2021-06-06 18:28:37 -07:00
Zach Wasserman
db459d3363
Continue to update names in backend code and docs (#976) 2021-06-06 16:58:23 -07:00
RachelElysia
c42f150fac
Query Edit/Run Page: Observer view (#820)
* Query Edit/Run page renders based on user role
* Original UI for global admin/ global maintainer
* New UI for global observer / team maintainer / team observer
* New create new query UI for team maintainer
* Styling matches Figma
* Tests modified accordingly

Styling Closes #859

Co-authored by: Sarah Gillespie @gillespi314
Tests co-authored by: @ghernandez345
2021-05-27 12:06:24 -04:00
Gabe Hernandez
d3932d736d
add permission to host page (#852)
* update genreating of available host table headers based on tier

* stoping point for host permissions

* fixed up available headers for teams depending on permissions

* show select column on host table properly
2021-05-26 13:08:42 +01:00
RachelElysia
daa244ee00
Nav bar: Tabs render by role (#845)
* Nav tabs render based on permissionUtils global role

Co-authored by: @gillespi314
2021-05-25 11:10:13 -04:00
Gabe Hernandez
160ccac7b2
add more permissions (#828) 2021-05-21 15:00:03 +01:00