From 8bb7a415d754d0bb83d96ec0a47a816bfea1d28b Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Tue, 30 Jun 2020 22:56:30 +0900 Subject: [PATCH] Add doc on how to use Istio Authorization with Knative and Istio mesh mode (#2583) * Add doc on how to use Istio Authorization with Knative * Fix nit * Fix nit 2 * Fix nit 3 * Fix review comments * Replace health with healthz * Add comment for mTLS requirment * Fix review comment * Fix review comments * Remove allowing list by namespace --- docs/serving/istio-authorization.md | 65 +++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 docs/serving/istio-authorization.md diff --git a/docs/serving/istio-authorization.md b/docs/serving/istio-authorization.md new file mode 100644 index 000000000..ab1631b1b --- /dev/null +++ b/docs/serving/istio-authorization.md @@ -0,0 +1,65 @@ +--- +title: "Enabling requests to Knative services when additional authorization policies are enabled" +weight: 25 +type: "docs" +--- + +Knative Serving system pods, such as the activator and autoscaler components, require access to your deployed Knative services. +If you have configured additional security features, such as Istio's authorization policy, you must enable access to your Knative service for these system pods. + +## Before you begin + +You must meet the following prerequisites to use Istio AuthorizationPolicy: + +- [Istio must be used for your Knative Ingress](https://knative.dev/docs/install/any-kubernetes-cluster/#installing-the-serving-component). +- [Istio sidecar injection must be enabled](https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/). + +## Enabling Istio AuthorizationPolicy + +For example, the following authorization policy denies all requests to workloads in namespace `serving-tests`. + +``` +$ cat <