Environment variables

There are expert configuration variables for the BDBA virtual appliance that can be configured when SSH access is enabled. The environment variables can be configured using the /etc/appcheck/environment file. The file format is a standard KEY=VALUE on each line. The following keys are supported:

  • DATA_UPDATE_UPSTREAM: Upstream service URL BDBA uses for downloading data updates. The default is "https://bdba.blackduck.com/".
  • ALLOWED_HOSTS: List of allowed values for HTTP Host header. Wildcards are allowed, and values are separated by comma (,). Default is "*".
  • FRONTEND_WORKER_CONCURRENCY: Number of concurrent BDBA result post process workers. This value should be increased if the scanning volume is large and there are tens of workers. Increasing this value will cause more memory consumption on frontend machine and will also cause more load to the database. The default is "3".
  • MAX_DECOMPRESSION_RATIO: The maximum decompression value of files extracted by the worker from an archive. The default value is 20, meaning if an 1MB archive contains a 20MB file, it will not be extracted. This value may need to be adjusted if you are extracting files from a file system that compresses files very efficiently.
After the environment variables are configured, relevant services need to be restarted. This can be achieved by executing:

        # sudo systemctl restart appcheck
        # sudo systemctl restart frontend-worker
        # sudo systemctl restart frontend-worker-long
        # sudo systemctl restart frontend-worker-updates