@@ -43,10 +43,10 @@ type Config struct {
4343 KtQueryServiceConfig * ServiceConfig `yaml:"kt-query"`
4444 KtTestServiceConfig * ServiceConfig `yaml:"kt-test"`
4545
46- LogOutputFile envstr `yaml:"log-output"`
47- MetricsAddr envstr `yaml:"metrics-addr"`
48- DatadogAddr envstr `yaml:"datadog-addr"`
49- HealthAddr envstr `yaml:"health-addr"`
46+ LogOutputFile string `yaml:"log-output"`
47+ MetricsAddr string `yaml:"metrics-addr"`
48+ DatadogAddr string `yaml:"datadog-addr"`
49+ HealthAddr string `yaml:"health-addr"`
5050
5151 APIConfig * APIConfig `yaml:"api"`
5252 StreamConfig * StreamConfig `yaml:"stream"`
@@ -62,7 +62,7 @@ type CacheConfig struct {
6262}
6363
6464type ServiceConfig struct {
65- ServerAddr envstr `yaml:"server-addr"`
65+ ServerAddr string `yaml:"server-addr"`
6666 // a map of headers to a list of authorized values. at least one header to value mapping must be present on client requests
6767 AuthorizedHeaders map [string ][]string `yaml:"authorized-headers"`
6868 // a map of header values to auditor name. each key in this map should match a value in the AuthorizedHeaders map.
@@ -85,7 +85,7 @@ type APIConfig struct {
8585 FakeUpdates * FakeUpdates `yaml:"fake"`
8686
8787 // A map of auditor name to its hex-encoded public signature key.
88- AuditorConfigs map [string ]envstr `yaml:"auditors"`
88+ AuditorConfigs map [string ]string `yaml:"auditors"`
8989 auditorConfigs map [string ]ed25519.PublicKey
9090
9191 Distinguished time.Duration `yaml:"distinguished"`
@@ -308,7 +308,7 @@ func Read(filename string) (*Config, error) {
308308
309309 parsed .APIConfig .auditorConfigs = map [string ]ed25519.PublicKey {}
310310 for auditorName , publicKey := range parsed .APIConfig .AuditorConfigs {
311- pubKey , err := hex .DecodeString (publicKey . String () )
311+ pubKey , err := hex .DecodeString (publicKey )
312312
313313 if err != nil {
314314 return nil , fmt .Errorf ("failed to parse auditor public key: %v for auditor %s" , err , auditorName )
@@ -344,7 +344,7 @@ func Read(filename string) (*Config, error) {
344344
345345func (c * Config ) SetLogOutput () error {
346346 if c .LogOutputFile != "" {
347- f , err := os .OpenFile (c .LogOutputFile . String () , os .O_APPEND | os .O_WRONLY | os .O_CREATE , 0644 )
347+ f , err := os .OpenFile (c .LogOutputFile , os .O_APPEND | os .O_WRONLY | os .O_CREATE , 0644 )
348348 if err != nil {
349349 return fmt .Errorf ("Failed to open log file: %v" , err )
350350 }
0 commit comments