Commit Graph
2153 Commits
Author SHA1 Message Date
Zach Wasserman 1417d01407 Make naming of host columns consistent (#1183)
Adding consistency between API and DB helps to make it easier for users
and developers working with the API to correctly order things.

Closes #317
2021-06-23 17:32:19 -07:00
Zach Wasserman 675e551484 Fix authorization check in reset password (#1182)
Improper authorization checks made it so that users could not reset
their password with a reset token.
2021-06-23 15:59:13 -07:00
Martavis Parker 7af97579fe Frontend of usage statistics (#1177)
* #454 added usage stats disclaimer to setup confirmation

* #454 added new section to settings for usage stats

* #454 fixed vulnerability for hrefs

* removed jsx file

* #454 added logic to checkbox

* #454 created modal to preview usage stats; cleanup

* fixed tests and linting
2021-06-23 15:19:01 -07:00
aggiechris a5bf3d8099 Add hint for flag file on Windows (#1178) 2021-06-23 17:41:27 -04:00
gillespi314 13fe73d640 Add image files for server email templates (#1181) 2021-06-23 15:28:07 -05:00
William Theaker 7bd4f2d395 Update SSO token docs (#1180) 2021-06-23 16:03:34 -04:00
Zach Wasserman 2b3f968478 Fix forbidden error for password reset (#1171)
Access the app config directly through the data store, skipping the
incorrect permission check on the service method.
2021-06-23 08:45:03 -07:00
William Theaker f3ef70358a Replace Okta image, compress others. (#1166) 2021-06-23 08:27:45 -07:00
RachelElysia 50a49b25bf Account settings page: Email update UX (#1142) 2021-06-23 07:29:49 -07:00
Zach Wasserman 879774e60c Add documentation on new --dev_license flag (#1165)
This flag makes it easier for developers to run Fleet in Fleet Basic
tier.
2021-06-22 18:02:40 -07:00
Zach Wasserman 0a77f79d22 Backend and fleetctl for usage analytics (#1167)
- Add enable_analytics column to database.
- Allow enable_analytics to be set via API.
- Add messaging in fleetctl setup.

Note that this defaults to off for existing installations, and defaults
on for newly set up installs.

No collection or sending of analytics yet exists, we are strictly
storing the preference at this time.

Part of #454
2021-06-22 18:02:20 -07:00
Martavis Parker 42272f358f #1108 send users to manage queries if error (#1154)
* #1108 send users to manage queries if error

* #1108 fixed tests and lint

* #1108 fixed more tests

* #1108 new clause to show different error message

* #1108 fixed logic
2021-06-22 16:44:40 -07:00
Zach Wasserman 4800856bf7 Add label ID to get labels response (#1164)
Fixes #1065
2021-06-22 16:41:25 -07:00
Zach Wasserman 5ad1ad1ffd Update development documentation for SSO testing (#1161) 2021-06-22 14:31:26 -07:00
RachelElysia 122895bd08 Host Details Page: Users table (#1152)
Feature renders a Users table based on API host.users
2021-06-22 12:26:57 -07:00
gillespi314 97efed7f9a Handle empty states for name and author fields (#1155) 2021-06-22 14:14:18 -05:00
RachelElysia 8900d1bea3 E2e test: Fleet basic observers - global and team only (#1118)
* Oliver flow with some stubbed code
* Create team observer only test user and stub test (Toni)
2021-06-21 21:29:59 -04:00
Zach Wasserman b859f7b747 Sort labels for membership update (#1156)
This may help with deadlocks on the `label_membership` table. It is not
clear from MySQL documentation whether the order of the records is
significant for locking within a single query. If it is, this should
help the problem. If it is not, this should have no negative impact.

May fix #1146
2021-06-21 16:10:24 -07:00
noahtalerman a63a0ab6f2 Add license section to configuration documentation (#1157) 2021-06-21 18:57:50 -04:00
noahtalerman e02b88d010 Update links to documentation so that they use main branch (#1151)
* Update to main branch

* Update link to releasing Fleet
2021-06-21 16:40:15 -05:00
noahtalerman 17a6c21224 Restructure documentation in preparation for docs living on fleetdm.com (#1143)
* Remove Orbit top level folder and rename folders to Deploying and Contributing

* Update link in doc README
2021-06-18 15:58:21 -05:00
noahtalerman 62e7c1699a Add v to versioning for NPM package and Helm chart (#1145) 2021-06-18 16:40:51 -04:00
noahtalerman d58986494b Prepare for 4.0.0 RC2 (#1138) 2021-06-18 16:34:53 -04:00
Martavis ParkerandZach Wasserman 3af64748ab Pressing Enter on setup's Confirmation page (#1141)
* #917 fixed enter key for last page; TS overhaul

* #917 clean up

* Update frontend/components/forms/FormField/FormField.tsx

Co-authored-by: Zach Wasserman <zach@fleetdm.com>

* #917 fixed tests and linted

Co-authored-by: Zach Wasserman <zach@fleetdm.com>
2021-06-18 13:33:45 -07:00
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
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 Parkerandnoahtalerman 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 ParkerandZach Wasserman 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