-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand SSH tables to support Windows #6161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! @puffyCid do you happen to know if we could get the unit/integration tests for these tables working on Windows too? Are they already running? That might make a really nice addition to this diff, or a good follow-up issue for someone to take on.
Yeah that's a good call out @muffins, we should change the CMake logic such that the integration tests for these tables run on Windows too. https://github.com/osquery/osquery/blob/master/tests/integration/tables/CMakeLists.txt#L125 |
I moved the tables to support Windows tests. But currently it looks like the tests are not implemented to test anything. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@puffyCid ah good call, I'd say we don't need to stress too much about adding in new tests, (if you are feeling up for it though, yeah a good test would be to write out some simple test SSH keys and clean them up after, or do some clever mocking). I mostly wanted to ensure that we had tests hooked up, so if we get tests for the other tables they'll apply to Windows too. I'd say just moving the integration tests to build for all platforms should be sufficient. Thanks!
Starting with Windows 10 1803, Windows now includes a SSH client (OpenSSH) by default.
This minor PR simply expands the existing ssh_configs and user_ssh_keys tables to support Windows.
Let me know if there are any issues.