Commit Graph

894 Commits

Author SHA1 Message Date
Kyle Knight
0d6aa52ce2 Remove extraneous flash success messages (#1226) 2017-02-23 09:49:16 -06:00
Mike Arpaia
bce8985a38 Renaming license-checker to license (#1263) 2017-02-22 17:45:44 -07:00
Mike Stone
ff19f81dbe Improve format of delete requests (#1258)
* Improve delete request format
2017-02-22 12:45:01 -05:00
Mike Stone
cfc390b179 Renders All Platform Icon if platform is null (#1243) 2017-02-22 11:05:06 -05:00
Zachary Wasserman
5be9d69165 Ensure config values roundtrip properly through config_dump (#1266)
- Set the appropriate yaml tags for dumping
- Add test to verify roundtrip

Fixes #1261
2017-02-22 07:22:19 -08:00
Zachary Wasserman
44a95e3192 Retrieve correct platform in detail queries (#1265)
Previously we were using `build_platform`, which does not always properly
reflect the platform of the host running osquery. Now we should properly
retrieve the platform.

Fixes #1264
2017-02-21 19:22:34 -08:00
Mike Stone
6446fee2f4 Render label description or default description (#1215) 2017-02-21 17:40:59 -05:00
Kyle Knight
11d1838226 Fix Password Reset on tablet (#1224) 2017-02-21 09:04:02 -06:00
Kyle Knight
b580e2e57b Stop horizontal scrolling on /setup (#1220) 2017-02-21 09:01:03 -06:00
Zachary Wasserman
3bab6bae18 Use SELECT DISTINCT in favor of GROUP BY (#1251)
In some MySQL configurations, using a GROUP BY that doesn't refer to every
column in the SELECT will throw errors. Replace the use of GROUP BY with SELECT
DISTINCT as this is also more clear as to the intentions of the query.

Fixes #1249
2017-02-17 11:19:27 -08:00
Mike Stone
8b4b43fb82 938 pack query inspector (#1177)
* API client for patching a scheduled query

* Change select to check on ScheduledQueriesLists

* Clicking a scheduled query list item selects the scheduled query

* Helpers to format scheduled queries for client/server

* Allow updating a scheduled query

* Form cancel button
2017-02-17 13:11:43 -05:00
Mike Stone
de57acc39a Link query name to the query page (#1248) 2017-02-17 13:11:12 -05:00
Zachary Wasserman
c0d87cb69a Use persistent MySQL for local server, tmpfs MySQL for tests (#1245) 2017-02-17 09:15:10 -08:00
Zachary Wasserman
9ecff79da9 make generate before building release binaries (#1246) 2017-02-16 16:41:49 -08:00
Victor Vrantchan
1ee94d4f75 add mysql client certificate support (#1240) 2017-02-16 17:14:00 -07:00
Mike Stone
803bc41366 New query page updates (#1229)
* Stop rendering results when query hasn’t been run

* Adds QueryPageSelectTargets component

* Re-arranges target select input on Query Page

* Adds label to KolideAce component

* Re-arrange inputs on the Query Form component
2017-02-16 15:31:21 -05:00
John Murphy
146ee18c62 Fix for bug #1236 (#1244) 2017-02-17 01:02:49 +08:00
Victor Vrantchan
fdb3c55562 add tools and scripts to generate apt and dpkg repositories (#1183)
the scripts in tools/pkgrepos can be used to update apt and yum repositories as well as create zip archives for a release. 

The dl.kolide.co repository is archived as a static bucket on GCP.
2017-02-16 11:47:10 -05:00
John Murphy
f8d9f4095c Bug #1233 (#1242) 2017-02-16 23:01:20 +08:00
John Murphy
c8d284fd3c Email confirmation fix (#1231)
* Email confirmation fix

* Added test for incorrect auth user confirming e-mail change
2017-02-16 21:07:20 +08:00
Mike Stone
b22e41d175 Removes resolve link from SMTP Warning on App Settings Page (#1208) 2017-02-15 13:29:04 -07:00
Mike Stone
28f83abbf9 Enable basic autocompletion (#1199) 2017-02-15 13:28:17 -07:00
Mike Stone
ff74ba2233 Edit labels (#1207)
* Moves LabelForm outside of the QueryForm component

* Render LabelForm in ManageHostsPage

* API client to update labels

* Edit button styles
2017-02-15 09:51:19 -05:00
Mike Arpaia
63f0d21b47 Return a full label response when modifying a label (#1228)
close #1222
2017-02-14 15:28:34 -07:00
Mike Arpaia
b7673931a7 Make README link to public docs site (#1216) 2017-02-14 13:16:35 -07:00
Mike Arpaia
a90bb0f623 Updating the migrations docs (#1218) 2017-02-14 13:16:26 -07:00
Mike Arpaia
e8f1285364 Removing glide instructions from building code docs (#1217)
I think these were useful when none of us knew how to use glide except
@groob and needed copy-pasteable commands to run, but this seems like
it's much less useful now.
2017-02-14 13:16:16 -07:00
Mike Stone
545961ad5b Login user after setup (#1200) 2017-02-13 20:08:48 -05:00
Zachary Wasserman
e0c767bc1e Update JS password validation (#1213)
Fixes #1212
2017-02-13 15:34:24 -08:00
Mike Stone
b32e489716 Fix JS test warnings (#1209) 2017-02-13 18:19:00 -05:00
Mike Arpaia
b8805803fd Installation docs (#1214)
* Adding infrastructure install documentation

* publishing the latest tag on releases
2017-02-13 15:57:16 -07:00
Mike Arpaia
a3589892c3 A simpler attempt at using the payload pattern for scheduled queries (#1210) 2017-02-13 14:31:22 -07:00
John Murphy
6dc56ad5f0 Add ability to modify labels (#1202) 2017-02-12 12:27:43 +08:00
Mike Arpaia
77243b36e3 Linking to the wiki page for public domain licenses (#1206) 2017-02-10 15:51:40 -07:00
Zachary Wasserman
672aaaad6c Proper handling of link for Public Domain in lint-license (#1205) 2017-02-10 14:28:52 -08:00
Mike Arpaia
c16230dac8 Adding a README to the third-party docs and renaming a file (#1204) 2017-02-10 15:11:36 -07:00
Zachary Wasserman
728c2c3475 Add license linting and dependencies.md (#1184)
Adds a `make lint-license` command that will crawl through the Golang and
Javascript dependencies, trying to automatically determine the license of each
dependency. If any dependencies have incompatible licensing (or if the
automatic detection fails), the tool will print an error and exit with a
non-zero status code. After a successful run, the
docs/third-party/dependencies.md file will be updated with attribution
information as determined by the crawl.

The configuration file has been bootstrapped with the manual analysis needed for
all of the existing dependencies.
2017-02-10 12:51:33 -08:00
Zachary Wasserman
f4060402f4 Migrate NPM to Yarn (#1197)
- Modify `make deps` to use yarn
- Add `yarn.lock`
- Add yarn to `kolide-builder` docker image
- Remove `npm-shrinkwrap.json`
- Remove build for `node-sass` (fixes #1151)
2017-02-10 10:22:26 -08:00
Mike Stone
f0f40d3168 Indicate failed hosts on Query Results table (#1192)
* Adds hosts_count attribute to campaign with success/fail/total

* Displays error % in Progress Bar component

* Indicate failed hosts on Query Results table

* Changes ProgressBar background to silver
2017-02-10 09:39:20 -05:00
Mike Stone
e565e03130 License features (#1134)
* API client to create and get an app license

* Fixes unhandled promise rejection errors in redux config

* License Page and Form

* Adds getLicense action

* Adds License key area to App Settings Form

* Use license.token instead of license.license

* Implement API client

* Adds key icon to License Form

* Adds License Success component

* Render License Success on License Page when there is a license

* Adds persistent flash actions and reducer to redux

* Adds nag message middleware

* Moves FlashMessage component to flash_message directory

* Adds Persistent Flash component

* Renders Persistent Flash component from Core Layout

* Adds Kyle's styles

* Change license validation message

* Finishing touches for app config form license area

* Handle revoked licenses

* License Page hits setup endpoint

* Display server errors on license form

* Changes 0 allowed hosts to unlimited

* Trims JWT token before sending to the server

* GET setup page after submitting license
2017-02-09 22:16:51 -05:00
Victor Vrantchan
ec1c3b3b94 reverse order of arguments in error message. (#1196)
Fixing bug introduced in #1195
2017-02-09 20:09:06 -05:00
Zachary Wasserman
430a267b57 Send query campaign totals before results (#1193)
Avoids a bug where the frontend shows "x of 0 Hosts Returning y Records" by
ensuring that the expected total is updated before any results are sent.
2017-02-09 16:12:13 -08:00
Victor Vrantchan
cbd5c9d250 add namedError in addition to baseError (#1195) 2017-02-09 17:27:09 -05:00
Victor Vrantchan
5ddf788052 return a licensing error(instead of 500) when the public key does not match. (#1194) 2017-02-09 16:28:06 -05:00
Zachary Wasserman
de44b39411 Add npm-shrinkwrap.json and pin Bourbon (#1190)
Temporary workaround for #1189
2017-02-09 12:13:04 -08:00
John Murphy
7988076799 Licensed endpoints (#1188) 2017-02-10 02:43:45 +08:00
Mike Stone
77e83b986c Avoid page flashing on the User Management Page (#1191) 2017-02-08 16:38:11 -08:00
Mike Stone
9ef04d8f16 Locks jsdom at version 9.9.1 (#1187) 2017-02-07 19:43:19 -05:00
Victor Vrantchan
838c73ff0a add graceful server shutdown (#1185)
* add graceful server shutdown

Also refactors server to use `http.Server` instead of the global
http.ListenAndServe method. In the future it allows us to set
ratelimits and timeouts for http connections.
2017-02-07 16:02:08 -05:00
Mike Stone
482ff32be6 Display server errors on the Reset Password Form (#1154) 2017-02-07 11:46:08 -08:00