Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Source Filter #1

Open
fjogeleit opened this issue Nov 29, 2024 · 3 comments
Open

API Source Filter #1

fjogeleit opened this issue Nov 29, 2024 · 3 comments

Comments

@fjogeleit
Copy link

Hey everyone and thanks for making the Plugin public.

On a first look I am wondering how your Plugin behaves when the Cluster includes policy reports from other engines (sources)? Do you set a source filter for kyverno only results? I at least did not see that.

@Jonas-Beck
Copy link
Contributor

Hi @fjogeleit,

Currently, we don't set a source filter when we query the policy reporter API. However, it could be extended to allow defining the sources using an annotation on the kubernetes-cluster resources.

The annotation could look something like kyverno.io/sources: kyverno,anotherSource.

Possibly using kyverno as the default value if the annotation is provided.

@fjogeleit
Copy link
Author

Yep, sure. Would make sense, I just wanted to point that policy reporter handles all PolicyReports, independent of the source engine and that should be considered. If its intended as Kyverno plugin - showing information from other tools could be confusing.

@Jonas-Beck
Copy link
Contributor

When we created the plugin, it was intended as a Kyverno plugin since we don't use any other source engines, which is also why some of the components use the KyvernoPolicyReports naming.

However, the plugin could be set up to also display information from other tools if that makes sense. This could be done either in the existing component that's exported or by creating new components so users could choose what they would like to display in their Backstage application.

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

No branches or pull requests

2 participants