Hardware Requirements
The following hardware requirements are assumed with a single instance of the platform running scans are multiple large images in parallel, in the worst case scenario:
Depending on the usage pattern the scan nodes can be made smaller to parallelise parts of scans. See the Scanner Requirements section for more detail on scan resourcing.
Binarly strongly recommend monitoring the resource usage of the scanner pods and using this information to right-size the the scanning node group.
Kubernetes Requirements
Binarly On-Prem requires a Kubernetes cluster with the following components:- A Storage Class for Persistent Volumes, reclaimPolicy set to Delete. This is used during scans.
- If using Minio and Postgres, a Storage Class for Persistent Volumes with reclaimPolicy set to Retain.
- An Ingress Controller or a Gateway
- A route to the cluster
- A domain
- Three subdomain names for the components (The names can be customised):
- Dashboard (Main application)
- Keycloak (Authentication)
- Minio (Object Storage)
- Certificates for the domain names
Scanner Requirements
The Binarly scanner runs in two distinct phases: the normalisation phase and the scan phase. During normalisation the input file is normalised into a format that can be processed during the scan phase. This phase requires a PVC that is discarded when normalisation is complete. The scanning phase takes the output of normalisation and processes it with several tools in parallel, using the node’s ephemeral storage to store files during this process.Resourcing
Resource usage by the scanner components is entirely dependent on the size of the input file, number of components, and size of individual components. Generally, smaller files will use fewer resources and the size of the scanning node group can be made dramatically smaller. Larger files with large components will use more memory during a scan.Collecting the memory and CPU metrics from scan pods will allow continuous tuning of the resources required by the scanner. It is better to overprovision and adjust down once a profile has been established.Depending on the input files some tools may not have components to process, or alternatively have many large components to process.
Resource Requests and Limits
The scan pods can have a global or individual Request and Limit for memory and CPU:Partitioned Scans
If the usage pattern requires large files to be scanned, or a mixture of large and small files, the scanner can be configured to partition each normalised input and run a job in parallel per partition:Parallel Scans
The Scanner deployment will run as many scans in parallel as defined in values:Scan Resource Requests
The Binarly scan is made up of multiple separate jobs that run in parallel. The resources are set in the values file and are shown here with the default values:Setting Up Job Distribution
The Jobs accept common Kubernetes configuration to spread the load across the cluster:Scanner Storage Requirements
By default, the initial normalise phase requests 80GB of storage. This is configurable in the values file:Data Requirements
Binarly On-Prem requires a persistent storage backend comprising of PostgreSQL Databases and Object Storage. We recommend deploying these outside of the Binarly On-Prem cluster for better performance and reliability, but can deploy these as part of the installation. For object storage, we support:- Amazon S3
- Google Cloud Storage
- MinIO
Using the Built-in Data System
Binarly On-Prem includes a built-in data plane for small-scale deployments. This data plane is suitable for testing and evaluation purposes, but we recommend using external storage for production deployments.The Storage Size is dependent on the number of scans and the size of the images being scanned. The above values are a starting point and should be adjusted based on your specific requirements.
Using External Data Systems
Details can be injected into the Binarly deployments using secrets in the deployment namespace.Databases
Binarly requires a Postgres instance version 16 or above, and connection details to that instance. The secrets are passed to each component using the following values:-
Server:
-
VDB:
-
Keycloak:
Object Storage
Object storage is used to:- Host the files used for vulnerability discovery
- Store images and other artifacts
AWS S3
Authentication to S3 can be done using IRSA, PodIdentity, or access keys. Please see the AWS documentation for more details on how to set this up on your AWS cluster.IRSA Using a Role Annotation
The values config for external buckets:Pod Identity
This is similar to IRSA except the annotation is not required. The service account just needs to be linked to the role using the Pod Identity mechanism detailed here: https://docs.aws.amazon.com/eks/latest/userguide/pod-identities.htmlAccess Keys
The access key and secret key need to be stored inside a secret in the namespace where Binarly is deployed and is not managed by the BTP chart. The following example has two secrets,bucket-credentials for the images bucket and artefacts-bucket-credentials for the artefacts bucket.
Permissions and CORS
The Role or User used to access the buckets needs the following permissions:GCP GCS
GCS Access can be managed using Workload Identity.Workload Identity
The values config for external buckets:Permissions and CORS
The Service Account used to access the buckets needs the following permissions:- Storage Object Creator
- Storage Object User
- Storage Object Viewer
Third-Party Charts
The Binarly Installation comes with a set of third-party charts that are used to support the platform. The installation of these charts is automated by default for ease, but ideally these components should be installed and managed outside of the Binarly installation and disabled in the BTP chart values.Argo Workflows (Required)
Argo Workflows is an open-source container-native workflow engine for Kubernetes. It allows you to define and manage complex workflows using a simple YAML syntax. The Binarly application can leverage Argo Workflows for advanced orchestration and automation tasks. If this is managed outside of the BTP application, please ensure that the following are set in the values file:Secretsgen Controller (Semi-Optional)
Secretgen Controller generates secrets from a template. This is used to generate the secrets required for the Binarly application. This can be disabled if the secrets are managed outside the BTP application, or installed separately. To install separately, you can use the chart fromcharts/secretgen-controller in the BTP chart, and adjust the values to disable the bundled deployment:
Keycloak (Required)
Keycloak is an open-source identity and access management solution. This is used to manage the authentication for the Binarly application. If installing this manually, please ensure that the following are set in the values file:keycloak with the following keys: