Created
March 23, 2020 20:08
-
-
Save incfly/a7ae62e8d9d0d5e6e63cd514360f2144 to your computer and use it in GitHub Desktop.
Sample envoy config to illustrating how auto mtls works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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