Skip to content

Commit

Permalink
Lint and update codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Pierangelo Di Pilato <pierangelodipilato@gmail.com>
  • Loading branch information
pierDipi committed Jan 13, 2021
1 parent df3e509 commit 49227ad
Show file tree
Hide file tree
Showing 11 changed files with 3,665 additions and 262 deletions.
63 changes: 63 additions & 0 deletions control-plane/pkg/apis/eventing/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 4 additions & 16 deletions control-plane/pkg/contract/contract.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion control-plane/pkg/security/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

const (
AuthSecretNameKey = "auth.secret.ref.name"
AuthSecretNameKey = "auth.secret.ref.name" /* #nosec G101 */ /* Potential hardcoded credentials (gosec) */
)

// SecretLocator locates a secret in a cluster.
Expand Down
4 changes: 2 additions & 2 deletions control-plane/pkg/security/scram.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import (
)

var (
// sha256HashGenerator hash generator function for SCRAM conversation
// sha256HashGenerator hash generator function for SCRAM conversation.
sha256HashGenerator scram.HashGeneratorFcn = func() hash.Hash { return sha256.New() }

// sha512HashGenerator hash generator function for SCRAM conversation
// sha512HashGenerator hash generator function for SCRAM conversation.
sha512HashGenerator scram.HashGeneratorFcn = func() hash.Hash { return sha512.New() }
)

Expand Down
2 changes: 2 additions & 0 deletions control-plane/pkg/security/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ func sslConfig(protocol string, data map[string][]byte) ConfigOption {

config.Net.TLS.Enable = true
config.Net.TLS.Config = &tls.Config{
MinVersion: tls.VersionTLS12,
MaxVersion: tls.VersionTLS13,
Certificates: tlsCerts,
RootCAs: certPool,
}
Expand Down
Loading

0 comments on commit 49227ad

Please sign in to comment.