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.
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
@kriswest
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.