Commit Graph
1842 Commits
Author SHA1 Message Date
Zach Wasserman cebd4df0f5 Update live query and targets APIs for Teams (#876)
- Take query_id in live query and target APIs.
- Use query_id to determine observer targets.
- Update documentation.
2021-05-26 20:45:06 -07:00
Gabe Hernandez c018823abf conditionally show add label button (#854) 2021-05-26 13:10:04 +01:00
Gabe Hernandez d3932d736d add permission to host page (#852)
* update genreating of available host table headers based on tier

* stoping point for host permissions

* fixed up available headers for teams depending on permissions

* show select column on host table properly
2021-05-26 13:08:42 +01:00
Zach Wasserman a2a7082bd3 Implement add hosts to team by filters API (#866)
- Add hosts to team using label, status, and query filters.
- Documentation (+ docs for regular add hosts to team).
2021-05-25 21:29:52 -07:00
Zach Wasserman 0e9eb920d4 Refactor struct slices for consistent pointer use (#864)
Some datastore and service methods would return slices of structs,
rather than slices to pointers of structs (which most methods used).
Make this more consistent.
2021-05-25 18:53:22 -07:00
Zach Wasserman 76f8d59290 Refactor usage of null values in Teams models (#863)
- Use pointers rather than null package types.
- Use new internal ptr package.
- Improved handling of changing user teams/roles.
2021-05-25 15:46:46 -07:00
Zach Wasserman fef1ce579e Fix host count for list teams (#861)
- Add test
2021-05-25 15:30:01 -07:00
gillespi314 15ee1f5358 Add sublabel for enable single sign on checkbox (#834)
- Adds the following text below the "Enable single sign-on" option: "Password authentication will be disabled for this user."
- Adds sentence casing so that "Enable Single Sign On" becomes "Enable single sign-on"
2021-05-25 17:04:00 -04:00
gillespi314 5c23bd0d83 Handle empty states for host details (#833)
- Adds handling for edge cases of empty values for host name and other host details
- Checks for empty values (e.g., `""`, `undefined`, `null`, `NaN`) and normalizes to `"---"` for display in UI for host details page
- Wraps calls to Kolide helper functions that transform timestamps and similar data to human readable form so that the UI will display the empty state instead of calling the helper function when argument is `"---"`
2021-05-25 17:03:38 -04:00
gillespi314 09cd3622da Fixes to new pack page (#857)
- Fix "Query pack title" and "Description" input fields so they fill the full width of their container
-  Replace "New Pack" with "New pack" in the page header (sentence casing)
-  Input titles should have the font weight set to $bold
-  Remove the folder icon from the title
-  Remove bold sections from paragraphs including the "(interval = 3600s)," "targets," "individual hosts," and "labels."
-  Change bullet and link colors to $fleet-core-vibrant-blue
-  Replace differential and snapshot kolidecons with png images included in the Figma page.
2021-05-25 17:03:03 -04:00
RachelElysia a6e921c7b8 Query Manage Page: Role based views (#843)
* Removes create new query button from only observers
* Renders CTA ManageQueriesPage side panel
* Renders Observer can run column for non observers
* Fixes integration tests: ManageQueriesPage and SidePanel

UI co-authored by: @gillespi314
Integration tests co-authored by: @ghernandez345
2021-05-25 16:03:32 -04:00
RachelElysia 0395020b6f Fix jumping bug dropdown onClick (#856) 2021-05-25 12:03:16 -04:00
RachelElysia 5689dd8b5d Nav bar: Tabs render by role (#845)
* Nav tabs render based on global role permissions

Co-authored by: @gillespi314
2021-05-25 11:11:05 -04:00
RachelElysia daa244ee00 Nav bar: Tabs render by role (#845)
* Nav tabs render based on permissionUtils global role

Co-authored by: @gillespi314
2021-05-25 11:10:13 -04:00
Zach Wasserman 15b81824f5 Filter query page API responses based on team membership (#850)
- Include only hosts that the user has access to in search targets API.
- Add parameter to specify whether `observer` hosts should be included.
- Generate counts based on which hosts user can access.
- Update API doc.
2021-05-24 21:34:08 -07:00
Zach Wasserman e33391e8d3 Cleanup live query store for orphaned query (#847)
Cleans up a case in which a query could continue to be returned even
after it had been detected orphaned.
2021-05-24 20:36:40 -07:00
noahtalerman fc4924a321 Add note about user passwords generated by teams script to docs (#844)
- Specify that users generated by the script found in `/tools/api/fleet/teams/create` are assigned the password of `user123#`
2021-05-24 17:50:55 -04:00
RachelElysia bbd5741599 Less brittle e2e teams flow test (#831) 2021-05-21 15:44:40 -04:00
RachelElysia ce005779e6 Host details page: Render team (#813)
* Render host team for basic tier only
* No team greyed out
2021-05-21 15:08:35 -04:00
Gabe Hernandez 7926734266 test and team feature improvements (#804)
* add messaging in autocomplete dropdown to show reason why user cannot be selected

* user permission utils

* doc autocomplete dropdown and move it closer to wehre its used

* test for select teams form

* test for data table and transfer host endpoint
gss

* moving host actions and entities to ts

* change host transfer to new endpoint:

* added more tests to data table

* change some comments

* change import path

* fix build TS errors

* change data table test string
2021-05-21 17:29:28 +01:00
Gabe Hernandez 160ccac7b2 add more permissions (#828) 2021-05-21 15:00:03 +01:00
Zach Wasserman 8ec938b272 Include null team name in teams response (#824)
When a host does not have a team, return null rather than a missing
team_name attribute.
2021-05-20 15:27:36 -04:00
Zach Wasserman 82fe7c0035 Fix setting observer_can_run in query API (#823)
Previous work in #777 added the datastore and model layers, but didn't
handle setting this value in the service and transport.

Fixes #822
2021-05-20 10:28:55 -07:00
Zach Wasserman 83b7f79699 Stub out licensing API (#810)
- Add config option for license key.
- Define license details data structure.
- Include license details in app config API responses.

Currently any non-empty value for `--license_key` behaves as though the
installation is licensed for `basic`. If the license key is empty,
`core` is returned.

Still to come is the appropriate parsing for the license key.
2021-05-19 17:29:38 -07:00
Noah Talerman 72882e8f9f Merge branch 'master' into teams 2021-05-19 13:16:54 -04:00
noahtalerman b072fd5fe5 Update CHANGELOG and bump versioning (#806) 2021-05-19 12:09:23 -04:00
RachelElysia 06f89c2978 Website: Pricing page (mobile) (#788)
* Cleaner mobile view

* Website styling and move quote
2021-05-19 10:15:57 -05:00
Zach Wasserman 69f73b56f8 Upgrade dependencies and remove replace directive (#802)
Now that https://github.com/throttled/throttled/pull/87 is merged, we
can remove the stopgap `replace` directive in `go.mod`.
2021-05-18 17:00:20 -07:00
noahtalerman adbcfc6407 Add instructions for resolving failed website deploy action to /handbook (#801) 2021-05-18 18:47:18 -04:00
Zach Wasserman 1638d5e2da Update Redigo version and timeouts (#793)
- Use newer version of Redigo that properly handles TLS mismatch.
- Add timeouts for Redis TCP connection.

Fixes #792
2021-05-18 15:04:14 -07:00
noahtalerman 27cfe19ac2 Disable "Refetch" button for offline hosts (#799)
- Disable "Refetch" button if the host is offline
- Disable the refetch tooltip if the host is in the `refetch_requested` state.
2021-05-18 18:02:39 -04:00
c965e93339 Add persistent fetching to Host details page and edit query modal styles (#791)
* Improve UX custom query option

* Persist custom button on filter

* Remove superfluous CSS

* Edge case custom query button

* Add sentence case and edit modal margins

* Add persistent refetch state. Edit querymodal styles

* verbiage tweak (since filters are cleared)

Co-authored-by: RachelElysia <rachel.elysia.perkins@gmail.com>
Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
2021-05-18 15:46:44 -05:00
noahtalerman 3162b4206f Add link to Loom demo (#790) 2021-05-18 12:40:12 -04:00
noahtalerman f2755ec93e Add icon button styles and edit TableContainer to support styles (#713)
- Add `text-link-icon` button variant
- Add `actionButtonVariant` and `actionButtonIcon` props to `<TableContainer />`.
- Add 3 new icon assets (pencil, trash, and edit columns)
2021-05-18 12:30:57 -04:00
Mike McNeil cc018bcfa6 Add "contributors" to YAML format to enable attribution (#780) 2021-05-18 10:33:40 -05:00
RachelElysia 401eb1b16c Fix website onhover cursor (#786) 2021-05-18 11:23:24 -04:00
Gabe Hernandez d0f839a614 added permission code (#787) 2021-05-18 16:08:48 +01:00
Zach Wasserman ea0c6c8e3f Include team name in host API responses (#781)
Update model and datastore methods to retrieve team name.
2021-05-17 17:52:59 -07:00
noahtalerman d7a4eb6b69 Add manual QA documentation to handbook (#770)
- Add a living "Manual QA" document to Fleet's handbook.
- The goal of this document is to provide a public location to capture Fleet's manual QA process.
2021-05-17 19:19:24 -04:00
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
RachelElysia 2036b4ded6 Host details page: Refetch button (frontend) (#765)
Feature: Refetch button on the host details page
* Button refetches data for an online host
* Button disabled with UI tooltip for an offline host
2021-05-17 19:10:59 -04:00
William Theaker 2d1c8e7d4d Replace README logo with one from orbit (#760)
- Add Fleet logo with transparent background to top-level README
2021-05-17 19:04:16 -04:00
RachelElysiaandgillespi314 117130701a Fix url-prefix links (#769)
* Fix various url-prefix links

Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com>
2021-05-17 17:04:21 -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
Mike Thomas 2401078131 Clickable Fleet logo (#773)
Added a tag to logo
2021-05-17 13:08:43 -05:00
WangXiang 468754f2b9 Format and clean code (#774)
1. use [staticcheck](https://staticcheck.io/) to check the code, and fix some issues.
2. use `go fmt` to format the code.
3. use `go mod tidy` clean the go mod.
2021-05-17 10:29:50 -07:00
Zach Wasserman 027b12e6c4 Fix foreign key cascade for query stats table (#776)
Introduces the appropriate cascading for foreign keys on the
scheduled_query_stats table to prevent errors when deleting the
associated packs, scheduled queries, and queries.

Fixes #764
Fixes #766
2021-05-17 10:26:01 -07:00
Mike McNeil 9a4e3e4c0c 50,000 devices => 100,000 devices 2021-05-17 10:25:19 -05:00