Skip to content

Commit df0c8a0

Browse files
authored
Merge pull request #366 from sapcc/fix-lints
fix new gosec lints
2 parents 1c2dfba + 43f194f commit df0c8a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

common/openstack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type OpenStackConfig struct {
2121
Region string
2222
AuthURL string
2323
Username string
24-
Password string
24+
Password string // #nosec G117 - intentional passing of secret credential
2525
Domainname string
2626
ProjectID string
2727
}
@@ -31,7 +31,7 @@ func parseOSConfig(data []byte) (OpenStackConfig, error) {
3131
Global struct {
3232
AuthURL string `ini:"auth-url"`
3333
Username string `ini:"username"`
34-
Password string `ini:"password"`
34+
Password string `ini:"password"` // #nosec G117 - intentional passing of secret credential
3535
Region string `ini:"region"`
3636
Domainname string `ini:"domain-name"`
3737
TenantID string `ini:"tenant-id"`

esx/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (c *Config) AlarmsAsSet() map[string]struct{} {
5151

5252
type Credential struct {
5353
Username string `config:"username" validate:"required"`
54-
Password string `config:"password"`
54+
Password string `config:"password"` // #nosec G117 - intentional passing of secret credential
5555
}
5656

5757
// VCenters contains connection information to regional vCenters.

plugin/impl/mail.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type Mail struct {
2222
To []string
2323
Identity string
2424
User string
25-
Password string
25+
Password string // #nosec G117 - intentional passing of secret credential
2626
}
2727

2828
// New creates a new Mail instance with the given config.
@@ -36,7 +36,7 @@ func (m *Mail) New(config *ucfgwrap.Config) (plugin.Notifier, error) {
3636
To []string `config:"to" validate:"required"`
3737
Identity string `config:"identity"`
3838
User string `config:"user"`
39-
Password string `config:"password"`
39+
Password string `config:"password"` // #nosec G117 - intentional passing of secret credential
4040
}{}
4141
if err := config.Unpack(&conf); err != nil {
4242
return nil, err

0 commit comments

Comments
 (0)