Installing and Configuring Compliance Scanner for PCF
Page last updated:
This topic describes how to install and configure Compliance Scanner for Pivotal Cloud Foundry.
Compliance Scanner for PCF runs a scanner daemon on each VM that requires ~100 MB of memory. Before you install Compliance Scanner, you might need to resize your VMs accordingly.
To install the Compliance Scanner for PCF file on the Ops Manager Installation Dashboard:
Download the product file from Pivotal Network.
Navigate to the Ops Manager Installation Dashboard and click Import a Product to upload the product file.
Underneath Import a Product, click + next to the version number of Compliance Scanner for PCF. This adds the tile to your staging area.
Click the newly added Compliance Scanner for PCF tile.
This section is where you configure expected values for tests and select which set of benchmarks to run. To configure your scans:
Click Assign AZs and Networks.
Configure the fields as follows:
Field Description Place singleton jobs in Select the AZ that you want the
oscap_storeVM to run in.
The tile runs as a singleton job.
Balance other jobs in Select the same AZ as above. Network Select a subnet for the
This is typically the same subnet that includes the Pivotal Application Services (PAS) component VMs.
Click System Variables.
Configure the fields in System Variables to provide the expected values for the tests:
Field Description NTP Server IP The IP address of your NTP server.
You can find this IP address in Bosh Director > Director Config > NTP Server. You can only enter one server IP address. It does not matter which NTP server you enter.
Syslog Host IP The IP address of your syslog host.
You can find this in your PAS tile under Settings > System Logging > Address.
Syslog Port The port number of the syslog port.
You can find this in your PAS tile under Settings > System Logging > Port.
Click Scan Configuration.
Enable Scan Report Formats. You must select at least one format. The outputs of a scan can be in LOG, XML, and HTML formats.
Enable Benchmarks for the scanner to run:
Benchmark Description Base Xenial Includes a subset of the amended tests in the STIG benchmark, where failing tests due to architectural differences are removed.
This is meant to be used as a measure to see if configurations have been altered.
Recommended Security Baseline A benchmark with rules that all systems should implement, regardless of user environment or the sensitivity of the app data being processed. Strict Security Practices A benchmark with strict rules that are required of systems processing sensitive data or workloads. This is meant to run in addition to the tests in the recommended security baseline benchmark. STIG for Ubuntu Xenial Includes all the configuration tests of the published DISA STIG for Ubuntu 16.04, amended with stemcell specific changes. Contains tests that would fail due to architectural differences.
A scan report is generated for each format and benchmark on each Linux VM running on Xenial stemcells. For example, if you select .xml and .log formats, and Base Xenial and STIG benchmarks, four log files are created for each VM tested.
For more information about Compliance Scanner for PCF benchmarks, see Benchmarks.
For Scanner Timeout, configure the maximum time in seconds permitted for a scan. The default value is
For Open File Limit, configure the maximum number of files that the scanner is permitted to open. If the scanner goes over this limit, the scan fails. The recommended value is at least 1024 + twice the number of VMs.
Compliance Scanner for PCF performs one errand that initiates scanning. This errand is disabled by default. This is so that a scan is not run every time changes are applied.
When this errand is triggered, it initiates the scanning errand on each VM. For more information about initiating the scanning errand, see Using Compliance Scanner for PCF.
When configuring the Compliance Scanner for PCF tile for the first time, follow these steps:
Confirm that Run configured scans is set to Default (Off).
The tile creates a new VM called
oscap_store to store the logs retrieved from all the other VMs
that have been scanned.
oscap_store VM does not do anything computationally extensive.
Pivotal recommends using the default configurations.
Click Resource Config.
Your installation is not complete until you apply your configuration changes:
Return to the Ops Manager Installation Dashboard.
Click Review Pending Changes. Verify all products are selected.
Click Apply Changes to complete the installation of Compliance Scanner for PCF.