Commit Graph
1254 Commits
Author SHA1 Message Date
Austin Burnett 57f65e70b8 Allow host expiry window to be altered (#2121)
Fixes a bug in which the event expiry window would not be properly updated.

Fixes #2122
2019-11-12 14:41:16 -08:00
Zachary Wasserman 9782ffaf60 Upgrade lodash to 4.17.15 for security vulnerability (#2148)
There was a prototype pollution vulnerability in 4.17.11 that is
unlikely to have high impact on Fleet due to all JS executing on the
client side. Upgrading lodash to satisfy security warnings from
Github.
2019-11-12 14:39:38 -08:00
Zachary Wasserman 7cb45305b2 Update query scheduling FAQ (#2144) 2019-11-12 08:55:46 -08:00
Lars Lehtonen 0a87bbf496 Fix dropped errors in SSO tests (#2141) 2019-11-11 09:42:31 -08:00
Lars Lehtonen ed9f890ba0 server/mail: Handle error when write fails (#2132) 2019-11-07 08:34:50 -08:00
Brendan Shaklovitz b92c0d3dd6 Update JS deps for node-sass fix (#2126)
Node-sass was broken due to a newer version of NodeJS.
2019-11-07 08:33:04 -08:00
Zachary Wasserman d453ca3f8f Enable eslint file resolution linting (#2119)
Previously this was disabled (perhaps unintentionally due to the
duplicate settings in the .eslintrc.js). Enable the lint rule and fix
the violations.

May fix JS build issues on case-sensitive filesystems.
2019-10-22 13:00:31 -07:00
Zachary Wasserman 75c79efd3b Yarn run commands in local JS environment (#2118)
Ensures that the JS environment specified in the repo is used when running the tools.
2019-10-19 13:49:48 -07:00
Zachary Wasserman adf87140a7 Add ability to prefix Fleet URLs (#2112)
- Add the server_url_prefix flag for configuring this functionality
- Add prefix handling to the server routes
- Refactor JS to use appropriate paths from modules
- Use JS template to get URL prefix into JS environment
- Update webpack config to support prefixing

Thanks to securityonion.net for sponsoring the development of this feature.

Closes #1661
2019-10-16 16:40:45 -07:00
Austin Burnett 59efb495ca Add automatic host expiration capability (#2117)
When configured, this feature will delete hosts that have not checked in after the specified number of days.

Closes #1860.
2019-10-16 16:35:17 -07:00
Matteo Piano 6439828272 Allow host search by UUID (#2116)
- Update MySQL schema to add fulltext index on UUID
- Support UUID in host search query
2019-10-16 10:12:35 -07:00
seph e4cc29a269 Rename remaining file in Admin to admin (#2108)
Improves consistency in directory naming.
2019-10-14 16:39:06 -07:00
William Theaker 12f288730f Update SAML documentation (#2113)
Provide details for Okta and split out Salesforce example.
2019-10-11 15:14:56 -07:00
William Theaker a688b5cf5b Allow idp_name to be 4 characters (#2106) 2019-09-25 10:18:30 -07:00
Zachary Wasserman bf9ae6ec0e Update osquery-go dependency to fix thrift module download problem. (#2105)
Fixes #2102
2019-09-12 17:35:10 -07:00
Zachary Wasserman bc9782e9b0 Fix link flags for version information in binaries (#2099) 2019-08-14 11:49:18 -07:00
Zachary Wasserman a06ad6f4fa Run go mod tidy (#2098) 2019-08-14 11:11:20 -07:00
Zachary Wasserman 7364f1e027 Update changelog for 2.3.0 release (#2097) 2019-08-14 10:59:43 -07:00
Michael Samuel 523967bd74 Add --with-queries flag to get packs (#2095)
Closes #2052 #1975
2019-08-14 10:44:23 -07:00
Zachary Wasserman 27bbf2ae22 Migrate dependencies to go modules (#2094)
These changes should be transparent to users and developers.

Thanks to @davepgreene who made the first stab at this.
2019-08-13 10:32:23 -07:00
Zachary Wasserman 1eccf9a874 Add warning in query UI when Redis fails (#2086)
- Add warning message when Redis fails
- Disable query button when Redis fails
- Refactor SMTP warning banner into component for reuse

Closes #2073
2019-08-13 09:42:58 -07:00
Zachary Wasserman 363b6157c4 Allow scheduled query shard to be set to empty in frontend (#2093)
Fixes #1452
2019-08-13 09:42:02 -07:00
Michael Samuel bdeea59c73 fleetctl: add --yaml flag to get command for labels, packs, and queries (#2092)
Closes #1813
2019-08-13 09:41:40 -07:00
Zachary Wasserman fa10dbe0a8 Use Github hosted assets in emails sent by Fleet (#2090)
This change allows the images in Fleet emails to load properly from any
device with connectivity to github.com. Previously, emails might try to
load resources from a Kolide server not accessible from the email
client.

The asset URL will be based on the most recent git tag to accomodate
backwards-compatibility if the assets in the repo change.

Closes #1471
2019-08-02 14:08:42 -07:00
Zachary Wasserman d64e84ff7f Fix rendering of query type icons for imported yaml packs (#2089)
Fixes #2076
2019-08-01 16:24:23 -07:00
Zachary Wasserman 3b50bf0a5f Update documentation to use enroll_secret_path (#2088)
Fixes #2002
2019-08-01 16:20:22 -07:00
Zachary Wasserman 1344653412 Minor style fixes in frontend (#2084)
- Fix padding in query editor autocomplete box
- Hide cursor in read-only query editor
- Remove styling of active line in query editor (which does not update
  properly and is therefore distracting)
- Fix padding and reorder buttons in delete label modal
2019-07-31 12:05:10 -07:00
Zachary Wasserman 0219779880 Enable Redis tests in CI config (#2083) 2019-07-29 10:15:29 -07:00
Zachary Wasserman c321715e1e Enable MySQL tests in CI config (#2082) 2019-07-29 10:08:54 -07:00
Zachary Wasserman 7b1ecc0c28 Upgrade to Webpack 4 (#2079) 2019-07-29 09:40:16 -07:00
seph 91e365bbd5 Split up Go and JS in CircleCI configuration (#2081)
This removes reliance on the custom kolide/fleet-builder container for CI.
2019-07-29 09:31:42 -07:00
Zachary Wasserman cfffff61cc Update changelog for 2.2.0 release (#2078) 2019-07-16 15:57:21 -07:00
Michael Samuel 969d5f25af Add Google Cloud PubSub logging (#2049)
Adds Google Cloud PubSub logging for status and results.

This also changes the Write interface for logging modules to add a context.Context (only used by pubsub currently).
2019-07-16 15:41:50 -07:00
Zachary Wasserman 26ff78fcf3 Upgrade JS dev dependencies for Node compatibility (#2075) 2019-07-15 10:46:12 -07:00
Zachary Wasserman 1471bea6a6 Update changelog for 2.1.2 release (#2074)
This is coming well after the release because the changelog was
included in the release page on Github but not in the repo.
2019-07-13 16:27:47 -07:00
Jason Meller 07ab5559f7 Update link in README to point to k2 2019-07-08 09:32:04 -04:00
Vegar Sechmann Molvig e513cd275c Fix documentation typos: fileystem -> fileystem (#2070) 2019-07-03 12:41:15 -07:00
Zachary Wasserman c269886389 Fix target search behavior with - and + symbols (#2067)
This PR makes the target search more user-friendly by stripping symbols that
have a special interpretation in MySQL FTS.

Closes #2017
2019-07-03 10:47:43 -07:00
Zachary Wasserman 261b7f916c Save details provided by host during enrollment (#2066)
When an osqueryd agent sends an enroll request it automatically sends
some details about the system. We now save these details which helps
ensure we send the correct platform config.

Closes #2065
2019-07-01 16:50:04 -07:00
Zachary Wasserman f3df07318c Improve server and browser performance on host dashboard (#2061)
- Prevent a second (unnecessary) retrieval of all hosts when page loaded.
- Disable automatic reloading of hosts when over 100 hosts are present.

This is a stopgap solution to reduce the performance impact of
repeatedly loading many hosts. The final solution will be to implement
proper pagination.
2019-06-26 16:03:47 -04:00
Zachary Wasserman 2060d001c6 Run correct query even after targets are set (#2060)
This PR corrects the query editor behavior to run the correct query in
all (tested) circumstances.

Fixes the original issue in #2028 and #2054 (introduced by the fix in #2030)

Closes #2054
2019-06-12 10:39:50 -07:00
Zachary Wasserman bf6c6b3a40 Update docs and Makefile to use Github releases for binaries (#2055) 2019-06-04 13:42:41 -04:00
Zachary Wasserman eb212116dc Merge pull request from GHSA-6g7f-8qm4-f7h8
When LOGIN authentication was used, Fleet would send SMTP credentials
even if the connection the SMTP server was not secured via TLS.

Copying the pattern used in the standard library PlainAuth
implementation, we now only send credentials when the connection is
secure or the server is localhost.
2019-05-30 15:02:17 -04:00
Zachary Wasserman bf36146320 Modify updating documentation to point to Github releases page (#2045) 2019-05-16 17:53:54 -04:00
Zachary Wasserman caae22593f Add 'id' prefix to generated SAML IDs (#2046)
Though the SAML spec does not specify what the contents of the ID must
be, the Azure IdP implementation prohibits it beginning with a number.
We follow their suggestion to prefix with 'id'.

See https://docs.microsoft.com/en-us/azure/active-directory/develop/single-sign-on-saml-protocol.

Fixes #2044.
2019-05-16 13:51:42 -07:00
Zachary Wasserman 918b9facd1 Update changelog for 2.1.1 release (#2036) 2019-04-25 14:01:37 -07:00
Zachary Wasserman 9ef377a2b0 Run correct query when navigating to query by URL (#2030)
Fixes a bug in which the default query would run rather than the query
displayed in the editor unless that query was manually edited after the
page loaded.

Fixes #2028
2019-04-25 11:00:35 -07:00
Eduardo Lopez ad12ee4db4 Allow Firehose authentication using sts credentials (#2034) 2019-04-24 16:30:16 -07:00
Zachary Wasserman 75868a7005 Do not panic after error reading config file (#2033)
Fixes #1445
2019-04-23 15:59:02 -07:00
Zachary Wasserman 5b486a1849 Update logic for setting primary NIC (#2032)
- The most active NIC will be picked even if a formerly more active
  interface still exists (previously, a NIC would stay primary as long
  as it existed).
- Ignore link-local and loopback interfaces when choosing the primary.
- Fix bugs in which update status of the primary interface could be
  reported incorrectly.

Fixes #2020
2019-04-23 15:58:45 -07:00