mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
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:
3
plugin/metrics/test_data/configs/certPath_empty.yml
Normal file
3
plugin/metrics/test_data/configs/certPath_empty.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
tls_server_config:
|
||||
cert_file: ""
|
||||
key_file: "../server.key"
|
||||
3
plugin/metrics/test_data/configs/certPath_invalid.yml
Normal file
3
plugin/metrics/test_data/configs/certPath_invalid.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
tls_server_config:
|
||||
cert_file: "somefile"
|
||||
key_file: "../server.key"
|
||||
0
plugin/metrics/test_data/configs/empty.yml
Normal file
0
plugin/metrics/test_data/configs/empty.yml
Normal file
20
plugin/metrics/test_data/configs/junk.yml
Normal file
20
plugin/metrics/test_data/configs/junk.yml
Normal 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
|
||||
3
plugin/metrics/test_data/configs/keyPath_empty.yml
Normal file
3
plugin/metrics/test_data/configs/keyPath_empty.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
tls_server_config:
|
||||
cert_file: "../server.crt"
|
||||
key_file: ""
|
||||
3
plugin/metrics/test_data/configs/keyPath_invalid.yml
Normal file
3
plugin/metrics/test_data/configs/keyPath_invalid.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
tls_server_config:
|
||||
cert_file: "../server.cert"
|
||||
key_file: "somefile"
|
||||
@@ -0,0 +1,4 @@
|
||||
tls_server_config:
|
||||
cert_file: "../server.crt"
|
||||
key_file: "../server.key"
|
||||
client_auth_type: "RequireAnyClientCert"
|
||||
@@ -0,0 +1,4 @@
|
||||
tls_server_config:
|
||||
cert_file: "../server.crt"
|
||||
key_file: "../server.key"
|
||||
client_auth_type: "VerifyClientCertIfGiven"
|
||||
Reference in New Issue
Block a user