-
Notifications
You must be signed in to change notification settings - Fork 21
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
JSON Schemas for attestors with generation scripts #197
Conversation
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
@ChaosInTheCRD the idea is to have this schema be published into a readable form for https://witness.dev for example so people can understand what the data is they will get correct? |
@matglas that is correct! Probably would be helpful to expose these on the CLI as well. I need to circle back on this at some point and get it ready for merge 😄 |
Signed-off-by: John Kjell <john@testifysec.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and very straight forward. 👍
Two things this made me think about when reviewing:
- How are nested attestors represented (i.e. GitHub/GitLab using the JWT attestor)?
- For the (near-term) future: How do we handle schema versioning?
There's a few things that broke from the VSA stuff (and it'll break again after the Link/SLSA stuff too 😅).
…on-schema Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
…tness into attestor-json-schema Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
@jkjell good catch, it is represented like:
so yeah, the nesting seems to be an issue. I'm not sure what the
Ah, of course we handle versioning with predicate type, but this isn't included in the JSON schema... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good other than the material and product attestor generation. If those are resolved we'll be good to go. ✅
@jkjell with respect to this, should I try and find a solution or do you think it's fine as is for now? |
It's good for now. This is WAY better than what we have now... i.e. the source code. 😂 |
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>
This is a great step forward. Aligning with upstream using protos would be nice, but a lot more work |
No description provided.