Skip to content

Creation and invocation of custom rules #314

Description

@phillipdade

Does 2MS support Gitleaks' ability to invoke custom regex rules (in golang format) to allow secret detection based upon specific requirements?

Gitleaks supports custom rules and I've tried creating a gitleaks.toml configuration file (based upon https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml) and invoking via the --config argument in 2ms. The custom configuration included a rule that I know was triggering on a test, invalid secret and the rule was simply renamed. However, the renamed rule wasn't invoked, only the original rule.

Looking at the docs, the --config argument mentions that this configuration file should be either a YAML or JSON.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions