Evaluate and remediate
After you review the compliance findings for your environment, you need to evaluate those findings and take the appropriate actions either by resolving any violations or temporarily accepting them.
Types of remediation
The following types of remediation are supported:
- Manual remediation
- The user is presented with text information on how to remediate the violation.
- Automatic generation of a patch (with or without user input)
- Patch code is presented to the user, with input fields to be supplied if values are required. The user then needs to download the patch and add the patch to the application.
- Automated pull request (with or without user input)
- Patch code is presented to the user, with input fields to be supplied if values are required. A pull request is opened to a connected Git repository.
- Risk is accepted
- The violation can be marked that the risk has been temporarily accepted.
Source detection and patching
IBM Cloud Security and Compliance Center Workload Protection attempts to identify the source file matching the violation in your integrated Git repositories. If there are multiple candidates, or if it is not possible to find the matching source file, you can search to find and select the relevant file from the connected Git repositories.
If remediation is possible using a patch, and Git integration is implemented, the Remediation page is available. If multiple files match for the resource, all are displayed as "Suggested Sources". If no files are found, or if you want to remediate a different file, click Search Source and select the file from the list. Files in connected Git repos are included in the list.
When a pull request is used for remediation, Workload Protection creates a branch in your Git repository patching the resource with a corrective change. You can review all changes that are suggested by the pull request before you merge the pull request.
Reviewing issues
When you click a zone or policy on the Compliance page, more information about the violations is displayed. When you click a violation on the control plane, the issues that comprise the violation are displayed. When you click an issue, the resources that are passing, failing, or have temporary accepted exceptions are displayed.
When you click an issue, the available remediation options are displayed.
You can see the impact of the remediation, review the resource attributes, and, if needed, enter required values into the patch code.
If a required value can be auto-detected, it is inserted automatically and the Value
input field will be read only.
Verifying patches
Patch code is displayed for you to review. Patch code is displayed if the patch will be applied manually or by a pull request.
You can download the code in the Continue Remediation section (preferred) or copy it using cut and paste.
Applying patches
You can apply generated patches in two ways: manually or with an automatic pull request.
Applying patches manually
If Git is not integrated with IBM Cloud Security and Compliance Center Workload Protection, or if a pull request is not required for the specific failure, you can do a manual remediation.
- Click Manually Apply Patch.
- Click Download to download the patch.
- Apply the patch to your environment.
Applying patches by using a pull request
IBM Cloud Security and Compliance Center Workload Protection scans and analyzes the manifests from your defined Git sources and determines resources that are declared in your source files. The scan runs daily or whenever a new Git source is added.
Workload Protection tries to match and identify discovered resources with deployed and evaluated resources. The resources that best match are listed as "Suggested Sources" in the Remediation page when a pull request is set up.
You can also manually search for sources by using a full URL path.
-
Click Setup Pull Request
-
Click Open a Pull Request to open a pull request
Accepting violation risks
In some cases, a failing control can be safely ignored for a period of time. Accepting the risk allows the resource to pass and the compliance score for the zone will improve.
In the Remediation page:
-
Click Accept Risk.
-
Enter the required fields to comply with your organization's audit and best practices.
Valid reasons are:
Risk Owned
,Transferred
,Avoided
,Mitigated
,Not Relevant
orCustom
.In the details explain to an auditor the reason for accepting the risk, or the risk management action taken.
Indicate when you want the risk acceptance to expire and the resource to return to a failed state. Options are 7, 30, 60, or 90 days, a custom time frame, or never.
-
Click Save.