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

feat: verify claims in provenance match the certificate #572

Merged
merged 31 commits into from
May 9, 2023

Conversation

laurentsimon
Copy link
Contributor

@laurentsimon laurentsimon commented Apr 24, 2023

I made a change to cache the TUF root during the execution. This should help with regression tests (see function TrustedRootSingleton()).
Additional e2e tests need to be created #571

closes #580
closes #570

errors/errors.go Outdated Show resolved Hide resolved
verifiers/internal/gha/builder.go Outdated Show resolved Hide resolved
verifiers/internal/gha/builder.go Outdated Show resolved Hide resolved
verifiers/internal/gha/builder.go Outdated Show resolved Hide resolved
verifiers/internal/gha/builder.go Outdated Show resolved Hide resolved
verifiers/internal/gha/builder.go Outdated Show resolved Hide resolved
verifiers/internal/gha/builder.go Show resolved Hide resolved
verifiers/internal/gha/builder.go Outdated Show resolved Hide resolved
@ianlewis
Copy link
Member

ianlewis commented May 2, 2023

I didn't take a really close look at the tests but they looked mostly ok to me.

@laurentsimon
Copy link
Contributor Author

All comments addressed. PTAL

@laurentsimon
Copy link
Contributor Author

@asraa can you take a look?

Copy link
Member

@ianlewis ianlewis left a comment

Choose a reason for hiding this comment

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

Sorry forgot to approve.

@laurentsimon
Copy link
Contributor Author

I completely messed up the unit tests. Will take a look later

Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
Signed-off-by: laurentsimon <laurentsimon@google.com>
@laurentsimon
Copy link
Contributor Author

@ianlewis not sure what's wrong with the linter. I've tried to disable the deprecated method check but it's still failing:

Error: directive `//nolint:staticcheck we want to disable SA1019 only to use deprecated methods but there is a bug in golangci-lint.` should match `//nolint:staticcheck we want to disable SA1019 only to use deprecated methods but there is a bug in golangci-lint.[:<comma-separated-linters>] [// <explanation>]` (nolintlint)

Context: golangci/golangci-lint#741 (comment)
I tried disabling the linter in builder.go and builder_test.go.

Signed-off-by: Ian Lewis <ianlewis@google.com>
@ianlewis
Copy link
Member

ianlewis commented May 9, 2023

@ianlewis not sure what's wrong with the linter. I've tried to disable the deprecated method check but it's still failing:

Error: directive `//nolint:staticcheck we want to disable SA1019 only to use deprecated methods but there is a bug in golangci-lint.` should match `//nolint:staticcheck we want to disable SA1019 only to use deprecated methods but there is a bug in golangci-lint.[:<comma-separated-linters>] [// <explanation>]` (nolintlint)

Context: golangci/golangci-lint#741 (comment) I tried disabling the linter in builder.go and builder_test.go.

The //nolint declarations are fairly particular and can't have a leading space and need to have a // delimiter before the comment message. I updated the comments.

@laurentsimon laurentsimon merged commit 3a4e992 into slsa-framework:main May 9, 2023
@laurentsimon
Copy link
Contributor Author

The //nolint declarations are fairly particular and can't have a leading space and need to have a // delimiter before the comment message. I updated the comments.

Thanks!

ramonpetgrave64 pushed a commit to ramonpetgrave64/slsa-verifier that referenced this pull request Apr 18, 2024
* update

* update

* update

* update

* update
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.

feat: use OID.Equal in certificate handling code remove certificate claims after fulcio update
2 participants