-
Notifications
You must be signed in to change notification settings - Fork 147
Description
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)
Should gitLeaks from the api be present with a default value instead? 🤔
I'm wondering that too. I don't see a default value for the
configPathvariable in the defaults in the code:
git-proxy/src/proxy/processors/push-action/gitleaks.ts
Lines 42 to 47 in 84d2563
type ConfigOptions = { enabled: boolean; ignoreGitleaksAllow: boolean; noColor: boolean; configPath: string | undefined; }; and you can't set an
undefinedvalue 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 onAre 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?
pluginsis 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.