Commit Graph

2129 Commits

Author SHA1 Message Date
Zach Wasserman
11daebac39
Properly append to env in preview command execs (#1139)
The previous strategy unintentionally cleared existing environment
values, preventing us from setting a specific version of the Fleet
container to run.
2021-06-18 11:58:15 -07:00
RachelElysia
8ee66f3309
Input field and form field error state (#1132)
Fix other small consistencies: password spacing, dropdown error, error messages, pack form order
2021-06-18 14:56:11 -04:00
RachelElysia
3ed6573ff3
Update flash message styling (#1140) 2021-06-18 14:54:50 -04:00
noahtalerman
e984e6fc14
Render correct "Edit user" modal on the Team details - members page (#1136)
- Determine the current user's correct tier and render the correct "Edit user" modal
2021-06-18 12:49:17 -04:00
Zach Wasserman
19e8da177f
Allow Packs to be targeted to Teams (#1130)
- Add additional target type for packs.
- Refactor pack target datastore.
- Fixes for frontend target selector tier logic on packs page.
2021-06-18 09:43:16 -07:00
Zach Wasserman
2ad557e3b3 Merge branch 'main' into teams 2021-06-18 09:42:20 -07:00
dsbaha
47b423ee29
Add Redis cluster support (#1045)
This should support Redis in both cluster and non-cluster modes.

Updates were made separately to github.com/throttled/throttled to support the slight changes in types.

Co-authored-by: Joseph Macaulay <joseph.macaulay@uber.com>
Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2021-06-18 08:51:47 -07:00
Zach Wasserman
4f8ad2daa0
Return license info after app config modified (#1137) 2021-06-18 08:34:49 -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
RachelElysia
7859784d97
AuthenticatedRoutes conditionally reroutes api_only user (#1123)
* Renders CTA Back to login page if user.api_only
* Edge cases: Redirects to log in for !user and redirect to home for !user.api_only
2021-06-18 10:08:50 -04:00
Martavis Parker
9da1660959
Modal for user password reset (#1121)
* #431 added modal for user password reset

* Update frontend/pages/admin/UserManagementPage/components/ResetPasswordModal/_styles.scss

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

Co-authored-by: noahtalerman <47070608+noahtalerman@users.noreply.github.com>
2021-06-17 13:48:46 -07: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
RachelElysia
1736c59306
Host Details Page: Remove enroll secret (#1124)
* Remove enroll secret
2021-06-17 16:28:59 -04:00
noahtalerman
7fb6a36a49
Move testing email using Mailhog out of the FAQ (#1122)
- Move instructions for connecting to the Mailhog simulated server out of the FAQ
- Merge instructions found in FAQ with existing instructions in `Testing.md`
2021-06-17 15:25:42 -04:00
RachelElysia
9360ed3f64
403 Page for API Only User (#1102)
* Typescript files
2021-06-17 11:11:28 -04:00
RachelElysia
5387deb40f
E2e test: Fleet basic admin - test host on team (#1117) 2021-06-17 10:12:00 -04:00
RachelElysia
eaef007982
E2e test: addDockerHost to a specific team (#1116)
* Add optional argument to addDockerHost for teams
2021-06-17 10:09:12 -04:00
Zach Wasserman
6b59a40dbc
Add backend and fleetctl support for API-only user (#1119)
- Add api_only to users table.
- Pass api_only values through service.
- Allow setting api_only in `fleetctl user create`.

Backend part of #402
2021-06-16 18:11:28 -07:00
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
noahtalerman
133bbb235b
Add reference to FAQ files in Support process doc (#1109) 2021-06-16 12:00:33 -04:00
Mike McNeil
675f520b94
handbook: considerations when closing issues (#1106) 2021-06-16 09:08:40 -05:00
Mike McNeil
3a117e329b
"Query library" => "Queries" 2021-06-16 07:53:26 -05:00
Mike Thomas
005870b3a2
Update layout.ejs (#1104)
Added "Query library" nav item
2021-06-16 21:26:21 +09:00
gillespi314
7a7943ddce
Add Cypress test for core-tier global admin role (#1094) 2021-06-15 18:46:23 -05:00
Mike McNeil
0455ee144b
prepare docs so that images work on website (#1103) 2021-06-15 18:16:16 -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
noahtalerman
dca4cf0790
Add tips for asking follow up questions in support process documentation (#1091)
- Update /handbook/support-process.md
- Add github.com/issues to ignored links in markdown link check
2021-06-15 14:51:45 -04:00
noahtalerman
3fe13be701
Update links to main branch in email templates (#1086)
- Update links to documentation
- Update link to assets by editing `getAssetURL()`
- Prettier did some reformatting of the email template code which is resulting in a larger amount of lines changed
2021-06-15 14:29:20 -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
Mike McNeil
3e15a163ef
add :reproduce label 2021-06-15 11:27:07 -05: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
noahtalerman
f9ce8c9a0f
Add question and answer for missing column error in Using Fleet FAQ (#1076)
- Point users to the upgrading Fleet docs (running database migrations) to resolve `unknown column` error
2021-06-14 11:48:27 -04:00
RachelElysia
de116a3cb0
Important directories and their use cases 2021-06-14 11:04:49 -04:00
RachelElysia
edf1c47298
Add #oncall-chatter and Github Triage link 2021-06-14 09:58:27 -04:00
RachelElysia
5e3beb367f
Typos 2021-06-14 09:42:56 -04:00