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

[docs][byob] Include information about needed BYOB builder-id input in README #657

Closed
wants to merge 1 commit into from

Conversation

enteraga6
Copy link
Contributor

closes #656

Signed-off-by: Noah Elzner <78953604+enteraga6@users.noreply.github.com>
@@ -208,6 +208,12 @@ The following options are available:

## Verification for GitHub builders

### BYOB BuilderID Caveat

If the Github Builder used to generate the artifacts and provenance is a [BYOB Builder](https://github.com/slsa-framework/slsa-github-generator/blob/main/BYOB.md),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most folks that validate provenance won't know about BYOB. Maybe this should be part of the BYOB.md doc in the generator repo instead? But I see that's it's strange that some builders hosted on our repo still require it and some don't. Maybe we need to fix that in the code, ie if the builder is hosted on the generator repo, then it remains optional. Wdut?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be part of the BYOB.md doc in the generator repo instead?

I think we still fall into the same problem then. If most that validate do not know about BYOB then including it in BYOB.md won't help most. I think adding the caveat in BYOB.md helps a bit at least.

Maybe we need to fix that in the code, ie if the builder is hosted on the generator repo, then it remains optional.

I agree. I think this is the best course of action. When it fails on BYOB generated artifacts, slsa-verifier is able to locate what the correct builderID is:

FAILED: SLSA verification failed: builderID does not match provenance: expected name 'https://github.com/enteraga6/slsa-github-generator/.github/workflows/builder_bazel_slsa3.yml', got 'https://github.com/slsa-framework/slsa-github-generator/.github/workflows/delegator_lowperms-generic_slsa3.yml'

Making it remain optional would work by implicitly loading the builderID flag if it can auto-detect that the builder is from slsa-github-generator. This would solve pain from users who just want to verify the provenance but do not care to learn about BYOB vs native, and make the process smoother.

@enteraga6
Copy link
Contributor Author

pull request closed - check out comments on #656

This pull request was closed.
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

Successfully merging this pull request may close these issues.

[docs][byob] Update docs to reflect that --builder-id is not optional for byob
2 participants