-
Notifications
You must be signed in to change notification settings - Fork 142
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
Adversarial tests for provenance-only workflow #133
Comments
@laurentsimon Do we really need adversarial tests? The seem to be inherently flaky and only really seem be testing the sha check that we do when uploading/downloading the artifact between jobs. We already check most of the important stuff like modifying the binary in our existing e2e tests |
I think we want the checks for places where we upload/download to/from the artifact registry, in order to validate that tampering is detected. This is really important since the re-usable workflow is different from the Go re-usable workflows. So I'd say yes for the first item. The other twos are less important. The release one is flaky and does not add much security anyway. The second item on the list is simple enough that we could add it. Wdut? |
For the generic provenance we don't build the artifacts or upload/download them so there's not really anything to actually test for the first. I can maybe take a stab at the second and/or third, though I actually think they are pretty much all flaky and depend a lot on timing. Several of the ones for the Go workflow have just not been creating issues for other reasons. See slsa-framework/example-package#71 |
ah right, I forgot it all happens in a single VM. Good point. I suppose item 2 is the only one we may verify then? |
Yeah, if we can get it to work. |
this one should be easy, since it does not involved timing |
SG |
I may not even need to write the one for invalid path either since the generic workflow doesn't have an input config file. I'm assuming the corresponding test for the Go workflow is this one. |
You're correct. Maybe you can write one with invalid subject formatting instead? |
@laurentsimon added tests here:
I think we can close this now. |
Depends on #28
Adversarial tests:
The text was updated successfully, but these errors were encountered: