mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-23 19:49:13 +02:00
config: remove unused databroker storage settings
Config options concerning the TLS connection from databroker to storage backend are now unused. TLS options for this connection can instead be set directly in the databroker storage connection string.
This commit is contained in:
parent
e21fe2d0b3
commit
cbbbe4efb5
6 changed files with 283 additions and 357 deletions
|
@ -1,7 +1,6 @@
|
|||
package databroker
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"time"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
|
@ -25,9 +24,6 @@ type serverConfig struct {
|
|||
secret []byte
|
||||
storageType string
|
||||
storageConnectionString string
|
||||
storageCAFile string
|
||||
storageCertSkipVerify bool
|
||||
storageCertificate *tls.Certificate
|
||||
getAllPageSize int
|
||||
registryTTL time.Duration
|
||||
}
|
||||
|
@ -95,24 +91,3 @@ func WithStorageConnectionString(connStr string) ServerOption {
|
|||
cfg.storageConnectionString = connStr
|
||||
}
|
||||
}
|
||||
|
||||
// WithStorageCAFile sets the CA file in the config.
|
||||
func WithStorageCAFile(filePath string) ServerOption {
|
||||
return func(cfg *serverConfig) {
|
||||
cfg.storageCAFile = filePath
|
||||
}
|
||||
}
|
||||
|
||||
// WithStorageCertSkipVerify sets the storageCertSkipVerify in the config.
|
||||
func WithStorageCertSkipVerify(storageCertSkipVerify bool) ServerOption {
|
||||
return func(cfg *serverConfig) {
|
||||
cfg.storageCertSkipVerify = storageCertSkipVerify
|
||||
}
|
||||
}
|
||||
|
||||
// WithStorageCertificate sets the storageCertificate in the config.
|
||||
func WithStorageCertificate(certificate *tls.Certificate) ServerOption {
|
||||
return func(cfg *serverConfig) {
|
||||
cfg.storageCertificate = certificate
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue