Commit Graph
904 Commits
Author SHA1 Message Date
Zachary Wasserman 26dc30bd25 Update query and pack interfaces for fleetctl (#1670)
- Add new Apply spec methods for queries and packs
- Remove now extraneous datastore/service methods
- Remove import service (unused, and had many dependencies that this breaks)
- Refactor tests as appropriate
2018-01-03 11:18:05 -08:00
Zachary Wasserman d6b4de3874 Refactor osquery options interface (#1674)
After discussion with @groob and @marpaia, we have decided that the service
methods should not be aware of any YAML/JSON definitions, and should work
directly with objects. The new pattern we will use will involve converting YAML
to JSON at the client, and then sending the JSON which will be decoded using
the familiar go-kit mechanisms before being passed to the service methods.
2018-01-02 16:22:45 -08:00
Zachary Wasserman 2d3e5c11cb Fix missing removed and shard keys in query packs (#1680)
Include the appropriate values for `removed` and `shard` when generating config
to return to osqueryd.
2018-01-02 16:06:50 -08:00
Zachary Wasserman 5e9fe9d5a1 Transition osquery options interfaces for compatibility with fleetctl (#1649)
- Refinements to options yaml definition
- Datastore and service implementations
- Migration to bring existing options into new table format
2017-12-13 18:14:54 -05:00
Mike Arpaia 45165aa29a Update CHANGELOG for 1.0.6 (#1659) 2017-12-04 15:46:16 -07:00
ferhat elmas 9e0912e2f3 General simplification in go part (#1658)
* don't check if error is nil, return it
 * don't compare bool to bool, use it
 * don't supply capacity to make for slice when len
   is equal to cap
2017-12-04 09:43:43 -05:00
Victor Vrantchan ca5f63dd4f replace support email with github issue link (#1656) 2017-12-01 12:15:50 -05:00
Victor Vrantchan 0b5c3d4111 log the remote IP of the host making a request (#1653) 2017-11-30 19:52:23 -05:00
Matt Mencel 80767bcf8e Update fleet-deployment.yaml (#1652)
The helm deployment of the redis service creates a service called `fleet-cache-redis`.
2017-11-28 11:05:27 -05:00
Mike Arpaia edca82eaf2 Revert "add remote ip address to service logs (#1635)" (#1651)
This reverts commit 11707132bd.
2017-11-27 17:56:09 -05:00
Mike Arpaia 63d60d5f6a always generate new assets when building the binary bundle 2017-11-22 13:19:13 -07:00
Zachary Wasserman 2389e13d80 Fix redis_address documentation error (#1648)
Fixes #1647.
2017-11-20 16:43:03 -08:00
Mike Arpaia ce61fe6adb Fix typo 2017-11-20 10:00:08 -07:00
Victor Vrantchan c08ba5eda9 update deps (#1637)
brings deps up to date for upcoming release.
2017-11-19 11:02:09 -05:00
Greg cb3c14e16a Match release executable name to install commands (#1640)
Current fleet_latest.zip linux executable name is fleet_linux_amd64, which doesn't match sudo cp
2017-11-19 11:01:43 -05:00
Victor Vrantchan 8291119067 use json.RawMessage for result logs (#1636)
Initially fleet decoded the incoming JSON sent to the log endpoint.
Then the log event would be written to a log writer by calling json.Encoder{}.Encode.
Re-encoding logs is lossy; whenever a new field is sent by osqueryd we don't keep up with them.
Instead of caring about the content of the OsqueryResultLog, fleet will now write all log results
exactly as sent to the server by osqueryd.

Closes #1632
Closes #1615
2017-11-18 19:59:32 -05:00
Victor Vrantchan b2771b80c0 rename old references to the binary (#1638) 2017-11-18 19:58:19 -05:00
Victor Vrantchan 11707132bd add remote ip address to service logs (#1635)
Closes #1630
2017-11-18 18:41:23 -05:00
Mike Arpaia 3259e7149b Documenting deploying Fleet on Kubernetes (#1626) 2017-11-17 12:48:59 -07:00
Zachary Wasserman f909f4808b Make OsqueryOptions hierarchical by platform (#1625)
- Allow overriding base config on a per-platform basis.
- Merge FIM configs into the OsqueryOptions object.
2017-11-16 10:58:47 -08:00
Mike Arpaia 907fbcca06 Add SAML bug fix to CHANGELOG 2017-11-16 09:56:23 -07:00
John Murphy 2840caff86 Fixed leaking http client (#1628)
close #1587
2017-11-16 09:53:42 -07:00
Mike Arpaia b251366c1e Each file resource should map to a Fleet data model object (#1627) 2017-11-15 21:23:37 -07:00
Mike Arpaia 607b9141ea Remove OsqueryQueries file type (#1622) 2017-11-15 16:10:11 -07:00
Zachary Wasserman 80d31a2722 Minor copy edits to fleetctl docs (#1621) 2017-11-15 12:06:55 -08:00
Zachary Wasserman 923e4e1f08 Fix issue in which default query runs instead of entered query (#1616)
Verified to work in the following scenarios:
- Saved query loaded and run
- Saved query loaded, edited, and run
- New query edited and run

Closes #1611
2017-11-15 11:20:42 -08:00
Victor Vrantchan d472d7d4bd logwriter: stat file before writing (#1617)
If the file was rotated/deleted the data is never written to disk. Calling os.Stat ensures that the file will be re-created.
2017-11-15 12:34:49 -05:00
groob 7577c1e3b4 update yarn deps 2017-11-15 08:44:45 -05:00
Victor Vrantchan 6bed7c7cd0 close request bodies (#1613) 2017-11-14 18:06:42 -05:00
Mike Arpaia a08d540333 Updating main README (#1609) 2017-11-14 00:34:22 -07:00
Mike Arpaia 767474215f Update new issue link 2017-11-14 00:06:18 -07:00
Mike Arpaia a9ab5b522c Update README.md 2017-11-13 23:53:55 -07:00
Mike Arpaia 481a8589ff Add Host Pagination to the CHANGELOG (#1607) 2017-11-13 23:42:43 -07:00
Zachary Wasserman c769bd45a1 Fix issue rendering hosts with unexpected CPU brand string (#1606)
- Hosts with unexpected CPU brand string render properly
- Other unexpected host CPU information renders properly
- Add tests for host CPU parsing

Fixes #1604
2017-11-13 20:25:41 -08:00
Mike Arpaia a0909e6bee Making the file format more operator friendly (#1605) 2017-11-13 18:11:08 -07:00
Mike Arpaia 1a3bda57ab CLI documentation and design (#1603) 2017-11-13 16:00:40 -07:00
Mike Arpaia 1819a8d867 Update the required Go version 2017-11-13 09:25:42 -07:00
Mike Arpaia 76ce270cbd include forgotten fleetctl config command 2017-11-12 11:59:39 -07:00
Mike Arpaia 796e0af8be Initial CLI and file format for fleetctl
This PR implements a program called `fleetctl` which scaffolds a high level CLI interface which can be used to manage a Fleet server. Configuration is articulated using an intent-based API that resembles the API that is used to configure Kubernetes clusters. The idea here is to use the Kubernetes file format as a pattern to reduce the need for operators to become too intimately familiar with dramatically different file formats. (#1578)
2017-11-12 11:58:19 -07:00
Mike Arpaia 3ed772a251 Update text on login successful page (#1601) 2017-11-12 04:48:34 -05:00
viq 1c009999b7 Use a working MySQL version (#1598)
Use repo that installs `5.7` version of MySQL, as opposed to `5.6` that fails when running `prepare db`
2017-11-12 03:18:02 -05:00
Kyle Knight 78b831a6d2 Hosts Pagination (#1594) 2017-11-07 12:54:56 -05:00
securityclippy 0ad4caa95c Update configuring-the-fleet-binary.md (#1592) 2017-10-30 16:11:03 -04:00
Mike Arpaia 04396c4a37 Set decorator names for default decorators (#1590) 2017-10-27 17:52:24 -04:00
Mike Arpaia 71db872725 Update page title to be Kolide Fleet (#1589) 2017-10-27 17:44:14 -04:00
Victor Vrantchan 5ad562a952 refactor gRPC endpoints with launcher packages in mind (#1582)
The launcher service implementation is an adapter around the TLS service.
All launcher methods that have an equivalent in TLS pass the business logic to the
TLS API.

Closes #1565
2017-10-24 19:55:32 -04:00
Mike Arpaia cbd5187176 Update README.md 2017-10-24 09:12:47 -04:00
Mike Arpaia b1bde9fbfd Update support instructions 2017-10-24 09:12:24 -04:00
Victor Vrantchan c496eb8df2 add health package to create reusable healthz checks. (#1583)
Moved the healthz handler and exposed the CheckHealth method so the same healthchecks could be
used by TLS, gRPC and any other APIs.
2017-10-23 14:39:15 -04:00
Will Davidson 3d32e3cdbf Use public repos for dep to fix #1580 (#1581) 2017-10-20 16:54:57 -04:00