Skip to content

Commit

Permalink
fix(): trim white spaces in creds stored in k8s secret (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhavPage authored and magaldima committed Mar 7, 2019
1 parent ce507d4 commit a681180
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions store/creds.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package store

import (
"fmt"
"strings"

"github.com/argoproj/argo-events/common"
"github.com/argoproj/argo-events/pkg/apis/sensor/v1alpha1"
Expand Down Expand Up @@ -45,8 +46,8 @@ func GetCredentials(kubeClient kubernetes.Interface, namespace string, art *v1al
return nil, err
}
return &Credentials{
accessKey: accessKey,
secretKey: secretKey,
accessKey: strings.TrimSpace(accessKey),
secretKey: strings.TrimSpace(secretKey),
}, nil
}

Expand Down

0 comments on commit a681180

Please sign in to comment.