Repository navigation
fix: Makes use of WIMSE string, validation into proper method for WIT-SVID - #11
Conversation
Summary of ChangesHello @jsnctl, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the handling of Workload Identity Token - SPIFFE Verifiable Identity Documents (WIT-SVIDs) to align with the WIMSE specification. It includes an update to a core dependency and introduces a dedicated validation method, ensuring that WIT-SVIDs are correctly formatted and validated, particularly concerning the subject claim and token lifecycle. This change enhances the robustness and compliance of WIT-SVID generation and verification. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly updates the cofide-sdk-go dependency and refactors the WIT-SVID creation to use the WIMSEIDString() method for the sub claim. It also introduces a dedicated ValidateWorkloadWITSVID function, which fixes a bug where the incorrect validation function for JWT-SVIDs was being used. The changes look good and improve the correctness of the implementation. I've added a few suggestions to improve the error messages in the new validation function to make them clearer and more helpful for debugging.
| @@ -4,6 +4,8 @@ github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 h1:MzBOUgng9or | |||
| github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129/go.mod h1:rFgpPQZYZ8vdbc+48xibu8ALc3yeyd64IhHS+PU6Yyg= | |||
| github.com/cofide/cofide-sdk-go v0.4.0 h1:1mbn1Slszz3onkp5SHf332MRDJE4ui4uie5Z2OZmhjQ= | |||
| github.com/cofide/cofide-sdk-go v0.4.0/go.mod h1:MJ0iPUH0AmYZebiH5trHRWMvvBo+jLc5J4HwY7bcS0g= | |||
There was a problem hiding this comment.
Probably missed go mod tidy here.
There was a problem hiding this comment.
Well spotted, fix here #12
I don't think we need another release for this as the functionality should be OK for the WIMSE proof-of-concept rig at v0.2.1 despite this
suband validation methods