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

cert-manager: run more upstream fuzzers #12786

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions projects/cert-manager/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@

cp $SRC/pki_fuzzer.go $SRC/cert-manager/pkg/util/pki/
cp $SRC/validation-fuzzers/internal/webhook/admission/certificaterequest/approval/fuzz_test.go $SRC/cert-manager/internal/webhook/admission/certificaterequest/approval/
cp $SRC/process-item-fuzzers/pkg/controller/certificates/trigger/fuzz_test.go $SRC/cert-manager/pkg/controller/certificates/trigger/
cp $SRC/process-item-fuzzers/pkg/controller/certificates/revisionmanager/fuzz_test.go $SRC/cert-manager/pkg/controller/certificates/revisionmanager/
cp $SRC/process-item-fuzzers/pkg/controller/certificates/issuing/fuzz_test.go $SRC/cert-manager/pkg/controller/certificates/issuing/
cp $SRC/process-item-fuzzers/pkg/controller/certificates/keymanager/fuzz_test.go $SRC/cert-manager/pkg/controller/certificates/keymanager/
cp $SRC/process-item-fuzzers/pkg/controller/certificates/readiness/fuzz_test.go $SRC/cert-manager/pkg/controller/certificates/readiness/
cp $SRC/process-item-fuzzers/pkg/controller/certificates/requestmanager/fuzz_test.go $SRC/cert-manager/pkg/controller/certificates/requestmanager/

# These test files break the build, so removing; the fuzz tests don't need them
rm $SRC/cert-manager/pkg/controller/certificates/trigger/trigger_controller_test.go
rm $SRC/cert-manager/pkg/controller/certificates/revisionmanager/revisionmanager_controller_test.go

cd $SRC/go-118-fuzz-build
go build .
mv go-118-fuzz-build /root/go/bin/
Expand All @@ -33,6 +39,8 @@ go mod tidy
go mod edit -replace github.com/AdamKorcz/go-118-fuzz-build=$SRC/go-118-fuzz-build
go mod tidy
compile_native_go_fuzzer github.com/cert-manager/cert-manager/internal/webhook/admission/certificaterequest/approval FuzzValidate FuzzValidate_approval
compile_native_go_fuzzer github.com/cert-manager/cert-manager/pkg/controller/certificates/trigger FuzzProcessItem FuzzProcessItem_trigger
compile_native_go_fuzzer github.com/cert-manager/cert-manager/pkg/controller/certificates/revisionmanager FuzzProcessItem FuzzProcessItem_revisionmanager
compile_native_go_fuzzer github.com/cert-manager/cert-manager/pkg/controller/certificates/issuing FuzzProcessItem FuzzProcessItem_issuing
compile_native_go_fuzzer github.com/cert-manager/cert-manager/pkg/controller/certificates/readiness FuzzProcessItem FuzzProcessItem_readiness
compile_native_go_fuzzer github.com/cert-manager/cert-manager/pkg/controller/certificates/keymanager FuzzProcessItem FuzzProcessItem_keymanager
Expand Down
Loading