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

When running launcher in dev mode, it does not get the updates #1743

Open
directionless opened this issue Jun 7, 2024 · 1 comment
Open

Comments

@directionless
Copy link
Contributor

directionless commented Jun 7, 2024

When we run launcher in dev mode (say, as bin/agent), it is run with a temporary root directory. Because it's a temp root dir, it's missing the information about updates. This is a small problem in dev mode.

Fixing this has 2 parts.

  • First, we need to do something with the update library so it looks in the prod root dir. (Maybe we should just use update_directory and bake that into the k2 controller?
  • Second, we need to make sure you don't need root to find the newer launcher updates. (IIRC, this was related to TUF, but we can consume this from the sqlite db)

Also, remember osqueryd. Have to get osquery udpates too

@RebeccaMahany
Copy link
Contributor

There's a fairly quick workaround for this -- when running the agent in dev mode like this, you can include the flags -autoupdate -autoupdater_initial_delay 1m -autoupdate_interval 1m, and then launcher will download both launcher and osquery updates into its temporary root directory's update directory.

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

No branches or pull requests

2 participants