cyber-center

by deployment-aqua

Helm chartv2022.4.6App 2022.4

A Helm chart for Aqua CyberCenter

About this chart

Aqua Security CyberCenter Helm Chart

These are Helm charts for installing and maintaining the Aqua Security CyberCenter.

Contents

  • Aqua Security CyberCenter Helm Chart
    • Contents
    • Prerequisites
      • Container Registry Credentials
    • Installing the Chart
      • Installing Aqua CyberCenter from Helm Private Repository
    • Configuring mTLS/TLS
    • How to connect to the offline CyberCenter from the Aqua console
    • Configurable Variables for the CyberCenter
    • Issues and feedback

Prerequisites

Container Registry Credentials

Link

Installing the Chart

Follow the steps in this section for production grade deployments. You can either clone aqua-helm git repo or you can add our helm private repository (https://helm.aquasec.com)

Installing Aqua CyberCenter from Helm Private Repository

  • Add Aqua Helm Repository
helm repo add aqua-helm https://helm.aquasec.com
helm repo update
  • Check for available chart versions either from Changelog or by running the following command:
helm search repo aqua-helm/cyber-center --versions
  • Install Aqua CyberCenter
helm upgrade --install --namespace aqua aqua-cyber-center aqua-helm/cyber-center --set imageCredentials.username=<>,imageCredentials.password=<>

Configuring mTLS/TLS

In order to support L7 / gRPC communication between the CyberCenter and the Server, or between the CyberCenter and scanners, it is recommended to follow the detailed steps to deploy and enable the CyberCenter.

  1. The CyberCenter should connect to the Envoy/Gateway service and verify its certificate. If Envoy/Gateway certificate is signed by a public provider (e.g., Let’s Encrypt), the CyberCenter will be able to verify the certificate without being given a root certificate. Otherwise, the Envoy/Gateway root certificate should be accessible to the CyberCenter from an environment variable path that is mounted at /opt/aquasec/ssl/.

    # Self-Signed Root CA (Optional)
    #####################################################################################
    # Create Root Key
    # If you want a non password protected key just remove the -des3 option
    openssl genrsa -des3 -out rootCA.key 4096
    # Create and self sign the Root Certificate
    openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.crt
    #####################################################################################
    # Create a certificate
    #####################################################################################
    # Create the certificate key
    openssl genrsa -out aqua_cc_mydomain.com.key 2048
    # Create the signing (csr)
    openssl req -new -key aqua_cc_mydomain.com.key -out aqua_cc_mydomain.com.csr
    # Verify the csr content
    openssl req -in aqua_cc_mydomain.com.csr -noout -text
    #####################################################################################
    # Generate the certificate using the aqua_cc_mydomain csr and key along with the CA Root key
    #####################################################################################
    openssl x509 -req -in aqua_cc_mydomain.com.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out aqua_cc_mydomain.com.crt -days 500 -sha256
    #####################################################################################
    
    # If you wish to use a Public CA like GoDaddy or Let’s Encrypt please
    # submit the aqua_cc_mydomain csr to the respective CA to generate aqua_cc_mydomain crt
    
  2. Create CyberCenter agent cert secret

    ## Example: 
    ## Change < certificate filenames > respectively
    kubectl create secret generic aqua-cc-certs --from-file <aqua_cyber-center_private.key> --from-file <aqua_cyber-center_public.crt> --from-file <rootCA.crt> -n aqua
    
  3. Enable TLS.enable to true in values.yaml

  4. Add the certificate's secret name TLS.secretName in values.yaml

  5. Add the respective certificate file names to TLS.publicKey_fileName, TLS.privateKey_fileName and TLS.rootCA_fileName(Add rootCA if certs are self-signed) in values.yaml

How to connect to the offline CyberCenter from the Aqua console

Log in into the Aqua web UI then go to the Aqua CyberCenter section under the Settings tab to connect to a new offline CyberCenter.

  1. Change the address to the offline CyberCenter address, e.g., http://aqua-cc:443.
  2. Test the connection; once it is successful, save the changes.
  3. Disable Fast Scanning under the Scanning section in the Settings tab.

For more information, refer to Link

Configurable Variables for the CyberCenter

ParameterDescriptionDefaultMandatory
imageCredentials.createEnable to create new pull image secretfalseYES - New cluster
imageCredentials.nameYour Docker pull image secret nameaqua-registry-secretYES - New cluster
imageCredentials.repositoryUriPrefixRepository URI prefix for Docker Hub set docker.ioregistry.aquasec.comYES - New cluster
imageCredentials.registrySet the registry URL for Docker Hub set index.docker.io/v1/registry.aquasec.comYES - New cluster
imageCredentials.usernameYour Docker registry (Docker Hub, etc.) usernameaqua-registry-secretYES - New cluster
imageCredentials.passwordYour Docker registry (Docker Hub, etc.) passwordunsetYES - New cluster
serviceAccount.nameService account nameaqua-saNO
serviceAccount.createEnable to create aqua-sa serviceAccount if it is missing in the environmentfalseYES - New cluster
platformPlatform name (for Openshift)``NO
image.repositoryDocker image name to usecc-premiumYES
image.tagImage tag to use2022.4YES
image.pullPolicyKubernetes image pull policyAlwaysNO
service.typeKubernetes service typeClusterIPNO
service.annotationsService annotations{}NO
service.portsArray of ports settingsarrayNO
tolerationsKubernetes node tolerations[]NO
deploymentAnnotationsKubernetes deployment annotations{}NO
podAnnotationsKubernetes pod annotations{}NO
resourcesResource requests and limits{}NO
nodeSelectorKubernetes node selector{}NO
affinityKubernetes node affinity{}NO
TLS.enabledIf secure channel communication is requiredfalseNO
TLS.secretNameCertificates secret namenilYES if TLS.enabled is set to true
TLS.publicKey_fileNameFilename of the public key, e.g., aqua_cyber-center.crtnilYES if TLS.enabled is set to true
TLS.privateKey_fileNameFilename of the private key, e.g., aqua_cyber-center.keynilYES if TLS.enabled is set to true
TLS.rootCA_fileNameFilename of the rootCA, if using self-signed certificates, e.g., rootCA.crtnilNO if TLS.enabled is set to true and using self-signed certificates for TLS/mTLS
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Note: imageCredentials.create is false; if you need to create an image pull secret, update this to true, set the username and password for the registry, and set serviceAccount.create to false. If your environment is new or not having aqua-sa serviceAccount, update it to true.

Issues and feedback

If you encounter any problems or would like to give us feedback on deployments, we encourage you to raise issues here on GitHub.

Deploy cyber-center with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cyber-center on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcyber-center is pinned at v2022.4.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply