cyberark/secretless-broker

View on GitHub
internal/plugin/connectors/tcp/pg/protocol/auth.go

Summary

Maintainability
A
1 hr
Test Coverage
D
62%

Function handleAuthSCRAM has 14 return statements (exceeds 7 allowed).
Open

func handleAuthSCRAM(username string, password string, connection net.Conn) error {
    sc := scram.NewClient(sha256.New, username, password)
    sc.Step(nil)
    if sc.Err() != nil {
        return fmt.Errorf("SCRAM-SHA-256 error: %s", sc.Err().Error())
Severity: Major
Found in internal/plugin/connectors/tcp/pg/protocol/auth.go - About 1 hr to fix

    TODO found
    Open

    // TODO: Also look into SCRAM-SHA-256-PLUS, see https://www.postgresql.org/docs/current/sasl-authentication.html

    There are no issues that match your filters.

    Category
    Status