Skip to content

Instantly share code, notes, and snippets.

@heavypackets
Created October 10, 2018 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heavypackets/5b32e106ddc047f9e33ea3287e076adf to your computer and use it in GitHub Desktop.
Save heavypackets/5b32e106ddc047f9e33ea3287e076adf to your computer and use it in GitHub Desktop.
simple-secrets_server-envoy
- name: simple-secrets-metrics
address:
socket_address: { address: 0.0.0.0, port_value: 10000 }
...
tls_context:
common_tls_context:
tls_params:
ecdh_curves: "X25519:P-256:P-521:P-384"
tls_certificates:
certificate_chain: { "filename": "/certs/svid.pem" }
private_key: { "filename": "/certs/svid_key.pem" }
validation_context:
trusted_ca:
filename: /certs/svid_bundle.pem
verify_subject_alt_name:
- "spiffe://example.org/prometheus-proxy"
...
clusters:
- name: secrets-metrics
connect_timeout: 15s
type: STATIC
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: secrets-metrics
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 3001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment