portainer/portainer

View on GitHub
api/database/boltdb/json.go

Summary

Maintainability
A
40 mins
Test Coverage

Function decrypt has 6 return statements (exceeds 4 allowed).
Open

func decrypt(encrypted []byte, passphrase []byte) (plaintextByte []byte, err error) {
    if string(encrypted) == "false" {
        return []byte("false"), nil
    }
    block, err := aes.NewCipher(passphrase)
Severity: Major
Found in api/database/boltdb/json.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status