Commit Graph
2057 Commits
Author SHA1 Message Date
gillespi314 da6394a6b7 Fix invite email template (#1202) 2021-06-25 14:10:03 -05:00
noahtalerman a21d027518 Add success notification for creating and updating labels (#1205)
- Add "Label created. Try refreshing this page in just a moment to see the updated host count for your label." message after the user successfully creates a label.
2021-06-25 11:58:02 -04:00
noahtalerman 6290bb24e6 Update notification message for inviting users and update notification styles (#1204)
- Add "An invitation email was sent from `sender_address` to `email`." to notification after a new user is successfully invited in the Fleet UI.
- Update notification styles
2021-06-25 11:55:47 -04:00
gillespi314 b02d8c8dd5 Remove unused image file (#1201) 2021-06-24 18:14:25 -05:00
RachelElysia c5ff275783 Replace invitedbyusername with invitedby (#1200) 2021-06-24 14:52:09 -07:00
noahtalerman bf4eb899c6 Add usage statistics documentation to Using-Fleet section (#1196)
- Add new `usage-statistics.md` file
- Update link in the Fleet UI to point towards new docs
2021-06-24 16:59:25 -04:00
RachelElysia aeb852e168 Remove username from UI (#1168)
* Remove username from UI code
* Remove username from tests
* Remove username from database
* Modify server endpoints for removing username
* Implement backend aspects of removing username
* Update API docs
* Add name to fleetctl
2021-06-24 13:42:29 -07:00
gillespi314 4909c0a4c5 Update email templates (#1175)
* Update email templates

* Update image file locations for email templates
2021-06-24 14:56:26 -05:00
Zach Wasserman 9d5c87ecf2 Fix additional permission error in reset password (#1187) 2021-06-24 08:59:43 -07:00
gillespi314 c51ef4447d Revise help text on team members page (#1179)
* Revise help text on team members page

* Update Cypress test
2021-06-23 22:20:56 -05:00
Zach Wasserman 763e69bc81 Use global options as default for new teams (#1184)
When creating a new Team, copy the global options so that the Team is
not initialized with null options.
2021-06-23 17:32:31 -07:00
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
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
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 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