Zachary Wasserman
28be59c9a5
Rename ignore-tls flag to insecure ( #1779 )
2018-05-17 16:52:38 -06:00
Thordur Bjornsson
6a4d50c7a6
ensure email and passwords are set during setup ( #1786 )
2018-05-17 08:29:04 -06:00
Thordur Bjornsson
929000ba28
server: formatting ( #1788 )
2018-05-16 23:52:24 -06:00
Kyle Knight
b8795ae0cd
Update README.md ( #1787 )
...
Add GA tracking to Kolide URL
2018-05-16 14:14:35 -05:00
Thordur Bjornsson
d7e1462d10
Check if the jwtToken is valid in authViewer. ( #1785 )
...
Closes #1514
2018-05-16 09:36:35 -06:00
Mike Arpaia
b42e4bacf2
Add name not empty validation for spec types ( #1783 )
2018-05-14 12:23:38 -06:00
Zachary Wasserman
e337b65ada
Fix typoed query name in example pack ( #1780 )
2018-05-10 15:07:14 -07:00
Zachary Wasserman
87331b47e2
Return 404 errors where appropriate in spec endpoints ( #1777 )
2018-05-09 16:54:42 -07:00
Zachary Wasserman
4dfc1ca25e
Improve client error messages with unexpected server errors ( #1776 )
2018-05-09 16:54:23 -07:00
Zachary Wasserman
d7b0abd782
Clean up flag descriptions ( #1778 )
2018-05-09 16:54:07 -07:00
Zachary Wasserman
bef7a99160
Add logging middleware for spec endpoints ( #1774 )
2018-05-09 11:00:48 -07:00
Zachary Wasserman
6e6e390346
Add interactive login support ( #1771 )
2018-05-08 18:34:09 -07:00
Mike Arpaia
f803d55e12
remove fix node-sass ( #1773 )
2018-05-08 18:17:00 -06:00
Mike Arpaia
ab23e60a98
Add fleetctl get label, pack, query for individual items by name ( #1768 )
...
This PR adds support for getting resources by name.
```
$ fleetctl get queries
no queries found
$ fleetctl apply -f ./query.yaml
[+] applied 1 queries
$ fleetctl get queries
+-----------------+--------------------------------+--------------------------------+
| NAME | DESCRIPTION | QUERY |
+-----------------+--------------------------------+--------------------------------+
| osquery_version | The version of the Launcher | select launcher.version, |
| | and Osquery process | osquery.version from |
| | | kolide_launcher_info launcher, |
| | | osquery_info osquery; |
+-----------------+--------------------------------+--------------------------------+
$ fleetctl get query osquery_version
apiVersion: v1
kind: query
spec:
description: The version of the Launcher and Osquery process
name: osquery_version
query: select launcher.version, osquery.version from kolide_launcher_info launcher,
osquery_info osquery;
```
2018-05-08 18:10:01 -06:00
Zachary Wasserman
e8cd007810
Consistent permissions for ~/.fleet/config file ( #1772 )
2018-05-08 17:04:38 -07:00
Zachary Wasserman
bf36d58c51
Allow make build
to build fleet and fleetctl ( #1770 )
2018-05-08 16:56:44 -07:00
Zachary Wasserman
6860761e1c
Add Cloud shoutout in readme
2018-05-08 14:08:56 -07:00
Mike Arpaia
de6dbd0f13
Remove decorators and osquery config from the UI ( #1769 )
2018-05-08 11:03:32 -06:00
Mike Arpaia
2f997b7f22
Merge master
2018-05-07 22:57:08 -06:00
Mike Arpaia
64a75c3b57
fleetctl get labels, queries, and packs ( #1764 )
2018-05-07 20:09:37 -06:00
Mike Arpaia
20fb50a7a6
Add fleetctl delete command ( #1765 )
2018-05-07 20:07:00 -06:00
Zachary Wasserman
d146412364
Implement Get methods for single entities of label, pack and query specs ( #1766 )
...
- Datastore methods (where necessary)
- Service methods
- Endpoints/Handlers
2018-05-07 19:54:29 -06:00
Mike Arpaia
567e3bb228
Update documentation ( #1767 )
2018-05-07 19:53:53 -06:00
Mike Arpaia
2795a61b3c
Working prototype of fleetctl apply ( #1762 )
2018-05-07 17:50:20 -06:00
Zachary Wasserman
0f00c70606
Fixes in query, pack and label clients ( #1763 )
...
- Use authenticated requests
- Don't take a parameter for the Get*Specs methods
2018-05-07 16:30:52 -07:00
Zachary Wasserman
3d1d088be9
Implement clients for labels, packs and queries ( #1760 )
...
Go client methods for making get, set and delete requests on label, pack and
query entities.
2018-05-07 12:44:40 -07:00
Zachary Wasserman
8febf3ed96
Fixes + proposed changes to client error handling ( #1759 )
...
- Fix places where we accidentally return nil when we should return an error.
- Simplify interfaces/implementation of specialized errors
- Use more specific error messages
- Consistent JSON decoding
2018-05-04 14:55:57 -07:00
Caleb Coy
4e8c3482c8
Fleet on ubuntu docs ( #1757 )
2018-05-04 14:10:22 -06:00
Zachary Wasserman
003ad9b5fa
Delete spec entities by name instead of ID ( #1755 )
...
With the UI, deleting by ID made sense. With fleetctl, we now want to delete
by name. Transition only the methods used for spec related entities, as others
will be removed soon.
2018-05-04 11:05:55 -07:00
Mike Arpaia
178cab530f
Update the CLI docs on the master branch ( #1756 )
2018-05-04 11:39:36 -06:00
Mike Arpaia
559e54286f
fix typos in CLI readme
2018-05-04 11:38:53 -06:00
Donovan Schönknecht
12922a89cc
Remove default timestamp to fix strict error ( #1720 )
2018-05-04 11:10:17 -06:00
Victor Vrantchan
2482176d90
update ubuntu docs and add notes on systemd ( #1702 )
...
closes #1593
2018-05-04 11:01:45 -06:00
dso
d1a2c25697
adding the linux development setup ( #1710 )
2018-05-04 10:56:51 -06:00
Mike Arpaia
018e10ea66
Add fleetctl config and auth commands ( #1751 )
...
```
$ fleetctl config set address https://localhost:8080
[+] Set the "address" config key to "https://localhost:8080 " in the "default" context
$ fleetctl config set ignore_tls true
[+] Set the "ignore_tls" config key to "true" in the "default" context
$ fleetctl setup --email mike@arpaia.co --password "abc123"
[+] Fleet setup successful and context configured!
$ cat ~/.fleet/config
contexts:
default:
address: https://localhost:8080
email: mike@arpaia.co
ignore_tls: true
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2tleSI6IlUvdm05Vk9wSG0xUlA4SUtjQnBhb2ovWlo1TXppSEVXcFRCNFNPb2tHQnNLUFpDQXFieVpWWnpJb0UvczQzcWkyd1pHZXJOa29SNFVIQ2hNZUc0K09RPT0ifQ.rHawSN8JvD4jjWAPTYX2Ep9ZpMt3u4mSIQcu920C-_s
$ fleetctl logout
[+] Fleet logout successful and local token cleared!
$ cat ~/.fleet/config
contexts:
default:
address: https://localhost:8080
email: mike@arpaia.co
ignore_tls: true
token: ""
```
2018-05-04 10:53:21 -06:00
Zachary Wasserman
c5f0e5a6b4
Add endpoints for apply/get of each spec type ( #1752 )
...
- Osquery Options (to be renamed to Options after current Options removed)
- Labels
- Queries
- Packs
2018-05-03 18:01:57 -07:00
Zachary Wasserman
f161a3c12c
Update changelog for 1.0.8 release ( #1753 )
2018-05-03 16:57:26 -07:00
Zachary Wasserman
1d9e37b069
Pull decorators from config options ( #1749 )
...
Previously decorators were stored in a separate table. Now they are stored
directly with the config so that they can be modified on a per-platform basis.
Delete now unused decorators code.
2018-05-03 10:14:07 -07:00
Zachary Wasserman
a0d05f4e2a
Merge branch 'master' into fleetctl
2018-05-01 17:26:32 -07:00
Mike Arpaia
920f4afab6
Scaffold the login command ( #1748 )
2018-05-01 16:58:53 -06:00
Mike Arpaia
ee0a400a60
Update the apiVersion used in fleetctl files and docs ( #1747 )
2018-05-01 14:51:54 -06:00
Mike Arpaia
93a346463b
New fleetctl CLI structure ( #1719 )
2018-05-01 12:14:05 -06:00
Zachary Wasserman
71ba2bcbf2
Update JS deps for node-sass fix ( #1745 )
...
Node-sass was broken due to a newer version of NodeJS.
2018-04-30 14:22:50 -07:00
Caleb Coy
753756721e
Updated docs ( #1746 )
...
moved compile instructions to development page, added link to binaries in adding hosts page
2018-04-30 16:46:11 -04:00
angrylogic
c873833a5f
Include RFC822 From header. ( #1743 )
...
The DMARC and DKIM email authentication systems both require the RFC822
From header to function. Kolide currently only includes the configured
sender address as the SMTP Envelop From address (e.g., the MAIL FROM
command). This patch also includes the configured sender address in the
RFC822 email From header which should allow these emails to pass both
DKIM and DMARC authentication.
2018-04-25 09:02:09 -07:00
Zachary Wasserman
4784eb2322
Fix distributed query status parsing for osquery 3 ( #1742 )
...
A change from strings to integers broke the existing code. We now support
either for current and backwards compatibility.
2018-04-24 12:40:11 -07:00
Victor Vrantchan
95c3113632
examples: use curl and jq to work with the API ( #1737 )
2018-04-23 09:21:59 -06:00
Victor Vrantchan
2ded63ea03
add pre-fleet to binary bundle and fix typo
2018-04-16 17:47:10 -04:00
Zachary Wasserman
bb6f3af190
Update changelog for 1.0.7 release ( #1734 )
2018-03-30 11:17:13 -07:00
Caleb Coy
cdcb42e792
removed extraneous text ( #1724 )
2018-03-12 12:04:16 -04:00