Zach Wasserman
fa01df79d5
Merge branch 'master' into teams
2021-06-05 06:27:38 -07:00
Zach Wasserman
ae1f41638c
Log subject/object/action with authz failures ( #972 )
2021-06-05 06:22:13 -07:00
Zach Wasserman
08d57b40d1
Remove deprecated kolide names from API routes and configuration ( #957 )
...
Closes #260
2021-06-04 16:51:18 -07:00
noahtalerman
0566fc57f3
Update action button styles on "Manage packs" page and "Manage queries" page ( #960 )
...
- Add `text-icon` variant to buttons on _Manage packs_ page
- Add `text-icon` variant to buttons on _Manage queries_ page
2021-06-04 18:03:32 -04:00
RachelElysia
c68a89b1c3
Team maintainer can add host ( #961 )
2021-06-04 15:19:39 -04:00
RachelElysia
e52e0747ad
Query Edit/Run: Conditional select targets dropdown ( #923 )
...
* Modify targets endpoint to use queryId
* Conditionally render query page including queryId
* Includes conditionally renders target dropdown
Co-authored by: Sarah Gillespie @gillespi314
Test mods co-authored by: Gabriel Hernandez @ghernandez345
2021-06-04 15:13:59 -04:00
Gabriel Hernandez
f181d24698
enroll secret dropdown completion ( #958 )
...
* Add tier permissions for seeing the enroll secret dropdown.
* Hooks up API to show different team enroll secrets when selected from the dropdown.
2021-06-04 11:03:49 -07:00
RachelElysia
e4c866cf7c
Teams grouping in Select Targets Dropdown ( #873 )
...
* Renders targets by team
* Conditional rendering for no hosts available
* Update styling to match figma
2021-06-04 12:37:56 -04:00
RachelElysia
af301be81c
403 Page, routing for tier permissions ( #920 )
...
* 403 page, svg, routing
* Reroute basic tier pages if no permission to access
2021-06-04 12:34:27 -04:00
Zach Wasserman
16a8e13f85
Fix tls_compatibility key in yaml config ( #955 )
...
Closes #271
2021-06-04 08:44:36 -07:00
Zach Wasserman
ec2814d77f
Remove deprecated config options ( #954 )
...
Closes #145
2021-06-04 08:40:25 -07:00
Martavis Parker
cb2682c273
Remove detection for OS during contributor build ( #922 ) ( #933 )
...
- No longer detecting for OS make commands
- Using the same internal commands for every OS
- go.sum auto-updated during build
- Document build process on Windows
2021-06-04 08:10:25 -07:00
Gabriel Hernandez and Mike Thomas
f127f8c2cd
add new permission routes and messaging ( #915 )
...
* add new permission routes and messaging
* add messaing for no permissions
* query-library-os-icons (#913 )
Added query library os icons to website assets.
* fix broken check for config before api responds
Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com >
2021-06-04 14:00:14 +01:00
Mike McNeil
8b04c0c634
make example work from root dir of repo
2021-06-04 01:35:59 -05:00
Mike Thomas
e3e3358aad
website-add-os-logos ( #951 )
...
Added OS logos for use in the Fleet query library.
2021-06-04 12:54:05 +09:00
Zach Wasserman
e4358a92bc
Filter hosts and label counts by teams ( #949 )
...
- Add TeamFilter to relevant host and label methods.
- Pass appropriate filter in service methods.
The dashboard should now show the appropriate hosts for a user's team membership.
2021-06-03 18:53:43 -07:00
Zach Wasserman
b3bafdce24
Return error messages for authentication errors ( #950 )
...
Previously the authorization middleware was masking the error when
authentication failed.
2021-06-03 18:24:23 -07:00
Mike McNeil
f569064943
Update edit link for contributing ( #948 )
...
* Update query-library.ejs
* Update query-library.ejs
2021-06-03 19:44:36 -05:00
gillespi314
71f53e6f4e
Query library improvements ( #945 )
...
* Add contributor avatars to query-detail page
* Add check for contributors; style elements
* Add GitHub avatars, style css, reorder page script
* Add os logos, adjust styles
* Add mobile styles, refactor scripts, prettier
* Update img paths, fix linting errors
2021-06-03 19:34:40 -05:00
Mike McNeil
2e679a9fcf
Update README.md
2021-06-03 18:50:51 -05:00
Zach Wasserman
18faa5a06b
Add authorization checks in service ( #938 )
...
- Add policy.rego file defining authorization policies.
- Add Go integrations to evaluate Rego policies (via OPA).
- Add middleware to ensure requests without authorization check are rejected (guard against programmer error).
- Add authorization checks to most service endpoints.
2021-06-03 16:24:15 -07:00
RachelElysia
1b131bd9db
Packs page: action icons ( #935 )
...
* Render packs page new icons: Enable, disable, delete, search
2021-06-03 16:50:13 -04:00
noahtalerman
7fd439f812
Prepare for Fleet 3.13.0 ( #944 )
...
- Add to CHANGELOG
- Bump versioning
2021-06-03 14:07:33 -04:00
Zach Wasserman
6f51bd9cb5
Remove Redis read/write timeouts ( #943 )
...
If no results were sent over the pubsub channel, the client would hang
up. This would cause the query to seem "hung".
Closes #911
2021-06-03 10:49:25 -07:00
noahtalerman
bf37cb975e
Fix checkbox styles on master branch ( #942 )
...
- Update `Checkbox.jsx` and checkbox styles to align with changes on the `teams` branch
- Edit checkbox styles in the `InviteUserForm` component
2021-06-03 13:46:35 -04:00
RachelElysia
875d6bb6ac
Fix firefox icons ( #931 )
...
* Firefox compatible icons: plus, carat, x
Note: css property `content: url(imagefile);` only compatible with pseudo elements
2021-06-03 09:20:06 -04:00
WangXiang
06b2e564e6
Check whether the infra dependencies are ready before E2E test ( #870 )
...
Fixes #848
2021-06-02 16:56:44 -07:00
noahtalerman
567950d5f0
Fix frontend bug in which target picker rendered incorrectly on master branch ( #934 )
...
- Before the fix the "X" button to remove the target was floating in an odd place
- Edit to replicate new styles found in the teams branch
2021-06-02 18:04:52 -04:00
RachelElysia
0867c717cf
Roles: only observers, only maintainers ( #929 )
...
* User roles render for only team observers and only team maintainers
2021-06-02 15:55:52 -04:00
RachelElysia
0f09c2e837
Render host status icons ( #930 )
2021-06-02 15:53:20 -04:00
Zach Wasserman
5c09f3e5e1
Make create_figma script executable ( #927 )
2021-06-02 11:49:57 -07:00
noahtalerman
fa09131a5c
Specify that Fleet does not support Redis Sentinel in Configuration docs ( #925 )
2021-06-02 12:34:51 -04:00
Zach Wasserman
a40c549d95
Add -trimpath to go build flags for release ( #909 )
...
Provides cleaner error paths in release binaries.
2021-06-01 16:03:52 -07:00
noahtalerman
2dca66c33d
Add Fleet Core and Fleet Basic user/team creation scripts for manual QA ( #919 )
...
- Add `teams/create_core` script
- Add `teams/create_basic` script
- Rename existing script to `teams/create_figma`
2021-06-01 14:50:07 -04:00
Mike Thomas and Mike McNeil
35993ab13b
Update README.md ( #914 )
...
* Update README.md
Added "How to export images" to website section.
* Update README.md
* Update README.md
Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com >
2021-06-01 11:50:13 -05:00
RachelElysia
9469cb0bf1
Packs pages: Edit page empty state rendering, Manage page update UI ( #885 )
...
* Packs: Update empty state, tables, select targets pills, platform pills, icons, phrasing
2021-06-01 09:10:35 -04:00
Mike Thomas
c0644b10c0
query-library-os-icons ( #913 )
...
Added query library os icons to website assets.
2021-06-01 13:01:26 +09:00
Zach Wasserman
417ef2c9b6
Refactor teams service methods ( #910 )
...
- Move team-related service methods to `ee/server/service`.
- Instantiate different service on startup based on license key.
- Refactor service errors into separate package.
- Add support for running E2E tests in both Core and Basic tiers.
2021-05-31 17:07:51 -07:00
Zach Wasserman
9876dbe6b6
Implement license loading and validation ( #908 )
...
- Load license from ES256 signed JWT key.
- Parse license claims into LicenseInfo struct.
- Update contribution documentation with sample license key.
Closes #816 .
2021-05-31 11:35:15 -07:00
Zach Wasserman
a5bd03e5d7
Merge branch 'master' into teams
2021-05-31 10:56:50 -07:00
Zach Wasserman
64f2cfc9cd
Refactor enroll secrets to support Teams ( #903 )
...
- Add `team_id` field to secrets.
- Remove secret `name` and `active` fields (migration deletes inactive secrets).
- Assign hosts to Team based on secret provided.
- Add API for retrieving secrets by Team.
2021-05-31 09:02:05 -07:00
Zach Wasserman
7971209fed
Implement license key generation ( #906 )
...
Adds a Node script for generating JWT license keys.
See the included README.md for details on usage and implementation.
2021-05-30 19:36:12 -07:00
Mike McNeil
6f09fd53f4
Enable freeform issues
2021-05-29 22:22:26 -05:00
Mike McNeil
54af2d2c29
Restore the usefulness of Noah's GitHub notifications
2021-05-29 21:44:41 -05:00
Mike McNeil
09d9a7ce1d
use latest labeling conventions in issue templates ( #904 )
...
* Update feature-request.md
* Update feature-request.md
* Update feature-request.md
* Update config.yml
2021-05-29 21:31:47 -05:00
Zach Wasserman
201fde01c0
Clean up simulated hosts in fleetctl preview ( #893 )
...
The `reset` and `stop` subcommands will now clean up the simulated
hosts. Previously these were unintentionally left running.
2021-05-28 17:19:31 -07:00
Mike McNeil
7bb202f961
Publish fleetdm.com/queries ( #899 )
...
* /sandbox/queries becomes /queries, etc
* Publish fleetdm.com/queries
Expose query library routes the rest of the way, move remediation data sanitization to the point of entry, and update query library to match (pairing w/ @gillespi314)
* Fix accidental commit of sailsrc (again)
2021-05-28 17:51:47 -05:00
gillespi314
0c236fd701
Ship v1 of standard query library ( #898 )
...
* Implement detail page for standard query lib
* Add alt text for image
* Replace id with css class
* Implement query-libary page for fleetdm.com
* Remove console.log
* Implement client-side search for query library
* Add responsive breakppoints
* Fix input tag
2021-05-28 16:57:04 -05:00
Mike McNeil
1512089384
add contributors to a query
2021-05-28 16:46:33 -05:00
gillespi314
e27fda73b2
Implement query-library page for fleetdm.com ( #891 )
...
* Implement detail page for standard query lib
* Add alt text for image
* Replace id with css class
* Implement query-libary page for fleetdm.com
* Remove console.log
2021-05-28 16:00:40 -05:00