Check the latest GitHub release and use local hints for updating the components#65
Open
Check the latest GitHub release and use local hints for updating the components#65
Conversation
jkaczman
requested changes
Apr 19, 2026
Collaborator
jkaczman
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I would suggest making the server use the hint write/check as well.
There's also merge conflicts.
Otherwise, looks good!
78e6716 to
e488ca8
Compare
Collaborator
Author
|
Good suggestion. I added the use of local hints for the server as well. I fixed the conflict too. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Previously, non-server components such as the camera_hub checked the server version in order to determine when to update. That allows a malicious server to keep these components outdated. Instead, we will now have all the components check the latest GitHub release to decide if they should update or not.
These checks, however, are not frequent, e.g., every 30 minutes in the image we build with our deploy tool. This could create a large downtime for the camera as there can be version mismatch with the server for up to 30 minutes every time we update the server. To address this, when the client_lib http code (used in the camera_hub) sees a version mismatch with the server, it provides a hint to the updater. The updater checks for the hint more frequently, e.g., every minute. If it sees a hint, it checks the latest GitHub release and updates if needed.
This PR also updates the deploy tool accordingly.