fleet/server/datastore
John Murphy d5f9fcaeb2 Added FIM support (#1548)
This PR adds support for file integrity monitoring. This is done by providing a simplified API that can be used to PATCH/GET FIM configurations. There is also code to build the FIM configuration to send back to osquery. Each PATCH request, if successful, replaces Fleet's existing FIM configuration. For example:

curl -X "PATCH" "https://localhost:8080/api/v1/kolide/fim" \
     -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2tleSI6IkVhaFhvZWswMGtWSEdaTTNCWndIMnhpYWxkNWZpcVFDR2hEcW1HK2UySmRNOGVFVE1DeTNTaUlFWmhZNUxhdW1ueFZDV2JiR1Bwdm5TKzdyK3NJUzNnPT0ifQ.SDCHAUA1vTuWGjXtcQds2GZLM27HAAiOUhR4WvgvTNY" \
     -H "Content-Type: application/json; charset=utf-8" \
     -d $'{
  "interval": 500,
  "file_paths": {
    "etc": [
      "/etc/%%"
    ],
    "users": [
      "/Users/%/Library/%%",
      "/Users/%/Documents/%%"
    ],
    "usr": [
      "/usr/bin/%%"
    ]
  }
}'
2017-08-18 10:37:33 -05:00
..
inmem Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
internal/appstate Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
mysql Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
datastore_app_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_campaigns_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_decorators_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_email_changes_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_hosts_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_invites_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_labels_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_licenses_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_migrations_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_options_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_packs_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_password_reset_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_queries_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_scheduled_queries_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_targets_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_unicode_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_users_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
datastore_yara_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00
file_integrity_monitoring_test.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
mysql_test.go Rename project to Kolide Fleet (#1529) 2017-06-22 15:50:45 -04:00