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

Fuzzing: Initial set up #443

Closed
wants to merge 1 commit into from
Closed

Fuzzing: Initial set up #443

wants to merge 1 commit into from

Conversation

AdamKorcz
Copy link
Contributor

@AdamKorcz AdamKorcz commented Sep 23, 2021

This PR adds the initial set up for fuzzing of the source-controller.

It is currently work in progress that is being shared to allow for any feedback, comments or suggestions that anyone should have along the way. The files in this pull request will be modified.

There are 5 fuzzers available at this moment, and these are all built in the Dockerfile. They can be run when building the image, or they can be run in a Docker shell.

The 5 fuzzers are:

1: FuzzRandomGitFiles

Creates a git repository with pseudo-random files and dirs and instructs the git controller to reconcile.

2: FuzzGitResourceObject

Creates a GitRepository object with pseudo-random values and instructs the git controller to reconcile.

3: FuzzHelmchartController

Creates pseudo-random helm charts and instructs the controller to reconcile.

4: FuzzStorageArchive

Tests the storage archive util api.

5: FuzzStorageCopy

Tests the storage copy util api.

To run the fuzzers without a docker shell:

git clone https://github.com/AdamKorcz/source-controller --branch=fuzz1
cd source-controller/fuzzing
# Now uncomment either of the fuzzers in the bottom of the Dockerfile
sudo docker build . --tag flux-fuzzing-image

The fuzzers will now build and the selected fuzzer will run.

To run the fuzzers in a docker shell:

git clone https://github.com/AdamKorcz/source-controller --branch=fuzz1
cd source-controller/fuzzing
sudo docker build . --tag flux-fuzzing-image
sudo docker run -it flux-fuzzing-image
cd controllers
/fuzzers/$FUZZER_NAME

The fuzzer will now run.

@AdamKorcz AdamKorcz changed the title [Draft] Fuzzing: Initial set up Fuzzing: Initial set up Sep 30, 2021
@AdamKorcz AdamKorcz marked this pull request as ready for review September 30, 2021 21:04
Signed-off-by: AdamKorcz <adam@adalogics.com>
pjbgf pushed a commit to pjbgf/source-controller that referenced this pull request Feb 8, 2022
This PR refactors and supersedes: fluxcd#443

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Co-authored-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Co-authored-by: AdamKorcz <adam@adalogics.com>
pjbgf pushed a commit to pjbgf/source-controller that referenced this pull request Feb 8, 2022
This PR refactors and supersedes: fluxcd#443

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Co-authored-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Co-authored-by: AdamKorcz <adam@adalogics.com>
@pjbgf pjbgf mentioned this pull request Feb 8, 2022
pjbgf pushed a commit to pjbgf/source-controller that referenced this pull request Feb 8, 2022
This PR refactors and supersedes: fluxcd#443

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Co-authored-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Co-authored-by: AdamKorcz <adam@adalogics.com>
pjbgf pushed a commit to pjbgf/source-controller that referenced this pull request Feb 8, 2022
This PR refactors and supersedes: fluxcd#443

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Co-authored-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Co-authored-by: AdamKorcz <adam@adalogics.com>
pjbgf pushed a commit to pjbgf/source-controller that referenced this pull request Feb 8, 2022
This PR refactors and supersedes: fluxcd#443

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Co-authored-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
Co-authored-by: AdamKorcz <adam@adalogics.com>
@stefanprodan
Copy link
Member

Superseded by #572

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.

2 participants