kubectl -n istio-system get cm istio -o jsonpath="{@.data.mesh}" | grep disablePolicyChecks
Response: disablePolicyChecks: false
kubectl label namespace default istio-injection=enabled
git clone https://github.com/theganyo/apigee-hybrid-demo.git
cd apigee-hybrid-demo
export GATEWAY_URL=???
kubectl apply -f httpbin.yaml
kubectl apply -f httpbin-gateway.yaml
curl http://${GATEWAY_URL}/headers
kubectl apply -f denier.yaml
Let Istio catch up then try again
curl http://${GATEWAY_URL}/headers
Response: PERMISSION_DENIED:denier.default:Not allowed
Delete denier
kubectl delete -f denier.yaml
Verify ok again
curl http://${GATEWAY_URL}/headers
export ORG=???
export ENV=???
export EMAIL=???
export TOKEN=$(gcloud auth print-access-token)
echo $TOKEN
apigee-istio-linux provision \
--org $ORG \
--env $ENV \
--hybrid \
--developer-email $EMAIL \
--routerBase $HYBRID_RUNTIME_HOST \
--token $TOKEN > handler.yaml
(use apigee-istio-darwin
for mac)
kubectl apply -f adapter.yaml
Ensure it's running
kubectl -n apigee get po -l app=apigee-adapter
kubectl apply -f definitions.yaml
kubectl apply -f handler.yaml
kubectl apply -f rule.yaml
https://github.com/apigee/istio-mixer-adapter#authentication-test