# Mesh-wide settings, in the root namespace. Policies here also apply to the # ingress gateway, which outside users reach with no mesh identity, so # authorisation policies belong in each application namespace. --- apiVersion: security.istio.io/v1 kind: PeerAuthentication metadata: name: default namespace: istio-system spec: mtls: mode: STRICT --- # Access log entries for refused and failed requests, with the caller's # identity, the target, and the reason. Envoy writes them to the sidecar's # standard output, where the host log shipping or your cluster's log agent # picks them up for the SIEM. apiVersion: telemetry.istio.io/v1 kind: Telemetry metadata: name: log-refusals namespace: istio-system spec: accessLogging: - providers: - name: envoy filter: expression: "response.code >= 400"