Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Custom rule added ? #375

Closed
n30gupta opened this issue Nov 10, 2021 · 3 comments
Closed

Custom rule added ? #375

n30gupta opened this issue Nov 10, 2021 · 3 comments

Comments

@n30gupta
Copy link

Hi,

Can we add any custom rules once installing kubeaduit.

@ghost
Copy link

ghost commented Nov 10, 2021

Thanks for opening your first issue here! Be sure to follow the issue template!

@genevieveluyt
Copy link
Contributor

Hi @n30gupta, if you import kubeaudit as a Go package rather than as a CLI then yes you can implement custom rules. There is an example in the docs. If you're hoping to use the CLI you would probably need to clone/fork the repo.

Depending on the custom rule, it may be possible to add a more generalized version of the rule to the kubeaudit codebase and then you can use configuration to customize it to your specific needs. For example, if you're hoping to have kubeaudit find kubernetes resources with a specific label, we could add a label auditor, where the actual label value(s) to audit for could be supplied via configuration.

If you're able to share the custom rule you have in mind I might be able to provide better advice.

@genevieveluyt
Copy link
Contributor

@n30gupta I'm going to close this issue but if you have further questions feel free to re-open

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants