Skip to content

Commit

Permalink
Merge pull request Yelp#405 from Yelp/adding-more-default-filters
Browse files Browse the repository at this point in the history
Adding more default filters
  • Loading branch information
domanchi authored Feb 25, 2021
2 parents a3165d1 + f9010c1 commit 33fd15e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions detect_secrets/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def clear(self) -> None:
'detect_secrets.filters.heuristic.is_sequential_string',
'detect_secrets.filters.heuristic.is_potential_uuid',
'detect_secrets.filters.heuristic.is_likely_id_string',
'detect_secrets.filters.heuristic.is_templated_secret',
'detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign',
'detect_secrets.filters.heuristic.is_indirect_reference',
}
}

Expand Down
7 changes: 5 additions & 2 deletions docs/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ the `detect_secrets.filters` namespace.
| `common.is_invalid_file` | Ignores files that are not files (e.g. links). |
| `common.is_baseline_file` | Ignores the baseline file itself. |
| `common.is_ignored_due_to_verification_policies` | Powers secret verification functionality. |
| `heuristic.is_sequential_string` | Ignores secrets like `abcdefg`. |
| `heuristic.is_potential_uuid` | Ignores uuid looking secret values. |
| `heuristic.is_indirect_reference` | Primarily for `KeywordDetector`, filters secrets like `secret = get_secret_key()`. |
| `heuristic.is_likely_id_string` | Ignores secret values prefixed with `id`. |
| `heuristic.is_non_text_file` | Ignores non-text files (e.g. archives, images). |
| `heuristic.is_potential_uuid` | Ignores uuid looking secret values. |
| `heuristic.is_prefixed_with_dollar_sign` | Primarily for `KeywordDetector`, filters secrets like `secret = $variableName;`. |
| `heuristic.is_sequential_string` | Ignores secrets like `abcdefg`. |
| `heuristic.is_templated_secret` | Ignores secrets like `secret = <key>`, `secret = {{key}}` and `secret = ${key}`. |
| `regex.should_exclude_line` | Powers the [`--exclude-lines` functionality](../README.md#--exclude-lines). |
| `regex.should_exclude_file` | Powers the [`--exclude-files` functionality](../README.md#--exclude-files). |
| `regex.should_exclude_secret` | Powers the [`--exclude-secrets` functionality](../README.md#--exclude-secrets). |
Expand Down

0 comments on commit 33fd15e

Please sign in to comment.