cyberark/secretless-broker

View on GitHub
internal/providers/conjur/provider.go

Summary

Maintainability
A
35 mins
Test Coverage
F
33%

Function ProviderFactory has 8 return statements (exceeds 7 allowed).
Open

func ProviderFactory(options plugin_v1.ProviderOptions) (plugin_v1.Provider, error) {
    config, err := conjurapi.LoadConfig()
    if err != nil {
        return nil, fmt.Errorf("ERROR: Conjur provider could not load configuration: %s", err)
    }
Severity: Major
Found in internal/providers/conjur/provider.go - About 35 mins to fix

    TODO found
    Open

                // TODO: Use a cached access token from the client, once it's exposed
    Severity: Minor
    Found in internal/providers/conjur/provider.go by fixme

    Your code does not pass gofmt in 2 places. Go fmt your code!
    Open

    package conjur
    Severity: Minor
    Found in internal/providers/conjur/provider.go by gofmt

    There are no issues that match your filters.

    Category
    Status