From c5f90e40f36e50626f0d98ecfba85d237fe1c4a1 Mon Sep 17 00:00:00 2001 From: bobby <1544881+desimone@users.noreply.github.com> Date: Mon, 31 May 2021 12:55:11 -0700 Subject: [PATCH] options: s/shared-key/shared secret (#2257) Signed-off-by: Bobby DeSimone --- config/options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/options.go b/config/options.go index 9771fe095..fb166caed 100644 --- a/config/options.go +++ b/config/options.go @@ -535,7 +535,7 @@ func (o *Options) Validate() error { _, err := o.GetSharedKey() if err != nil { - return fmt.Errorf("config: invalid shared-key: %w", err) + return fmt.Errorf("config: invalid shared secret: %w", err) } if o.AuthenticateURLString != "" { @@ -929,10 +929,10 @@ func (o *Options) GetSharedKey() ([]byte, error) { sharedKey = randomSharedKey } if sharedKey == "" { - return nil, errors.New("empty shared-key") + return nil, errors.New("empty shared secret") } if strings.TrimSpace(sharedKey) != sharedKey { - return nil, errors.New("shared-key contains whitespace") + return nil, errors.New("shared secret contains whitespace") } return base64.StdEncoding.DecodeString(sharedKey) }