This set of scripts and manifests will aid in exploring an old Istio security issue which allowed malicious Istio users to access Kubernetes secrets they should not have access to. This reproduction is modeled on this blog post which has some problems. See this blog post for details.
- Run
./one_time_setup.shto download the necessary binaries. - Run
./deploy_test.shto deploy the vulnerable version of istio in a vulnerable configuration. - Run
./evaluate_test.shto examine the results of the test.
- Edit
istio_versions.shand switch theISTIO_VERSIONvariable from${ISTIO_VULN}to${ISTIO_SAFE}. - Run
./deploy_test.shto deploy the fixed version of istio in the same vulnerable configuration. - Run
./rollpods.shto bounce the gateway pods so they pick up the new version. - Run
./check_version.shto verify that the fixed version of istio is running. - Run
./evaluate_test.shto examine the results again.