mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-28 08:27:26 +02:00
metrics: add TLS options (#1939)
* move metrics listener to envoy * add metrics tls options * add test * update docs * update config proto * add function to validate metric addr * fix validation
This commit is contained in:
parent
ec02761e2f
commit
a825b06014
15 changed files with 633 additions and 296 deletions
|
@ -20,7 +20,7 @@ func Test_buildPolicyTransportSocket(t *testing.T) {
|
|||
cacheDir, _ := os.UserCacheDir()
|
||||
customCA := filepath.Join(cacheDir, "pomerium", "envoy", "files", "custom-ca-32484c314b584447463735303142374c31414145374650305a525539554938594d524855353757313942494d473847535231.pem")
|
||||
|
||||
srv, _ := NewServer("TEST")
|
||||
srv, _ := NewServer("TEST", nil)
|
||||
rootCAPath, _ := getRootCertificateAuthority()
|
||||
rootCA := srv.filemgr.FileDataSource(rootCAPath).GetFilename()
|
||||
|
||||
|
@ -218,7 +218,7 @@ func Test_buildPolicyTransportSocket(t *testing.T) {
|
|||
}
|
||||
|
||||
func Test_buildCluster(t *testing.T) {
|
||||
srv, _ := NewServer("TEST")
|
||||
srv, _ := NewServer("TEST", nil)
|
||||
rootCAPath, _ := getRootCertificateAuthority()
|
||||
rootCA := srv.filemgr.FileDataSource(rootCAPath).GetFilename()
|
||||
t.Run("insecure", func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue