Skip to content

Commit

Permalink
fix: app secret is sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
powerman committed Feb 22, 2021
1 parent b9dde40 commit 6abd60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ms/auth/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const (

// Config contains configuration for business-logic.
type Config struct {
Secret []byte
Secret sensitive.Bytes
}

// App implements interface Appl.
Expand Down
3 changes: 2 additions & 1 deletion ms/auth/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

"github.com/powerman/appcfg"
"github.com/powerman/pqx"
"github.com/powerman/sensitive"
"github.com/spf13/pflag"
"golang.org/x/text/unicode/norm"

Expand Down Expand Up @@ -104,7 +105,7 @@ type ServeConfig struct {
BindAddrInt netx.Addr
BindGRPCGWAddr netx.Addr
BindMetricsAddr netx.Addr
Secret []byte
Secret sensitive.Bytes
TLSCACert string
TLSCert string
TLSCertInt string
Expand Down

0 comments on commit 6abd60b

Please sign in to comment.