From 51287d9316b7506f0bab8ffcf6db517b38566390 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 29 May 2019 19:22:07 +0200 Subject: [PATCH] Remove authentication hashes from API --- types/types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/types.go b/types/types.go index c841199b9..e45dc3680 100644 --- a/types/types.go +++ b/types/types.go @@ -408,14 +408,14 @@ type Users []string // Basic HTTP basic authentication type Basic struct { - Users `json:"users,omitempty" mapstructure:","` + Users `json:"-" mapstructure:","` UsersFile string `json:"usersFile,omitempty"` RemoveHeader bool `json:"removeHeader,omitempty"` } // Digest HTTP authentication type Digest struct { - Users `json:"users,omitempty" mapstructure:","` + Users `json:"-" mapstructure:","` UsersFile string `json:"usersFile,omitempty"` RemoveHeader bool `json:"removeHeader,omitempty"` } @@ -511,7 +511,7 @@ type ClientTLS struct { CA string `description:"TLS CA" json:"ca,omitempty"` CAOptional bool `description:"TLS CA.Optional" json:"caOptional,omitempty"` Cert string `description:"TLS cert" json:"cert,omitempty"` - Key string `description:"TLS key" json:"key,omitempty"` + Key string `description:"TLS key" json:"-"` InsecureSkipVerify bool `description:"TLS insecure skip verify" json:"insecureSkipVerify,omitempty"` }