Commit Graph

1988 Commits

Author SHA1 Message Date
RachelElysia
dea20a96b2
Add team's enroll secret GET request to API docs 2021-06-16 18:09:49 -04:00
Zach Wasserman
6249beb465
Reorder migrations for pre-4.0 upgrades (#1114)
Reorder migrations from the long-running `teams` branch to ensure that
they can run successfully for deployments upgrading from a pre-4.0
release.

All migrations from the `teams` branch are reordered to take place
_after_ all migrations from the `main` branch, using `20210601` as the
new date, after the latest released `main` branch migration on `20210526`.

Fixes #1058
2021-06-16 11:58:00 -07:00
Zach Wasserman
774bc4ef93
Fix loading of enroll secrets for Teams (#1113)
Trigger logic based on presence of Basic tier, rather than absence of
Core tier.

Fixes #1100
2021-06-16 11:57:47 -07:00
gillespi314
0279139632
E2e testing: Add stopDockerHost command to Cypress tests (#1112)
* Add stopDockerHost command to e2e tests
2021-06-16 13:09:52 -05:00
Zach Wasserman
d78c5fd124
Clean up service and return license errors (#1097)
- Expose license errors instead of permission errors by adding explicit skip authorization.
- Remove pre-Teams authorization checks from service.

Fixes #964
2021-06-16 10:55:41 -07:00
gillespi314
40b756e46e
E2E testing: Cypress e2e tests for RBAC (#1096)
* Add e2e test for dual-role team maintainer/observer

* Refine tests for global admin role
2021-06-16 12:43:25 -05:00
RachelElysia
1d3b624be2
E2e Testing: Fleet Core global observer (#1099) 2021-06-16 13:40:23 -04:00
RachelElysia
8a77d64e65
Test basic global observer only (#1101) 2021-06-16 13:39:51 -04:00
gillespi314
7a7943ddce
Add Cypress test for core-tier global admin role (#1094) 2021-06-15 18:46:23 -05:00
RachelElysia
8fd35b9626
E2e Testing: Fleet Core global maintainer and Fleet Basic global maintainer (#1095)
* Basic global maintainer e2e test match manual QA doc
* Core global maintainer e2e test match manual QA doc
2021-06-15 15:21:57 -04:00
Zach Wasserman
233cce6120
Handle missing server_url in setup (#1093)
Improve error handling to avoid a nil pointer panic in the setup endpoint.
2021-06-15 11:25:52 -07:00
gillespi314
2dbeea528e
Cypress e2e test for teams global admin (Fleet basic tier) (#1082)
* Add cypress test for Basic tier - Admin user

* Add cypress test for Basic tier - Admin user

* Refine Cypress tests for global admin role

* Fix linting error
2021-06-15 12:57:03 -05:00
Zach Wasserman
663641d521
Add commands for enrolling hosts in E2E tests (#1089)
- Add `addDockerHost` and `stopDockerHost` commands.
- Example usage in test.
2021-06-15 10:14:57 -07:00
noahtalerman
fb12ed10ca
Add hosts count to Team details page (#1090)
- Display number of hosts assigned to a team on the Team details page
- Add back button styles to "Back to teams" link
2021-06-15 13:04:32 -04:00
Martavis Parker
4bfeddda79
Escape key closes modals (#1088)
* Closes #922

* #922 added Windows section to build docs

* go sum updated

* updated go sum

* fixed #963 - calling teams api if not on core

* added command for seeding queries

* added command default to higher level

* linted test

* only need 2 queries

* fixed e2e command for seeding queries

* fixes #952 - added esc key binding to modals

* #952 lint fix
2021-06-15 09:56:23 -07:00
RachelElysia
5e52ba7aea
User Management Page: Edit user's email flash message (#1084)
* Render flash message with sender/receiver information on user's email update
2021-06-15 10:35:28 -04:00
noahtalerman
0f244140cc
Edit message for set up, forgot password, and change password (#1083)
- Add the `hint` that is used on the _Set up_ page to the _Change password_ form and _Reset password_ form
- Add a consistent error message when a password fails to meet the criteria. Using the phrase "criteria below" because all pages render the above `hint`
2021-06-15 09:51:04 -04:00
RachelElysia
023e931911
Fix create user for basic tier (#1081) 2021-06-14 16:49:06 -04:00
noahtalerman
9b1cd14839
Fix set up flow styles (#1073)
- The RegistrationForm component now uses 'fleet' for class names. Update classnames in this component's stylesheet to use 'fleet'
2021-06-14 15:45:43 -04:00
Martavis Parker
38d3bec074
Corrected API route for testing (#1078)
* Closes #922

* #922 added Windows section to build docs

* go sum updated

* updated go sum

* fixed #963 - calling teams api if not on core

* added command for seeding queries

* added command default to higher level

* linted test

* only need 2 queries

* fixed e2e command for seeding queries
2021-06-14 11:27:20 -07:00
RachelElysia
de116a3cb0
Important directories and their use cases 2021-06-14 11:04:49 -04:00
RachelElysia
5e3beb367f
Typos 2021-06-14 09:42:56 -04:00
RachelElysia
35a49ed87e
Fix code converting 2021-06-14 09:39:05 -04:00
RachelElysia
c276395f49
Update Cypress README.md (#1071) 2021-06-11 18:41:27 -04:00
Martavis Parker
172fbbb43f
Added command for seeding queries (#1061)
* Closes #922

* #922 added Windows section to build docs

* go sum updated

* updated go sum

* fixed #963 - calling teams api if not on core

* added command for seeding queries

* added command default to higher level

* linted test

* only need 2 queries
2021-06-11 14:27:19 -07:00
Zach Wasserman
e7cffa221d
Update release documentation (#1060) 2021-06-10 17:08:43 -07:00
Zach Wasserman
0a22b9195e
Rename components and errors in setup flow (#1059) 2021-06-10 17:01:18 -07:00
gillespi314
6040f88964
Fix styling of action dropdown button (#1048)
Fix styling of action drop drown button for `hover` and `focus` states to match _Users_ tab
2021-06-10 12:18:20 -04:00
Zach Wasserman
662406d705
Add support for license key in fleetctl preview (#1050)
- Use optional --license-key flag to add a license key.
- Corresponding change in osquery-in-a-box: https://github.com/fleetdm/osquery-in-a-box
2021-06-10 09:17:49 -07:00
noahtalerman
b78ab0e9ba
Update CHANGELOG and bump versioning for prerelease (#1051) 2021-06-10 12:15:38 -04:00
noahtalerman
7104d0312e
Fix for cannot run query for selected teams (#1037)
- Fix ability to run live query against teams
- Update unit tests to support live queries against teams
2021-06-10 11:37:25 -04:00
RachelElysia
78fb7e22cc
Query Edit/Run Page: Conditionally render Teams grouping in select targets dropdown (#1040)
* Conditionally render teams in targets dropdown
* Modify tests accordingly
2021-06-10 11:35:42 -04:00
RachelElysia
5dd538e2cc
Missing detroy function (#1049) 2021-06-10 11:33:00 -04:00
RachelElysia
5e40afa8ba
Clean up linter warnings (#1026)
* Fix 25+ linter warnings
Co-authored by: Sarah Gillespie @gillespi314
2021-06-10 10:00:03 -04:00
Zach Wasserman
0a99ec751c
Fix targeting Teams in live queries (#1043)
Properly handle the `TargetTeam` type, allowing live queries to
successfully execute against Teams.

Part of #1022
2021-06-09 18:56:57 -07:00
Zach Wasserman
6a18b2a250
Appropriately filter teams returned in targets API (#1042)
Fixes #1021 by adding the appropriate teams filtering.
2021-06-09 18:05:04 -07:00
gillespi314
b419958b73
Change user settings dropdown for current user (#1036)
* Change user settings dropdown for current user

* Restyle action dropdown
2021-06-09 18:51:27 -05:00
noahtalerman
718c644471
Documentation for RBAC and teams (#472)
- Add permissions.md and teams.md
2021-06-09 19:12:45 -04:00
noahtalerman
9b6c8d36e4
Additions and changes to Fleet REST API for multiple teams (#383)
- Add API documentation for Teams and RBAC features support
2021-06-09 19:11:48 -04:00
RachelElysia
6e5a45eb60
Host Details Page: Hide action buttons for observers only (#1027) 2021-06-09 19:05:14 -04:00
RachelElysia
c695093c70
Create/edit user modal: Renders new UI for Fleet Core (#1029) 2021-06-09 19:04:14 -04:00
noahtalerman
fce7d3bef5
Fix ability to run a live query when coming from host details page (#1035)
- Add `queryId` to `fetchTargets()` function call
2021-06-09 18:54:59 -04:00
Martavis Parker
121de5a87f
Fixed Manage Hosts Page Calling Teams API on Core (#1038)
* Closes #922

* #922 added Windows section to build docs

* go sum updated

* updated go sum

* fixed #963 - calling teams api if not on core
2021-06-09 15:17:50 -07:00
Zach Wasserman
e8bb0f9eb5
Allow team user to view host details page (#1033)
Fixes #1019
2021-06-09 13:09:43 -07:00
Zach Wasserman
8c97b36764
Set up Cypress testing for Teams/Tiers (#1005)
- Update names/roles of users in `make e2e-setup`.
- Update test SSO user info.
- Add Cypress commands for seeding users/Teams.
- Stub Cypress tests for team/tier matrix.
2021-06-09 11:56:59 -07:00
RachelElysia
588a48dd67
User Management Page: Teams column renders for basic tier only (#1023)
* Render teams column only for Basic tier

Co-authored by: Sarah Gillespie @gillespi314
2021-06-08 19:14:52 -04:00
RachelElysia
84182e4f49
Live query error message (#1007)
* Rewrite and style live query error
2021-06-08 19:10:22 -04:00
RachelElysia
f57768b131
Fix Teams tab push bug (#1008) 2021-06-08 13:21:50 -04:00
RachelElysia
70e416f263
No teams tab for Core Tier (#1001)
* Teams tab renders for basic tier only
2021-06-07 19:17:16 -04:00
noahtalerman
8b13e354f8
Add link to simulated host instructions in Testing docs (#997)
- Add link testing documentation that points to instructions for starting up containerized hosts in the development environment.
2021-06-07 19:07:18 -04:00