Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic blocklist rule #329

Open
ccojocar opened this issue Jun 25, 2019 · 0 comments
Open

Generic blocklist rule #329

ccojocar opened this issue Jun 25, 2019 · 0 comments

Comments

@ccojocar
Copy link
Member

ccojocar commented Jun 25, 2019

Summary

Some imports are currently blocked-listed by hard-coding them in various blockedlist rules.

func NewBlacklistedImports(id string, conf gosec.Config, blacklist map[string]string) (gosec.Rule, []ast.Node) {

{"G501", "Import blacklist: crypto/md5", NewBlacklistedImportMD5},

I think that it would be nice to define a generic blocklist rule which is able to parse the blocklisted import paths from the rule config.

Steps to reproduce the behavior

gosec version

Go version (output of 'go version')

Operating system / Environment

Expected behavior

Actual behavior

@ccojocar ccojocar changed the title Generic balcklist rule Generic blocklist rule Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant