Set-OPS-Public/roles/client_metrique/templates/web-config.yml.j2
Daniel Allaire e648009b87 Zéro-confiance : flux Métriques chiffré (node_exporter TLS + scrape https)
node_exporter sert en HTTPS via le cert step-ca (--web.config.file +
cert-sync owned prometheus, motif .path). Prometheus scrape en scheme https
+ tls_config (ca=root_ca), vérifie contre l'IP en SAN. Vars :
client_metrique_tls_actif, serveur_prometheus_metriques_tls.

Prouvé : node_exporter HTTPS 200 (vérif root_ca), HTTP rejeté (400),
4 cibles Prometheus UP en https sans erreur.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 21:04:40 -04:00

5 lines
303 B
Django/Jinja

# Gere par Set-OPS (role client_metrique). TLS pour node_exporter (exporter-toolkit).
# Le cert/cle step_ca sont synchronises par setops-node-exporter-cert-sync (owned prometheus).
tls_server_config:
cert_file: {{ client_metrique_tls_dir }}/node.crt
key_file: {{ client_metrique_tls_dir }}/node.key