-
Notifications
You must be signed in to change notification settings - Fork 103
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
macos presence detection #1867
Merged
James-Pickett
merged 27 commits into
kolide:main
from
James-Pickett:james/presence-detection-macos
Oct 2, 2024
Merged
macos presence detection #1867
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
9d05605
first pass poc at macos presence detection
James-Pickett 97f4287
naming
James-Pickett 566d5bd
rough exec implementation of presence detection
James-Pickett ecd9d3e
add headers to v2CmdRequestType, act on headers in presence detection…
James-Pickett d7efbab
dont show desktop until requested by runner
James-Pickett 4b99368
do presence detection through desktop server
James-Pickett c1eb82d
clean up, lint
James-Pickett 635ec1b
look for reason in header with default, remove unneeded struct
James-Pickett c87a128
put c in own file
James-Pickett 47fbb32
dont use desktop runner singleton
James-Pickett 1fd46c9
build tags in c files
James-Pickett 888643f
presence detection tests
James-Pickett ddc3ada
test that headers are present after opening krypto challenge
James-Pickett 9524d0d
update log
James-Pickett cd65542
dont display desktop in test, just manage process
James-Pickett 6f3bb1a
increase runner test start up time
James-Pickett 15a981d
presence detector return durtion since last detection, add to local s…
James-Pickett aa824b1
tweaks
James-Pickett 8747dd0
skip presence test on non darwin
James-Pickett e12a332
simplify presence detector
James-Pickett dcaa01e
presence detection via ec middleware
James-Pickett 98c8c51
feedback
James-Pickett 4d952b2
make presence detection part of test darwin only
James-Pickett 4e75514
add headers property to response in krypto middleware
James-Pickett c3691bf
comments, feedback
James-Pickett 98a049b
clean tests
James-Pickett f7c79bf
logging tweaks, use same reason for password auth
James-Pickett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Ooh, this is tidy!
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.
I was torn between this route and just passing a flag when we spin up desktop. We are able to show the desktop on demand, but as far as I can tell, there is no way to hide the desktop on demand. When you tell systray to shutdown, it exits the program completely. So if we ever want to hide it, we have to kill the process and let a new one spin up hidden.
I chose this route because I think it's rare that we would turn off the desktop and I don't want to be starting / killing processes on a first install where a user is trying auth for the first time.
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.
I agree, I think that's a reasonable assumption -- this route makes sense to me
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.
I think users will, but I think your reasoning is sound.