mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
c47790d87d
First draft of the enrollment plugin and part of the config plugin. Please comment on potential structure and functionality. They way it's designed to work is this: Both the config and logger plugins will call the enroll getKey function. getKey is in charge of maintaining the state of having a key and doing the enrollment. If enroll has a key, then it will instantly return doing no HTTP requests, if it doesn't, then it will try a few times to get a key, if it's not successful, it fails and returns an empty string, if it succeeds, then it will return the client enrollment key for the requester to use.
16 lines
486 B
CMake
16 lines
486 B
CMake
ADD_OSQUERY_LIBRARY(TRUE osquery_requests
|
|
requests.h
|
|
transports/http.h
|
|
transports/http.cpp
|
|
serializers/json.h
|
|
serializers/json.cpp
|
|
)
|
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_enrollment
|
|
enrollment/plugins/http_enrollment.cpp
|
|
)
|
|
|
|
ADD_OSQUERY_TEST(FALSE requests_tests requests_tests.cpp)
|
|
ADD_OSQUERY_TEST(FALSE json_tests serializers/json_tests.cpp)
|
|
ADD_OSQUERY_TEST(FALSE http_tests transports/http_tests.cpp)
|
|
ADD_OSQUERY_TEST(FALSE enrollment_tests enrollment/enrollment_tests.cpp) |