Add IDevID validation for Unary Bootz, and remove redundant interceptor.#347
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the unused InterceptorOpts struct and associated logic from the server, and introduces IDevID certificate validation for both the GetBootstrapData and ReportStatus endpoints. The validateIDevID function has been refactored to support Unary Bootz by extracting peer certificates from the TLS context, as well as Streaming Bootz by manually validating the trust chain. The review feedback suggests adding a defensive nil check for the chassis parameter in validateIDevID to prevent potential nil pointer dereferences, and correcting a typo ('turst' to 'trust') in a code comment.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
No description provided.