Skip to content

Add gitleaks to default config or move it to a plugin #1248

Description

@kriswest

Is your feature request related to a problem? Please describe.
The Git leaks configuration should either be added to the default config, or the gitleaks processor moved out to a plugin. If moved to a plugin, we need to think about where plugins are configured - it sporobably shouldn't be via the main configuration elements (such apis) as at present.

Original comment thread: #1243 (comment)

@jescalada

Should gitLeaks from the api be present with a default value instead? 🤔

@kriswest

I'm wondering that too. I don't see a default value for the configPath variable in the defaults in the code:

type ConfigOptions = {
enabled: boolean;
ignoreGitleaksAllow: boolean;
noColor: boolean;
configPath: string | undefined;
};

and you can't set an undefined value in JSON so I guess it would be:

{
  "enabled": false,
  "ignoreGitleaksAllow": true,
  "noColor": false,
}

However, I also note the comment:

  // adding gitleaks into main git-proxy for now as default off
  // in the future will likely be moved to a plugin where it'll be default on

Are we going to move it to a plugin or keep it where it is? That should probably decide if and where it goes into the schema.

If it goes into a plugin, are thre thoughts on configuring plugins? plugins is just an array of strings at present - should we be creating something new or is there an existing pattern I missed @coopernetes?

Describe the solution you'd like
The default gitleaks settings appear in the default config file OR in a defined area of the configuration for plugins.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions