This topic tells you how to manage application policies in Tanzu Platform to help manage Spring applications deployed in your environments. The application policies module can help enforce some of the applications’ security aspects and how applications are configured and deployed.
View application policies and findings
By default, the platform has four native policies. To view policies and findings:
-
Click Policies > Application Policies to view these policies in the platform.
-
Click the Findings tab to see all the findings generated from the application policies.
- Filter and sort findings by various parameters as needed.
Create an application policy
Spring policies enforce organizational standards and best practices on application code detected in your repositories. To create an application policy:
- In Tanzu Platform, click Policies > Application Policies.
- Click New policy.
-
In the General information section, enter the primary attributes for the policy.
-
Select whether the policy applies to the organization or Project.
- (Optional) If you choose a Project, enter the cloud accounts that you want the policy to monitor.
- Click Next.
- In the Rule section, enter conditions to define the criteria you want your Spring policy to evaluate.
- Click Next.
- In the Schedule section, select the cadence at which you want the policy to scan your repositories. The policy does not run unless you set it to Active.
- Click Save.
Manage application policies
In Tanzu Platform, click Policies > Application Policies to access the application policies dashboard. On this dashboard you can manage policies by using the buttons on top of the policy listing. These actions allow you to create new policies, edit existing policies, activate or deactivate policies, run policies on demand, and delete policies.
View and edit policy details
To view policy details:
-
Select a policy in the policies dashboard to access the Policy Details view, where you can view policy details, including configuration, schedule, previous runs, and so on. This page also enables you to edit the policy.
-
Click the Findings tab to see findings for the policy.
Content feedback and comments