-
Notifications
You must be signed in to change notification settings - Fork 298
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
Add automated security policy test scripts #1194
base: master
Are you sure you want to change the base?
Add automated security policy test scripts #1194
Conversation
Hi @MichaelEizaguirre. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these not standard go-based tests?
The name of these scripts may be slightly misleading as they are rather scripts that run the performance tests on certain security policies. |
} | ||
}' > authZPath1000.json | ||
go run ../generate_policies.go ../generate.go ../jwt.go -configFile="authZPath1000.json" > authZPath1000.yaml | ||
echo "Generated a single authZ policy with 1000 paths" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a lot of duplicate here, can we put the common part into a function?
kubectl apply -f authZPath10.yaml | ||
echo "Running variable number of path rules" | ||
echo "Running perf test with conn=8 and qps=100" | ||
pipenv run python3 ../../../runner/runner.py --conn 8 --qps 100 --baseline --duration 240 --load_gen_type=nighthawk --telemetry_mode=none |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please make this load_gen_type
configurable, not hard coded here.
bokeh = "*" | ||
pandas = "==0.24.2" | ||
numpy = "*" | ||
pyyaml = "*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need put a Pipfile in this repo? since all test was trigger under runner/ folder. Just add the dependencies on the existing Pipfile there?
Hey guys, I've put a temporary hold on this PR. It's not clear to me why we're not creating standard Golang tests for security. Can someone explain the use of test scripts instead? Are these load/stability tests? FYI @howardjohn |
@nmittler yep this is to add tests to run with the performance benchmark pipeline |
Hi @nmittler
|
This PR is really just adding some shell scripts to make it easier to run the existing perf tests, not adding any new tests for security. |
@MichaelEizaguirre: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@MichaelEizaguirre: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
These new files added allow for users to run some pre-defined security policy tests. The READ.md also reflects the changes