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

Adding fuzzer for HostPolicy #1872

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

prady0t
Copy link
Contributor

@prady0t prady0t commented Oct 12, 2024

Purpose of PR?:

This is a fuzzer for HostPolicy

func (p *PolicyServer) HostPolicy(c context.Context, data *pb.Policy) (*pb.Response, error) {

For seed corpus I referred to this
To run the fuzz test,

cd KubeArmor/policy
go test -fuzz=Fuzz

Addresses #1367

Does this PR introduce a breaking change?
NO

@prady0t
Copy link
Contributor Author

prady0t commented Oct 12, 2024

@daemon1024 @DelusionalOptimist @Prateeknandle This fuzzer works fine and no changes to the codebase were required. Please have a look

Copy link
Member

@DelusionalOptimist DelusionalOptimist left a comment

Choose a reason for hiding this comment

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

Please squash your commits here as well.

@prady0t prady0t force-pushed the HostPolicy-fuzzer branch 8 times, most recently from 3b31760 to ffc85b2 Compare October 15, 2024 12:27
Signed-off-by: prady0t <rickprimeranjan@gmail.com>

Updating branch

Signed-off-by: prady0t <rickprimeranjan@gmail.com>

Delete KubeArmor/core/testdata/fuzz/FuzzContainerPolicy/bb2a6f290a615f3e

Signed-off-by: prady0t <rickprimeranjan@gmail.com>
@daemon1024 daemon1024 merged commit 8dd10c4 into kubearmor:main Oct 16, 2024
17 checks passed
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.

3 participants