Commit Graph
1762 Commits
Author SHA1 Message Date
noahtalerman e18ab29906 Add bash script that creates 3 teams and 12 users to /tools/api (#779)
- Add a bash script that populates the Fleet UI with 3 teams and 12 users. 
- Rename the `/tools/api/kolide` directory to `/tools/api/fleet`
2021-05-17 19:11:11 -04:00
Zach Wasserman 85d9d00096 Add "observer can run" to query objects (#777)
- Database migration.
- Update model and datastore methods.
2021-05-17 12:23:56 -07:00
Zach Wasserman 79138d4b60 Move and refactor host team transfer endpoint (#778)
- Move API endpoint to `/hosts/transfer`.
- Refactor service and datastore methods from teams to hosts.
2021-05-17 12:23:21 -07:00
RachelElysia 4119c07d55 Add modifying agent options to E2e teams test (#775) 2021-05-17 15:23:04 -04:00
RachelElysia bf81875d10 Teams agent options page (#727)
* Team managers can configure agent_options for each team
* Previous osquery_options now passes teamId for team.agent_options 
* Code conversions: JS to TS, global to team specific, class components to functional components

(Linting errors on PR are just those external broken links)
2021-05-14 10:14:19 -04:00
Gabe Hernandez 6fe59719d1 fixed getEnrolled method names (#763) 2021-05-13 15:43:49 +01:00
Gabe HernandezandNoah Talerman 87c4aba10d bulk selecting hosts (#756)
* added teams to add host modal dropdown

* bulk and transfer host on host page

* started transferhost API call

* hook up client side of api

* hook up client side of api call for enrol secrets

* added selection number and clear all selections button

* remove log and document

* fix ManageHostPage tests

* fix linting errors

* add indeterminate styles to checkbox

* added clearable handler for dropdown component

* fix up no team for add modal

* Add active selection styles and move specific host table styles into ManageHostsPage styles

* changed add host team dropdown to include no team option

* add no team option to bulk transfer host options

* change enroll spelling

Co-authored-by: Noah Talerman <noahtal@umich.edu>
2021-05-13 15:30:42 +01:00
Zach Wasserman 1a29a408ce Add support for bulk transfer of hosts for team (#761)
- Relevant datastore method.
- Expose via API endpoint /teams/:id/hosts.
2021-05-12 19:05:45 -07:00
noahtalerman 61c5eceb97 Resolve lint errors and js unit tests (#759)
- Resolves JS lint error and unit tests in the `teams` branch
- We believed these failed tests went unnoticed by CI in #723
2021-05-12 13:52:02 -04:00
Zach Wasserman 9de5b720b4 Implement API endpoints for Teams agent options (#757)
- Add agent options endpoint.
- Remove setting agent options from standard modify team endpoint.
2021-05-12 10:38:00 -07:00
Zach Wasserman 9b4976ef8f Prevent modify user to include global and team roles (#695)
A user should have a global role or roles on some teams, but not both.
This ensures that is set properly and does validation.
2021-05-12 08:31:20 -07:00
Gabe Hernandez 2ab1d106b0 team add new host UI (#723)
* added permissions for adding host button on host page

* added teams to add host modal dropdown

* add placeholder for dropdown and fix some type issues

* added add host redirect modal on team details
2021-05-12 14:06:39 +01:00
Zach Wasserman b1a98a6e91 Update agent options storage for teams (#754)
- Allow agent options to be set on per-team basis.
- Move global agent options into app configs.
- Update logic for calculating agent options for hosts.
- Updates to relevant testing.
2021-05-11 18:15:16 -07:00
noahtalerman 40f2452e46 Change markdown links to relative links (#731)
My changes to the documentation file structure made in #717 resolved all broken documentation links on the `master` branch but not on the `teams` branch. As a result, those developing on the `teams` branch always get a   for the "Markdown link check" test.

- Add relative markdown links in the `teams` branch to resolve failed link test
2021-05-06 10:59:18 -04:00
Zach Wasserman bc42d9e03a Add waits in Teams e2e test (#721)
Waits will hopefully further reduce flakiness.

Add TODO for investigating possible bug in React code.
2021-05-04 16:18:09 -07:00
Zach Wasserman f4e4185a0e Fix for flaky teams e2e test (#720)
Adding a `.contains` selector seems to allow the rendering to complete and the correct dropdown to be clicked.
2021-05-04 12:28:43 -07:00
Zach Wasserman b2b53ecbbe Add agent options on a per-team basis (#696)
Solely API implementation. Does not yet handle returning the options
during agent requests.
2021-05-03 09:32:04 -07:00
Zach Wasserman 596e017d44 Fix admin setup (#701)
Fixes a null pointer issue and clarifies setup logic.
2021-05-03 09:31:51 -07:00
Zach Wasserman 665345c334 Remove extra loginSSO typescript definition (#709)
Fixes failing lint.
2021-05-03 08:31:52 -07:00
Noah Talerman 81bc137195 Merge style variables from master into teams 2021-04-30 18:12:49 -04:00
noahtalerman 0f48eb8525 Bring new style variables from teams into master (#707)
This PR brings the style changes made in the "Align Fleet UI colors with Figma components"
#615 and "Align Fleet UI with Figma (spacing and fonts)" #628 PRs into the master branch.
2021-04-30 17:32:50 -04:00
Gabe Hernandez 00b9c77777 Improve team setting functionality (#704)
This makes some improvements to the team settings pages. These polish up the experience.
2021-04-30 12:13:04 -07:00
Zach Wasserman a17556b2db Merge branch 'master' into teams 2021-04-30 09:40:10 -07:00
RachelElysia 0376555683 E2e test: invite/activate user (#699)
* Tests user invite, email link, and user activation
* Disables cypress fixtures folder

Reviews and suggestions by: Zach Wasserman <zach@fleetdm.com>
2021-04-30 11:47:33 -04:00
Zach Wasserman 1e3d9a4ed0 Fix link to stubs (#700)
Fixes failing "Check Documentation" CI check
2021-04-29 17:34:03 -07:00
mthomas-fleet 6491a25c05 Added ellipse-6x6@2x.png to website
Added ellipse-6x6@2x.png to website
2021-04-30 07:50:36 +09:00
RachelElysia afcd75d227 Testing SMTP email service with Cypress (#659)
* Turn off jest error on cypress library
* Refactor email test into commands.ts
* Test "Hello from Fleet" from updating user settings

Reviews and suggestions by: Zach Wasserman <zach@fleetdm.com>
2021-04-29 13:10:25 -04:00
noahtalerman b4e5097356 Draft API changes to api/v1/fleet/hosts/{id} endpoint for software inventory (#669)
Update documentation for the `api/v1/fleet/hosts/{id}` endpoint to align with the first iteration of Software inventory #399 in Fleet.
2021-04-29 11:25:54 -04:00
noahtalerman dbfbde37b1 Add api/v1/status/ endpoints and api/v1/sso/callback endpoint to REST API docs (#671)
This PR concludes the Complete API documentation project #43

Add documentation for the following endpoints:
- api/v1/status/live_query
- api/v1/status/result_store
- api/v1/sso/callback
2021-04-29 10:45:43 -04:00
Gabe Hernandez a85476c23b implement member page for team details (#685)
* added reducers and kolide api teams code, hooked up empty state

* request for get all teams and remove unused loading bar

* added create team functionality|gs

* update link cell to be more generic

* create teams detail page and hook it up

* added tabbing and styling to top nav team details

* added edit and delete modal functionality

* add in table and modals for members for teams

* created reusable edit user modal and use it in manage teams page

* creating add member autocomplete

* hook up adding members to teams

* hook up real members from api into table, and empty state for table

* fix proptype warning

* hooked up table querying for member page

* added remove member modal

* added tems to edit useres on member page

* finish remove member from team

* fixed up editing on members page

* fix the role value in member table

* fix prettier errors

* fixes from PR comments round 1

* add missing error handler on add member

* add dynamic team name to member page and user dynamic user and team names to succuess and errors

* add test for userManagementHelper module

* fix lint errors

* fix tests

* add member test to row results on member page
2021-04-29 14:47:33 +01:00
RachelElysia 9a6235d38e Scroll to top after updating settings (#692) 2021-04-29 09:24:51 -04:00
RachelElysia 7490878029 E2e test: add/edit/delete team (#694) 2021-04-28 18:14:26 -04:00
Zach Wasserman 6f5a755534 Remove unused assets (#693) 2021-04-28 12:33:28 -04:00
noahtalerman b479adf0f4 Prepare for 3.11.0 (#690) 2021-04-28 12:11:02 -04:00
Zach Wasserman 2bdc39390a Fix handling of MySQL TLS flags (#689)
Incorrect handling of the flags prevented users from setting up TLS
connections to the MySQL server.

Fixes #320
2021-04-28 08:31:19 -07:00
RachelElysia a8ce68f56a Query modal on Hosts Details Page (#660)
* Query modal with error, no saved queries, and saved queries
* Ability to search saved queries
* Renders saved queries
* Queries page link uniquely from selected query/host
* Update hostDetailsPage test and refactored component onto own jsx

Pair programming, reviews, and suggestions: Noah Talerman <noahtal@umich.edu>
Reviews and suggestions: Zach Wasserman <zach@fleetdm.com>
2021-04-28 11:08:00 -04:00
RachelElysia f636cae0bf Teams flash messages (#675)
* Catch error flash messages for team/user create/update/delete
* Success flash messages for team/user create/update/delete
* Actions close modal
2021-04-28 10:44:22 -04:00
RachelElysiaandRachel Elysia Perkins d7fbf55131 Website font and schedule button (#676)
* Correct fonts: Nunito and Nunito Sans

* Modify schedule demo button

* Arrow speed

* Add all font weights to website font

* Globalize font size for header, paragraph, footer

* Readable color for dropdown-item:active

Co-authored-by: Rachel Elysia Perkins <rachel@fleetdm.com>
2021-04-28 16:31:43 +09:00
Mike McNeil 0c98343972 Give Golang some love (see https://man7.org/linux/man-pages/man5/gitattributes.5.html) 2021-04-27 17:47:17 -05:00
RachelElysia b11c906eba Software Inventory on Host Details Page (#643)
* Build SoftwareList in HostDetails page if host.software exists for user
* Render message for no labels/packs/software

Reviewed and suggested changes by: Noah Talerman <noah@fleetdm.com> and Zach Wasserman <zach@fleetdm.com>
2021-04-27 16:55:33 -04:00
Mike McNeil dfbc9f9961 Fixes issue #0 (#688)
* option 1  (this is the quickest fix)

* option 2: This shows how to handle it inline

* whoops, fix prev commit (I forgot to pull out of the "if")

* closes https://github.com/fleetdm/fleet/issues/0 -- this remove headerClass altogether in favor of using existing "page" local, eliminating the need for a headerClass view local -- see https://github.com/fleetdm/fleet/issues/0#issuecomment-827752563 for explanation

* one further simplification that avoids `page` getting unintentionally used elsewhere in other .ejs files (also isHomepage is easier to cmd+f and find in code)
2021-04-27 13:08:33 -05:00
Mike Thomas 8e1742805a Daily query 2021-4-27 (#683)
Get startup items
2021-04-27 15:03:54 +09:00
Zach Wasserman 0e0cc44f36 Improved handling for long values in software inventory (#682)
- Increase version length to 255.
- Truncate any values too large.

Fixes #681
2021-04-26 14:01:05 -07:00
Mike Thomas 468dd28130 Create get-os-version.md (#670)
Add "Get OS version" to query handbook
2021-04-26 16:12:57 -04:00
Zach Wasserman e8669818eb Initial backend software inventory implementation (#678)
- Maintain software inventory with detail queries.
- Associated database migrations.
- Feature flagged off by default (see documentation for details to turn on).
- Documentation.
- New test helper for slice element comparisons skipping ID.
2021-04-26 08:44:22 -07:00
Mike Thomas 1f6123fac1 daily-query-library (#680)
Get mounts
2021-04-26 13:55:31 +09:00
Zach Wasserman 6860dec81a Update flags for development cAdvisor (#679)
Updates to a minimal set of permissions for working cAdvisor.

Tested with Docker Desktop 3.3.1 on macOS 11.2.3
2021-04-23 17:58:23 -07:00
Mike Thomas 23ba4be402 Updated header text on homepage (#673)
- Updated header text on homepage
- Add new log destination graphics
2021-04-22 11:23:21 -07:00
Zach Wasserman e8f4860d51 Add team user management (#672)
- Add list team users endpoint.
- Add add/delete team users endpoints.
- Update list users to support filter by team.
2021-04-21 20:54:09 -07:00
Zach Wasserman af802dc15f Add host and user counts to list teams response (#668) 2021-04-20 13:35:15 -07:00