Access Control List
kubectl create -f istiofiles/acl-whitelist.yml -n tutorial
Then if you do:
customer => preference => recommendation v2 from '6b569c9cfb-g8shk': 5
You will be inside the application container of your pod customer-86ccc8746d-c6kfb
. Now execute:
curl preference:8080
preference => recommendation v1 from '868bf96bfc-425m6': 5
curl recommendation:8080
exit
kubectl delete -f istiofiles/acl-whitelist.yml -n tutorial
Blacklist
We’ll create a blacklist making the customer service blacklist to the preference service. Requests from the customer service to the preference service will return a 403 Forbidden HTTP error code.
curl istio-ingressgateway-istio-system.$(minishift ip).nip.io/customer
customer => Error: 403 - PERMISSION_DENIED:denycustomerhandler.denier.tutorial:Not allowed