Skip to content
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

dont interact with desktop client while in standby #1700

Conversation

James-Pickett
Copy link
Contributor

No description provided.

@@ -531,6 +531,13 @@ func (r *DesktopUsersProcessesRunner) writeDefaultMenuTemplateFile() {
}

func (r *DesktopUsersProcessesRunner) runConsoleUserDesktop() error {
if r.knapsack.InModernStandby() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we skip here or in the execute loop?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here makes sense! Looking here versus execute, I think when we're in modern standby we would still want to refresh menu data (

case <-menuRefreshTicker.C:
) but maybe not tell clients to pick up the new data (
// Tell any running desktop user processes that they should refresh the latest menu data
) -- so putting the InModernStandby check into these individual functions makes sense to me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not tell the clients in standby.

I forget how menu refresh works, if we skip it, will we miss things, or will we pick things up?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we will still pick up the menu changes and can still have the most updated menu available when we come out of standby

the data to update the menu comes in via the control server update

@James-Pickett James-Pickett changed the title skip desktop health checks and spawning in standby dont interact with desktop client while in standby Apr 30, 2024
@James-Pickett James-Pickett marked this pull request as ready for review April 30, 2024 17:13
Copy link
Contributor

@directionless directionless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's try!

@directionless directionless added this pull request to the merge queue Apr 30, 2024
Merged via the queue into kolide:main with commit 29687be Apr 30, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants