Skip to content

Commit 9864078

Browse files
committed
Use Secret type for key
Signed-off-by: fayzal-g <[email protected]>
1 parent 333ecb4 commit 9864078

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

web/tls_config.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ type Config struct {
4343
}
4444

4545
type TLSConfig struct {
46-
TLSCert string `yaml:"cert"`
47-
TLSKey string `yaml:"key"`
48-
ClientCAsText string `yaml:"client_ca"`
49-
TLSCertPath string `yaml:"cert_file"`
50-
TLSKeyPath string `yaml:"key_file"`
51-
ClientAuth string `yaml:"client_auth_type"`
52-
ClientCAs string `yaml:"client_ca_file"`
53-
CipherSuites []Cipher `yaml:"cipher_suites"`
54-
CurvePreferences []Curve `yaml:"curve_preferences"`
55-
MinVersion TLSVersion `yaml:"min_version"`
56-
MaxVersion TLSVersion `yaml:"max_version"`
57-
PreferServerCipherSuites bool `yaml:"prefer_server_cipher_suites"`
58-
ClientAllowedSans []string `yaml:"client_allowed_sans"`
46+
TLSCert string `yaml:"cert"`
47+
TLSKey config_util.Secret `yaml:"key"`
48+
ClientCAsText string `yaml:"client_ca"`
49+
TLSCertPath string `yaml:"cert_file"`
50+
TLSKeyPath string `yaml:"key_file"`
51+
ClientAuth string `yaml:"client_auth_type"`
52+
ClientCAs string `yaml:"client_ca_file"`
53+
CipherSuites []Cipher `yaml:"cipher_suites"`
54+
CurvePreferences []Curve `yaml:"curve_preferences"`
55+
MinVersion TLSVersion `yaml:"min_version"`
56+
MaxVersion TLSVersion `yaml:"max_version"`
57+
PreferServerCipherSuites bool `yaml:"prefer_server_cipher_suites"`
58+
ClientAllowedSans []string `yaml:"client_allowed_sans"`
5959
}
6060

6161
type FlagConfig struct {

0 commit comments

Comments
 (0)