Tenable step configuration
Scan application instances with Tenable.
You can scan your container images and application instances using Tenable and then ingest the results from Harness.
Workflow descriptions
Custom Scan step settings for Tenable scans in STO
The recommended workflow is to add a Custom Scan step to a Security or Build stage and then configure it as described below.
Scanner settings
These settings are all required.
Product name
Key
Value
Scan type
The target type to scan.
Key
Value
Must be one of the following.
Policy type
The scan mode to use.
Key
Value
Product config name
Key
Value
Use the legacy Nessus scan inside tenableIO:
Target and variant
Every Custom Scan step needs a target and baseline.
Target name
Key
Value
A user-defined label for the code repository, container, application, or configuration to scan. Specify a unique, descriptive name. This makes it much easier to navigate your scan results in the STO UI.
Target variant
Key
Value
A user-defined label for the branch, tag, or other target variant to scan.
Instance
These settings apply to Custom Scan steps when both of these conditions are true:
The
policy_typeisorchestratedScanordataLoad.The
scan_typeisinstance.
Instance domain
Key
Value
Domain of the application instance to scan. You can include the full path to the app in this field, or split the full path between the instance_domain and the instance_path settings. Example: https://myapp.io/portal/us
Instance path
Key
Value
Path to append to the application instance domain, if you're splitting the full path between the instance_domain and the instance_path settings. For example, you might specify the domain as https://myapp.io and the path as /portal/us.
Instance protocol
Key
Value
One of the following: HTTPS is the default.
Instance port
Key
Value
The TCP port used by the scanned app.
Instance username
Key
Value
The username for authenticating with the scanned app.
Instance password
Key
Value
You should create a Harness text secret with your encrypted password and reference the secret using the format <+secrets.getValue("container-access-id")>. For more information, go to Add and reference text secrets.
Product access
These settings are available to access your Tenable instance when policy_type is orchestratedScan.
You should create Harness text secrets for your encrypted passwords/tokens and reference them using the format <+secrets.getValue("my-access-token")>.
Product access keys
Ingestion file
This setting applies to Custom Scan steps when the policy_type is ingestionOnly.
Key
Value
The path to your scan results when running an Ingestion scan, for example /shared/scan_results/myscan.latest.sarif.
The data file must be in a supported format for the scanner.
The data file must be accessible to the scan step. It's good practice to save your scan results to a shared path in your stage. In the visual editor, go to the stage where you're running the scan. Then go to Overview > Shared Paths. You can also add the path to the YAML stage definition like this:
Fail on Severity
If the scan finds any vulnerability with the specified severity level or higher, the pipeline fails automatically. NONE means do not fail on severity.
For more information, go to:
Key
Value
Proxy settings
This step supports private network connectivity if you're using Harness Cloud infrastructure. For information on connectivity options, see Private network connectivity options. When using proxy configurations, the HTTPS_PROXY and HTTP_PROXY variables are automatically set to route traffic through the secure tunnel. If there are specific addresses that you want to bypass the proxy, you can define those in the NO_PROXY variable. This can be configured in the Settings of your step.
If you need to configure a different proxy, you can manually set the HTTPS_PROXY, HTTP_PROXY, and NO_PROXY variables in the Settings of your step.
Definitions of Proxy variables:
HTTPS_PROXY: Specify the proxy server for HTTPS requests, examplehttps://sc.internal.harness.io:30000HTTP_PROXY: Specify the proxy server for HTTP requests, examplehttp://sc.internal.harness.io:30000NO_PROXY: Specify the domains as comma-separated values that should bypass the proxy. This allows you to exclude certain traffic from being routed through the proxy.
Last updated
Was this helpful?