Search documentation
karat

+

K

Bundle security

Apollo's Bundle security functionality enables you to view the vulnerabilities and viruses detected in Bundle artifacts through automated scanning. The Bundle security tab in the Export application provides instant access to security reports, enabling quick risk evaluation and reducing manual scanning.

Bundle security is an Experimental feature. Contact your Palantir representative to enable this feature.

Set up Bundle security reports

To include security reports in your Pipeline's Bundles, ensure that you have Vulnerability Scan Report included in your Pipeline's Resource selection settings. Under this setting, if you have selected one of the preset options then this should be included by default. If you have selected the Custom option, make sure that Vulnerability Scan Report is selected.

Security reports are evaluated at a per Bundle basis and included in a Bundle during build time. This means that only Bundles that were built with a security report included will have a valid security report. All other Bundles will not contain accurate information about a Bundle's scan results.

To see if a Bundle contains a Vulnerability Scan Report:

  1. Go to the Overview tab in the Bundle's inbox panel.
  2. Scroll down to the Build settings section.
  3. Find the resourceTypeOptions section of the YAML contents.
  4. If the type is exclusionList, make sure that VULNERABILITY_SCAN_REPORT is NOT included in the list under resourceTypes:.

    If the type is inclusionList, make sure that VULNERABILITY_SCAN_REPORT is included in the list under resourceTypes:.

Configure your Pipeline to avoid viruses, vulnerabilities, and unscanned artifacts

To avoid exporting artifacts that have not been scanned or have a failing scan, you can add the following label requirements to your Pipeline's Required resource labels settings:

  • security-scan-outcome = pass: Ensures that only artifacts with a passing report (no active virus or vulnerabilities) are included.
  • security-scanned = true: Ensures that all artifacts have been vulnerability and virus scanned. There are some artifacts that Apollo only scans for vulnerabilities and not viruses.

This will ensure that the Pipeline only exports Product Releases with artifacts that have passing a security scan.

Access security reports

To access the security report for a Bundle, navigate to the Export inbox page for that Bundle. Then select the Security tab. Here you can view the scan report and scan results.

Bundle security tab

The Scan report section provides a high-level overview of a Bundle's security that will inform you if Bundle is safe to transfer.

  • The left-most card displays whether the Bundle contains a virus.
  • The middle card shows whether the Bundle contains overdue vulnerabilities that are unsuppressed.
  • The right-most card shows the number of artifacts in the Bundle that are missing a virus scan, a vulnerability scan, or both.

Bundle security scan report

Below the Scan report section is the Scan results table. This table displays the specific viruses and vulnerabilities found by the scanners. You can filter the scan results for specific findings, such as virus findings only.

Bundle security scan results

For more information about a specific virus or vulnerability, select that row in the table to open a dialog with more details. There, you can access in-depth information about the security issue, such as why the scan failed and what issue was found. You can also take actions to remediate or suppress the issue.

Bundle security dialog

If an artifact is missing a scan or has an errored or incomplete scan, you can view a red banner at the top of the Security tab and the Unscanned artifacts table at the bottom. This table allows you to view the type of scan missing for the affected artifacts, which can be a virus scan, vulnerability scan, or both. You must solve the issue and rerun the scanner.

Bundle security unscanned artifacts banner Bundle security unscanned artifacts

If your Bundle contains any security issues, you must remediate these issues before you can export the Bundle.

Remediate security issues

For viruses, vulnerabilities, or unscanned artifacts, you will need to find out the Product Release that artifact belongs to, remediate the issue, and get the artifact scanned properly. Then, you will need to rebuild the Pipeline to include either:

  • The same Product Release, if all findings could be suppressed.
  • A newly published Product Release, if you had to fix an issue.

You must rebuild the Pipeline because the security report for a Bundle is embedded directly within the Bundle during the build process. As such, the report is static and will not reflect real-time updates, such as when vulnerabilities or viruses have been suppressed. To obtain an updated report that includes your remediation efforts, you will need to rebuild the Pipeline to generate a new Bundle with a new Bundle report.

For incremental Pipelines, the next Bundle built will not include everything you could not send in your current Bundle that was safe to send. Following remediation of security issues in the current Bundle, the subsequent Bundle will typically contain only the updated or new Product Releases that resulted from these corrective measures. To address this, you have a couple of options:

  • Send the missed Releases using an emergency Pipeline: If you need to have the missed data exported to your Target Hub, you can export the missing resources using an emergency Pipeline. To do so, navigate to the emergency Pipeline’s settings and include the missing data using the data selection rules. Then, rebuild the Pipeline and export the Bundle that is built.

  • Temporarily switch your Pipeline build settings to snapshot: If you need to export the missed data to your Target Hub and you do not have an emergency Pipeline set up:

    1. Ensure that the affected Release is recalled or modify your Pipeline’s data selection settings to exclude it.
    2. Switch your Pipeline’s build settings to snapshot.
    3. Rebuild the Pipeline to get the next Bundle to export.

    Unlike the incremental build strategy, the snapshot strategy fully re-evaluates data selection rules with each build. The snapshot strategy includes all Bundle data regardless of whether the information has been shipped by a previous Bundle in the Export Pipeline. As such, excluding the affected Release and rebuilding the Pipeline using a snapshot build strategy will provide you with a Bundle including all missed data alongside your updated or new Product Release. Once you have sent the snapshot Bundle, swap back to the incremental strategy to take advantage of the size and transfer time benefits associated with incremental Bundles.

  • Skip the Bundle and all of the new Releases contained in the Bundle: If you do not need to export the missed data in the Bundle right away, you can skip it and wait for a future Bundle to be built that includes these updates. Only choose this option if you are certain that you do not need the information included in the previous Bundle.

  • Send the Bundle with the security issue anyways: If the security issue was a false alarm or does not disobey compliance requirements, you can send the Bundle anyways. Only choose this option if you are certain that security requirements are met by the Bundle regardless of the report.

Remediation strategies

Virus remediation

If your Bundle contains a virus, you should not export the Bundle unless the finding was a false positive. In case of a false positive, you can:

  1. Suppress the finding for the specific image.
  2. Rerun the vulnerability scan of the relevant Product Release to confirm that the finding is now suppressed.
  3. Rebuild the Bundle.

If the virus finding is a true positive, you must remediate the virus finding and publish a new Release that includes the remediation. Make sure the previous affected Release is recalled if it is not automatically recalled by container-vuln-scanner. You can then rebuild the Bundle to include your newly published Release.

Vulnerability remediation

If your transfer has strict vulnerability requirements, you need to ensure that vulnerabilities detected in bundled artifacts are suppressed. If necessary, you can remediate overdue vulnerabilities the same as virus findings. Either by suppressing if there is no fix available or the risk is acceptable, or by releasing a new version of the relevant Product Release that contains a fix for the vulnerability.

Unscanned artifact remediation

Identify the Product Release that the artifact belongs to and verify that the Product Release is scanned. Note that only artifacts belonging to a Product Release are scanned. If selecting individual artifacts manually, ensure that they still belong to a Product Release to get scanned.