Once someone has been authenticated, what they can or cannot do depends upon authorization. Mixer plays an important role in authorization enablement in Istio. Let's learn about authorization through some examples:
- First, let's switch to subset v2 of the reviews
$ kubectl -n istio-lab patch vs reviews --type json -p '[{"op":"replace","path":"/spec/http/0/route/0/destination/subset","value": "v2"}]'
virtualservice.networking.istio.io/ratings patched
$ kubectl -n istio-lab get vs reviews -o yaml | grep -B1 subset:
host: reviews
subset: v2
- Refresh https://bookinfo.istio.io/productpage. You should see black stars in the ratings.
Authorization...