Skip to content

Commit

Permalink
Merge pull request #48 from krakend/owasp_fixes
Browse files Browse the repository at this point in the history
skip check for md5 usage that does not need to be secure
  • Loading branch information
kpacha authored Sep 18, 2024
2 parents 9ee95df + 6e35e7d commit ee5978e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func Parse(l logging.Logger, e config.ExtraConfig, namespace string) (Config, er
return res, ErrWrongChecksumType(source)
}
content, _ := res.SourceLoader.Get(source)
hash := md5.New()
hash := md5.New() // skipcq: GO-S1023, GSC-G401
if _, err := io.Copy(hash, bytes.NewBuffer([]byte(content))); err != nil {
return res, err
}
Expand Down

0 comments on commit ee5978e

Please sign in to comment.