Commit Graph
1700 Commits
Author SHA1 Message Date
RachelElysiaandRachel Elysia Perkins d7fbf55131 Website font and schedule button (#676)
* Correct fonts: Nunito and Nunito Sans

* Modify schedule demo button

* Arrow speed

* Add all font weights to website font

* Globalize font size for header, paragraph, footer

* Readable color for dropdown-item:active

Co-authored-by: Rachel Elysia Perkins <rachel@fleetdm.com>
2021-04-28 16:31:43 +09:00
Mike McNeil 0c98343972 Give Golang some love (see https://man7.org/linux/man-pages/man5/gitattributes.5.html) 2021-04-27 17:47:17 -05:00
RachelElysia b11c906eba Software Inventory on Host Details Page (#643)
* Build SoftwareList in HostDetails page if host.software exists for user
* Render message for no labels/packs/software

Reviewed and suggested changes by: Noah Talerman <noah@fleetdm.com> and Zach Wasserman <zach@fleetdm.com>
2021-04-27 16:55:33 -04:00
Mike McNeil dfbc9f9961 Fixes issue #0 (#688)
* option 1  (this is the quickest fix)

* option 2: This shows how to handle it inline

* whoops, fix prev commit (I forgot to pull out of the "if")

* closes https://github.com/fleetdm/fleet/issues/0 -- this remove headerClass altogether in favor of using existing "page" local, eliminating the need for a headerClass view local -- see https://github.com/fleetdm/fleet/issues/0#issuecomment-827752563 for explanation

* one further simplification that avoids `page` getting unintentionally used elsewhere in other .ejs files (also isHomepage is easier to cmd+f and find in code)
2021-04-27 13:08:33 -05:00
Mike Thomas 8e1742805a Daily query 2021-4-27 (#683)
Get startup items
2021-04-27 15:03:54 +09:00
Zach Wasserman 0e0cc44f36 Improved handling for long values in software inventory (#682)
- Increase version length to 255.
- Truncate any values too large.

Fixes #681
2021-04-26 14:01:05 -07:00
Mike Thomas 468dd28130 Create get-os-version.md (#670)
Add "Get OS version" to query handbook
2021-04-26 16:12:57 -04:00
Zach Wasserman e8669818eb Initial backend software inventory implementation (#678)
- Maintain software inventory with detail queries.
- Associated database migrations.
- Feature flagged off by default (see documentation for details to turn on).
- Documentation.
- New test helper for slice element comparisons skipping ID.
2021-04-26 08:44:22 -07:00
Mike Thomas 1f6123fac1 daily-query-library (#680)
Get mounts
2021-04-26 13:55:31 +09:00
Zach Wasserman 6860dec81a Update flags for development cAdvisor (#679)
Updates to a minimal set of permissions for working cAdvisor.

Tested with Docker Desktop 3.3.1 on macOS 11.2.3
2021-04-23 17:58:23 -07:00
Mike Thomas 23ba4be402 Updated header text on homepage (#673)
- Updated header text on homepage
- Add new log destination graphics
2021-04-22 11:23:21 -07:00
Mike Thomas bb488607b4 Create get-authorized-keys (#658)
- Add "Get authorized keys" query to `handbook/queries`
- Edit "Get installed ___ software" queries for all platforms to prepare for adding software inventory to the host details API endpoint
2021-04-20 11:45:20 -07:00
RachelElysia 8c969316dc Fix linting issues from Query page edits (#667)
* Export Results button iff results && no errors
* Export Errors button functional
* Fullscreen always option
* Fix linting issue
2021-04-20 13:57:17 -04:00
Zach Wasserman efb1c3940a Test E2E CI (#662)
Due to Go build caching in #687, the dependencies were sometimes not started before the E2E test. This PR reorders startup of the dependencies so that they should almost always have time to finish startup.
2021-04-19 18:19:29 -07:00
RachelElysia 03a68348ae Query Buttons: Export Results and Export Errors (#638)
* Fullscreen mode always an option
* Export Results button iff results && no errors
* Export Errors button added

Suggestion added by: @noahtalerman <noah@fleetdm.com>
2021-04-19 18:20:24 -04:00
RachelElysia f37d872dd4 Fix react key issue (#648)
* Fix key issue
* Fix non-unique hostname selection bug
2021-04-19 18:14:43 -04:00
RachelElysiaandRachel Elysia Perkins 8b5a436dc8 Flowtest E2E settings (#654)
* Fill out form, pseudocode check updated fields

* Create update assertions

* Update page before assertions

* Start advanced options

* Add advance options

Co-authored-by: Rachel Elysia Perkins <rachel@fleetdm.com>
2021-04-19 17:44:31 -04:00
Zach Wasserman 5350acb904 Update documentation about TLS configuration (#656) 2021-04-19 11:58:44 -07:00
Mike Thomas 871ba3940d Add count-apple-applications to query handbook (#653)
- Add "Count apple applications" to query handbook
- Add supported platforms to query index in `/handbook/queries` README
2021-04-16 16:50:20 -07:00
Zach Wasserman 1e78c0ffe2 Speed up CI build/test (#657)
- Use NODE_ENV=development for Webpack in CI.
- Add caching for Webpack modules in development.
- Remove time of day from dates in version string (helps with build caching).
- Use Go cache in CI.

This makes about a 20% savings on the total time for the CI run.
2021-04-16 16:14:56 -07:00
noahtalerman 568efc9497 Edit label and Add label frontend fixes (#644)
- Moves `isEditLabel` out of `<ManageHostPage />`'s state and into its props. The implementation is now similar to `isAddLabel`.
- Add `selectedFilter` to the URL path when editing or adding labels. This helps navigate the user back to the selected label after they click "Cancel" when editing or adding.
2021-04-16 10:54:55 -07:00
RachelElysiaandRachel Elysia Perkins 182b7f2f13 MIA host icon and styling (#649)
* Add Mia circle, can't overrride Mia letter casing

* Uppercase MIA

Co-authored-by: Rachel Elysia Perkins <rachel@fleetdm.com>
2021-04-16 12:14:48 -04:00
RachelElysia 05aa92b5b3 Revise query help tooltip (#618)
* Refactor query help to use IconTooltip
* Modify styling to match Figma
2021-04-15 16:52:56 -04:00
noahtalerman 02a12709b7 Switch selectedTargets.count with targetsCount (#645)
- Fix handling of live query error when the number of hosts targeted is 0.

PR #641 attempted to handle the case when a user, running a live query, selects a label that contains 0 hosts. 

The fix in this earlier PR introduced a bug that prevented the user from running a live query at all!
2021-04-14 19:22:12 -07:00
noahtalerman 6ebc0a1a08 Handle hosts that have not had details updated in "Hosts" table (#642)
- Render "Never" in the "Last fetched" column if the value of `detail_updated_at` is improbable.
Resolves #639
2021-04-14 16:21:00 -07:00
noahtalerman f9896ace5d Add error case for selecting a target with 0 hosts (#641)
- Add an error message to handle the case when the user runs a live query with a target that contains 0 hosts
- Add unit test
2021-04-14 11:38:37 -07:00
Zach Wasserman 7e85d71d9c Add documentation for connecting to development MySQL shell (#637) 2021-04-13 11:07:39 -07:00
RachelElysia 4436f5d93f Update testimonials on homepage (#621)
* Remove 2 testimonials
* Add inline testimonial
Reviewed and minor edits by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2021-04-13 09:57:23 -04:00
Zach Wasserman e961cfe0c3 Batch updates to host seen time (#633)
Instead of synchronously updating the seen_time column for a host on an update, batch these updates to be written together every 1 second.

This results in a ~33% reduction in MySQL CPU usage in a local test with 4,000 simulated hosts and MySQL running in Docker.
2021-04-12 16:22:22 -07:00
noahtalerman 1d1b26ee89 Prepare queries for Software inventory (#634)
This PR includes changes to the "Get installed ___ software" queries in the query handbook (4 total. 1 for each OS supported by osquery). 

- Add `type` column to all queries.
- Add `architecture and `install_time` column to Linux query.
- Add `architecture` column to FreeBSD query.
- Remove `opera_extensions` clause because osquery doesn't have an `opera_extensions` table.
2021-04-12 13:01:31 -07:00
Zach Wasserman 49c669a38f Support .exe files in fleetctl updates command (#631)
Properly handle the .exe extension that is required on Windows for a
file to be executable.
2021-04-12 09:55:36 -07:00
Gabe Hernandez efb35b537a add prettier and have it format all fleet application code (#625)
* add prettier and have it format all js code except website:
:

* trying running prettier check in CI

* fix runs on in CI

* change CI job name

* fix prettier erros and fix CI
2021-04-12 14:32:25 +01:00
noahtalerman df5fa7f515 Add Detect high severity vulnerable versions of OpenSSL to query handbook (#630)
- Adds Detect Linux hosts with high severity vulnerable versions of OpenSSL to query handbook
  - Includes query to retrieve OpenSSL version
  - Includes query to retrieve OpenSSL version
2021-04-09 17:28:17 -07:00
Joseph Henrich 7499f37cda Fix promote/demote user doc (#629)
I believe this is just a copy/paste error from the enable/disable section.
2021-04-09 15:54:49 -07:00
RachelElysia 46d957a367 Fix hotkeys in Ace Editor (#617)
- Corrects Cmd + L (selects URL bar)
- Corrects Cmd + F (opens find command)

Closes #304
2021-04-09 08:50:47 -07:00
RachelElysia b7f81a8c39 E2E tests for query flow, label flow, packs flow (#611)
Label flow
  - Create a new label and make sure it shows up on the hosts page
  - Edit the label name
  - Delete the label

Query flow
  - Create a new saved query
  - Edit the query
  - Delete the query

Pack flow
  - Create a pack
  - Edit the pack name
  - Schedule a query
  - Remove a query from the pack
  - Delete the pack

Closes #597
2021-04-09 08:47:16 -07:00
Zach Wasserman 9064ef9b59 Clean up Go dependencies (#619)
Removes unused libraries and switches a use of bmizerany/assert to
stretchr/testify/assert.
2021-04-08 16:45:04 -07:00
RachelElysia d4374b7f48 Add query created alert (#620) 2021-04-08 14:49:31 -04:00
Mike Thomas 5a06a47e9e Query library - Get USB devices (#610)
Add Get USB devices query to query handbook
2021-04-07 16:35:58 -07:00
noahtalerman 9ec90bfe6e Provide documentation for reporting issues with the Fleet UI (#613)
- Add 2 sections in `CONTRIBUTING.md` these 2 sections correspond to the "Bug report" and "Report a security vulnerability" issue templates
- Add "Is this an issue with the Fleet UI" to "Bug report" section in `CONTRIBUTING.md`. This includes a walkthrough for opening the browser's JS console and network requests
- Fix misspelled file name
2021-04-07 16:30:32 -07:00
noahtalerman f5e862a00d Prepare 3.10.1 (#608) 2021-04-06 16:07:15 -07:00
RachelElysia 3a4f13d1e4 Correct description field on packs page (#593) 2021-04-06 18:29:12 -04:00
Zach Wasserman fd13b3a72c Fix carve documentation flag order (#605)
Update the docs to be consistent with stricter flag parsing in 3.10.

Fixes #602
2021-04-06 14:43:00 -07:00
noahtalerman 90e82a62b3 Fix frontend bug on "Edit pack" page (#604)
Changes part of Fleet 3.10.0 prevented the frontend from handling any values other than `darwin`, `linux`, `all`, and `windows`. Users that manage packs via fleectl and the Fleet UI may encounter this bug when using 3.10.0.

- Adds a case for the frontend to handle `freebsd`, `posix`, `any`, and any other string specified in the `platform` key in pack configuration.
2021-04-06 14:41:07 -07:00
RachelElysia 0474999bd2 Add get-started page to fleetdm.com (#590)
* Add get-started page
* Includes Styling
* Includes Routing switch
Review and suggestions added by: noahtalerman <47070608+noahtalerman@users.noreply.github.com>
Review and suggestions added by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2021-04-06 11:23:13 -04:00
Mike Thomas a5c77b0a04 Update and rename find-hosts-with-the-firewall-disabled.md to detect-… (#594)
- Update and rename find-hosts-with-the-firewall-disabled.md to detect-hosts-with-the-firewall-disabled.md
2021-04-05 18:40:05 -07:00
Mike Thomas d0ca7cd808 Update and rename platform_info_snapshot.md to get-platform-info.md (#595)
- Update and rename platform_info_snapshot.md to get-platform-info.md
2021-04-05 18:39:42 -07:00
noahtalerman 114dd94770 Update query library README and add contributor template (#592)
- Update the `/handbook/queries` README with description, contributors section, and additional links
- Add template for contributors
2021-04-05 14:18:19 -07:00
Zach Wasserman 505d53b02b Refactor MySQL tests into package mysql (#586)
Moving the tests into the package allows the coverage tool to function properly.
2021-04-05 11:04:53 -07:00
Mike Thomas 5a2fcd279f Create get-wifi-status.md (#588)
Add "Get wifi status" query to query handbook
2021-04-05 10:36:29 -07:00