Add optional TLS support to /metrics endpoint (#7255)

* Use exporter-toolkit to enable optional TLS encryption on /metrics endpoint

Signed-off-by: peppi-lotta <peppi-lotta.saari@est.tech>

* Implement startup listener to signal server readiness

Signed-off-by: peppi-lotta <peppi-lotta.saari@est.tech>

---------

Signed-off-by: peppi-lotta <peppi-lotta.saari@est.tech>
This commit is contained in:
Peppi-Lotta
2026-03-12 22:49:00 +02:00
committed by GitHub
parent a8c802e1b3
commit 7ff001dca7
13 changed files with 553 additions and 8 deletions

View File

@@ -0,0 +1,3 @@
tls_server_config:
cert_file: ""
key_file: "../server.key"

View File

@@ -0,0 +1,3 @@
tls_server_config:
cert_file: "somefile"
key_file: "../server.key"

View File

@@ -0,0 +1,20 @@
hWkNKCp3fvIx3jKnsaBI
TuEjdwNS8A2vYdFbiKqr
ay3RiOtykgt4m6m3KOol
ZreGpJRGmpDSVV9cioiF
r7kDOHhHU2frvv0nLcY2
uQMQM4XgqFkCG6gFAIJZ
g99tTkrZhN9b6pkJ6J2y
rzdt729HrA2RblDGYfjs
MW7GxrBdlCnliYJGPhfr
g9kaXxMXcDwsw0C0rv0u
637ZmfRGElb6VBVOtgqn
RG0MRezjLYCJQBMUdRDE
RzO4VicAzj7asVZAT3oo
nPw267UONk7h7KBYRgch
Alj38foWqjV3heXXdahm
TrMzMgl6JIQ1x4OZB5i4
qlrXFJoeV6Pr77nuiEh9
3yE5vMnnKHm2nImEfzMG
bI01UDObHRSaoJLC0vTD
G9tlcKU883NkQ6nsxJ8Y

View File

@@ -0,0 +1,3 @@
tls_server_config:
cert_file: "../server.crt"
key_file: ""

View File

@@ -0,0 +1,3 @@
tls_server_config:
cert_file: "../server.cert"
key_file: "somefile"

View File

@@ -0,0 +1,4 @@
tls_server_config:
cert_file: "../server.crt"
key_file: "../server.key"
client_auth_type: "RequireAnyClientCert"

View File

@@ -0,0 +1,4 @@
tls_server_config:
cert_file: "../server.crt"
key_file: "../server.key"
client_auth_type: "VerifyClientCertIfGiven"