-
Notifications
You must be signed in to change notification settings - Fork 49
Rules
Fabio edited this page Dec 3, 2020
·
5 revisions
Each rule comprises a regex (that will be searched in the commits), a category, and a description (optional).
-
Download the
rules
file -
Add the rules to the database via the CLI
python -m credentialdigger add_rules rules.yml --sqlite /path/to/data.db
or (please make sure that a Postgres instance is running)
python -m credentialdigger add_rules rules.yml
-
Install the dependencies (possibly using a virtualenv)
-
Instantiate the client (either Postgres or sqlite)
from credentialdigger import PgClient c = PgClient(dbhost='xxx.xxx.xxx.xxx', dbport=NUM, dbname='mydbname', dbuser='myusername', dbpassword='mypassword')
or
from credentialdigger import SqliteClient c = SqliteClient(path='/path/to/data.db')
-
Add a single rule
c.add_rule('regex', 'category', 'description')
or add a list of rules from a (yaml) file
c.add_rules_from_file('/path/to/rules/file.yml')
An example of rule file can be found here
- Installation instructions: Readme
- Preparation for the scanner's rules
- Deploy over HTTPS (Optional)
- How to update the project
- How to install on MacOS ARM
- Python library
- CLI
- Web UI through the Docker installation
- Pre-commit hook