Skip to content

Instantly share code, notes, and snippets.

@incfly
Created March 23, 2020 20:08
Show Gist options
  • Save incfly/a7ae62e8d9d0d5e6e63cd514360f2144 to your computer and use it in GitHub Desktop.
Save incfly/a7ae62e8d9d0d5e6e63cd514360f2144 to your computer and use it in GitHub Desktop.
Sample envoy config to illustrating how auto mtls works.
dynamic_active_clusters:
- name: "outbound||httpbin.svc.default.cluster.local"
transportSocketMatches:
- name: "istioMtls"
match:
tlsLabel: "istio-mutual" # could also be other
transport_socket:
# sample tls config on client side.
# same as today's setup, use file path just as an e.g. The SDS will be similiar.
common_tls_context:
key: /etc/cert/key.pem
cert: /etc/cert/cert.pem
root: /etc/cert/root.pem
validated_san_list: [ "spiffe://cluster.local/ns/default/sa/foo"]
# plaintext config. the empty match always match all the endpoint.
- name: "default-plaintext"
match: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment