Configuring the Kyverno Policy Reports Frontend Plugin#
This guide covers the configuration options for the Kyverno Policy Reports frontend plugin.
Basic Configuration#
Add the following to your app-config.yaml
:
Configuration Options#
Permission Framework Integration#
When enablePermissions
is set to true
, the plugin integrates with Backstage's permission framework. The following permissions are available:
- kyverno.overview.view
: Access to overview policy report data
- kyverno.reports.view
: Access to detailed policy report data
- kyverno.policy.view-yaml
: Access to view the YAML manifest of Kyverno policies
Component Customization#
Overview Card Placement#
You can customize where the Kyverno overview card appears in your entity overview page:
<Grid container spacing={3} alignItems="stretch">
<EntitySwitch>
<EntitySwitch.Case if={isKubernetesAvailable}>
<Grid item md={6} xs={12}> // Adjust size as needed
<KyvernoOverviewCard />
</Grid>
</EntitySwitch.Case>
</EntitySwitch>
</Grid>
Policy Reports Table Customization#
The policy reports table can be placed in a dedicated tab:
<EntityLayout>
<EntityLayout.Route
path="/kyverno-policy-reports"
title="Kyverno Policy Reports"
>
<KyvernoPolicyReportsTable />
</EntityLayout.Route>
</EntityLayout>
Crossplane Integration#
For Crossplane resources, use the dedicated components:
// Overview Card
<KyvernoCrossplaneOverviewCard />
// Policy Reports Table
<KyvernoCrossplanePolicyReportsTable />
Best Practices#
-
Permission Management
- Start with permissions disabled during initial setup
- Enable permissions once basic functionality is verified
- Configure granular permissions based on user roles
-
Component Placement
- Place the overview card where it's easily visible
- Group policy-related components together
- Consider the relationship with other security tools
-
User Experience
- Provide clear access to policy details
- Ensure consistent placement across different entity types
- Consider adding documentation links for policy understanding