codesec-agent

by deployment-aqua

Helm chartv1.2.13

A Helm chart for Aqua supply chain security

About this chart

Aqua Security Codesec Agent Helm Chart

Protect your Software Supply Chain.

Using this helm chart, you can integrate code security into your organization

Contents

  • Aqua Security Codesec Agent Helm Chart
    • Contents
    • Prerequisites and limitations
    • Installing the chart
      • Installing Codesec Agents from Helm Private Repository
    • Variables
      • Mandatory Variables
      • Optional Variables

Prerequisites and limitations

  • The deployment requires network access to the desired integration(SCM/Artifactory/CI tools).
  • This deployment is not for Air gapped environments.
  • Access Token/App Token for the specific integration.
  • Available integrations(and how to generate access token):

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 Codesec Agents 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 by running the below command
helm search repo aqua-helm/codesec-agent --versions
  • Install the Agents
helm upgrade --install --namespace aqua-codesec <RELEASE_NAME> aqua-helm/codesec-agent \
--set credentials.aqua_key=<AQUA API KEY> \
--set credentials.aqua_secret=<AQUA API KEY SECRET> \
--set integration.source=<SOURCE> \
--set integration.url=<THE INTEGRATION URL> \
--set integration.username=<THE ACCESS TOKEN NAME OR ACCOUNT USERNAME> \
--set integration.password=<THE ACCESS TOKEN VALUE OR ACCOUNT PASSWORD> \

Variables

In-order to deploy successfully there are mandatory and optional variables for certain occasions:

  • Mandatory Aqua account credentials
  • Mandatory Integration credentials
  • Optional SSL credentials for Environments that are using CA and certificates
  • Optional Http/s Proxy specification with no_proxy prefence to exclude specific domains from proxy

Mandatory Variables

VariableTypeDescriptionExample
credentials.aqua_keyStringThe Aqua account api key
credentials.aqua_secretStringThe Aqua account api key secret
integration.sourceString(Enum)The type of the integration (gitlab_server, azure_server, bitbucket_server,jenkins,nexus,jfrog_server)"gitlab_server"
integration.urlStringThe SCM/Artifactory/CI integration endpoint"https://my-gitlab-server.com"
integration.usernameStringThe SCM/Artifactory/CI account username or access token name
integration.passwordStringThe SCM/Artifactory/CI account password or access token value

Optional Variables

VariableTypeDescriptionExampleDefault
ssl.enabledBooleanEnable usage of SSL Certificatesfalse
ssl.caStringThe CA file content
ssl.certStringThe Certificate file content
ssl.keyStringThe Certificate private key
proxy.http_proxyStringThe url of a proxy server to forward http:// protocol requests throughhttp://username:[email protected]:8080
proxy.https_proxyStringThe url of a proxy server to forward https:// protocol requests throughhttps://username:[email protected]
proxy.no_proxyStringComma separated list of domains to exclude from proxying (Can be a single domain)myserver.com,myserver.net,myserver.co
connect.portNumberThe connector http service port9999
connect.service.portNumberThe connector service port9999
connect.service.annotationsObjectAny annotations for the Connector service
connect.resourcesObjectResource limitation for the connector deployment{}
connect.nodeSelectorObjectNode selector configuration for the connector deployment{}
connect.affinityObjectAffinity configuration for the connector deployment{}
connect.tolerationsObjectTolerations configuration for the connector deployment{}
connect.hostAliasesObjectHost Aliases configuration for the connector deployment
connect.extraEnvObjectExtra environment variables to pass to the connect container.{}
scan.replicasNumberNumber of pod replicas for the "scanner" service.1
scan.resourcesObjectResource limitation for the scanner deployment{}
scan.nodeSelectorObjectNode selector configuration for the scanner deployment{}
scan.affinityObjectAffinity configuration for the scanner deployment{}
scan.tolerationsObjectTolerations configuration for the scanner deployment{}
scan.hostAliasesObjectHost Aliases configuration for the scanner deployment
scan.extraEnvObjectExtra environment variables to pass to the scanner container.{}

Deploy codesec-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has codesec-agent 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 chartcodesec-agent is pinned at v1.2.13 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