enterprise
by Anchore
Anchore Enterprise is a complete container security workflow solution for professional teams. Easily integrating with CI/CD systems, it allows developers to bolster security without compromising velocity and enables security teams to audit and verify compliance in real-time. It is based on Anchore Engine, an open-source image inspection and scanning tool.
About this chart
Anchore Enterprise Helm Chart
:exclamation: Important: View the Chart Release Notes for the latest changes prior to installation or upgrading.
This Helm chart deploys Anchore Enterprise on a Kubernetes cluster using the Helm package manager.
Anchore Enterprise is an software bill of materials (SBOM) - powered software supply chain management solution designed for a cloud-native world. It provides continuous visibility into supply chain security risks. Anchore Enterprise takes a developer-friendly approach that minimizes friction by embedding automation into development toolchains to generate SBOMs and accurately identify vulnerabilities, malware, misconfigurations, and secrets for faster remediation.
See the Anchore Enterprise Documentation for more details.
Table of Contents
- Prerequisites
- Installing the Chart
- Installing on Openshift
- Upgrading
- Uninstalling the Chart
- Configuration
- External Database Requirements
- Installing on Openshift
- Database Secret Encryption
- Using a Private Registry
- Analyzer Image Layer Cache Configuration
- Configuring Object Storage
- Configuring Analysis Archive Storage
- Existing Secrets
- Ingress
- Prometheus Metrics
- Scaling Individual Services
- Using TLS Internally
- Object storage migration
- Parameters
- Release Notes
Prerequisites
- Helm >=3.8
- Kubernetes >=1.23
Installing the Chart
This guide covers deploying Anchore Enterprise on a Kubernetes cluster with the default configuration. Refer to the Configuration section for additional guidance on production deployments.
-
Create a Kubernetes Secret for License File: Generate a Kubernetes secret to store your Anchore Enterprise license file.
export NAMESPACE=anchore export LICENSE_PATH="license.yaml" kubectl create secret generic anchore-enterprise-license --from-file=license.yaml=${LICENSE_PATH} -n ${NAMESPACE} -
Create a Kubernetes Secret for DockerHub Credentials: Generate another Kubernetes secret for DockerHub credentials. These credentials should have access to private Anchore Enterprise repositories. We recommend that you create a brand new DockerHub user for these pull credentials. Contact Anchore Support to obtain access.
export NAMESPACE=anchore export DOCKERHUB_PASSWORD="password" export DOCKERHUB_USER="username" export DOCKERHUB_EMAIL="[email protected]" kubectl create secret docker-registry anchore-enterprise-pullcreds --docker-server=docker.io --docker-username=${DOCKERHUB_USER} --docker-password=${DOCKERHUB_PASSWORD} --docker-email=${DOCKERHUB_EMAIL} -n ${NAMESPACE} -
Add Chart Repository & Deploy Anchore Enterprise: Create a custom values file, named
anchore_values.yaml, to override any chart parameters. Refer to the Parameters section for available options.:exclamation: Important: Default passwords are specified in the chart. It's highly recommended to modify these before deploying.
export NAMESPACE=anchore export RELEASE=my-release helm repo add anchore https://charts.anchore.io helm install ${RELEASE} -n ${NAMESPACE} anchore/enterprise -f anchore_values.yamlNote: This chart requires a user-provided PostgreSQL database. See the External Database section for details on configuring your database connection.
-
Post-Installation Steps: Anchore Enterprise will take some time to initialize. Use the following anchorectl commands to check the system status:
export NAMESPACE=anchore export RELEASE=my-release export ANCHORECTL_URL=http://localhost:8228/v1/ export ANCHORECTL_PASSWORD=$(kubectl get secret -n ${NAMESPACE} "${RELEASE}-enterprise" -o jsonpath='{.data.ANCHORE_ADMIN_PASSWORD}' | base64 -d -) kubectl port-forward -n ${NAMESPACE} svc/${RELEASE}-enterprise-api 8228:8228 # port forward for anchorectl in another terminal anchorectl system status # anchorectl defaults to the user admin, and to the password ${ANCHORECTL_PASSWORD} automatically if setTip: List all releases using
helm list
Installing on Openshift
You will need to either disable or properly set the parameters for containerSecurityContext, runAsUser, and fsGroup for the ui-redis dependency. Also, by default, Anchore Enterprise creates a user that normally runs the application with a uid/gid/group of 1000. If your deployment uses any other user as openshift usually does, you will need to update the HOME environment variable to a directory where the analyzer service can write to.
For example:
-
Deploy the enterprise chart with appropriate values:
helm install anchore anchore/enterprise \ --set securityContext.fsGroup=null \ --set securityContext.runAsGroup=null \ --set securityContext.runAsUser=null \ --set ui-redis.master.podSecurityContext.enabled=false \ --set ui-redis.master.containerSecurityContext.enabled=false \ --set postgresql.externalEndpoint=<POSTGRES_ENDPOINT> \ --set analyzer.extraEnv[0].name=HOME \ --set analyzer.extraEnv[0].value=/tmpNote: disabling the containerSecurityContext and podSecurityContext may not be suitable for production. See Redhat's documentation on what may be suitable for production. For more information on the openshift.io/sa.scc.uid-range annotation, see the openshift docs
Example Openshift values file
# NOTE: This is not a production ready values file for an openshift deployment.
securityContext:
fsGroup: null
runAsGroup: null
runAsUser: null
postgresql:
externalEndpoint: <POSTGRES_ENDPOINT>
ui-redis:
master:
podSecurityContext:
enabled: false
containerSecurityContext:
enabled: false
analyzer:
extraEnv:
- name: HOME
value: /tmp
Upgrading the Chart
:exclamation: Important: View the Chart Release Notes for the latest changes prior to upgrading.
A Helm pre-upgrade hook initiates a Kubernetes job that scales down all active Anchore Enterprise pods and handles the Anchore database upgrade.
The Helm upgrade is marked as successful only upon the job's completion. This process causes the Helm client to pause until the job finishes and new Anchore Enterprise pods are initiated. To monitor the upgrade, follow the logs of the upgrade jobs. These jobs are automatically removed after a subsequent successful Helm upgrade.
export NAMESPACE=anchore
export RELEASE=my-release
helm upgrade ${RELEASE} -n ${NAMESPACE} anchore/enterprise -f anchore_values.yaml
An optional post-upgrade hook is available to perform Anchore Enterprise upgrades without forcing all pods to terminate prior to running the upgrade. This is the same upgrade behavior that was enabled by default in the legacy anchore-engine chart. To enable the post-upgrade hook, set upgradeJob.usePostUpgradeHook=true in your values file.
Uninstalling the Chart
To completely remove the Anchore Enterprise deployment and associated Kubernetes resources, follow the steps below:
export NAMESPACE=anchore
export RELEASE=my-release
helm uninstall ${RELEASE} -n ${NAMESPACE}
After deleting the helm release, there are still a few persistent volume claims to delete. Delete these only if you're certain you no longer need them.
export NAMESPACE=anchore
export RELEASE=my-release
kubectl get pvc -n ${NAMESPACE}
Configuration
This section outlines some of the available configuration options for Anchore Enterprise. The default settings are specified in the bundled values file. To customize these settings, create your own anchore_values.yaml file and populate it with the configuration options you wish to override. To apply your custom configuration during installation, pass your custom values file to the helm install command:
export NAMESPACE=anchore
export RELEASE="my-release"
helm install ${RELEASE} -n ${NAMESPACE} anchore/enterprise -f custom_values.yaml
For additional guidance on customizing your Anchore Enterprise deployment, reach out to Anchore Support.
External Database Requirements
Anchore Enterprise requires a PostgreSQL-compatible database version 17 or above with the pg_cron extension installed and enabled. For production environments, leveraging managed database services like AWS RDS or Google Cloud SQL is advised. This chart requires you to provide your own PostgreSQL database.
For optimal performance, allocate a minimum of 100GB storage to accommodate images, tags, subscriptions, policies, and other data entities. Furthermore, configure the database to support a minimum of 2,000 client connections. This limit may need to be adjusted upward if you're running more Anchore services than the default configuration.
External Postgres Database Configuration
postgresql:
externalEndpoint: <HOSTNAME>
auth:
password: <PASSWORD>
username: <USER>
database: <DATABASE>
anchoreConfig:
database:
ssl: true
sslMode: require
RDS Postgres Database Configuration
Please note that automatic password rotation using AWS Secrets Manager is enabled by default upon provisioning a new RDS cluster however this feature is not currently supported by Anchore Enterprise.
RDS Postgres Database Configuration With TLS
To obtain a comprehensive AWS RDS PostgreSQL certificate bundle, which includes both intermediate and root certificates for all AWS regions, you can download it here. An example of creating the certificate secret can be found in TLS Configuration.
postgresql:
externalEndpoint: <HOSTNAME>
auth:
password: <PASSWORD>
username: <USER>
database: <DATABASE>
certStoreSecretName: some-cert-store-secret
anchoreConfig:
database:
ssl: true
sslMode: verify-full
# sslRootCertName is the name of the Postgres root CA certificate stored in certStoreSecretName
sslRootCertFileName: postgres-root-ca-cert
NG vs Legacy Database Driver Arguments
Anchore Enterprise legacy services use psycopg2, while ng services use psycopg3. Because the two drivers may expect different parameter names (e.g. timeout vs connect_timeout), separate override fields are provided:
anchoreConfig.database.dbConnectArgs/anchoreConfig.database.engineArgs— used by legacy (psycopg2) servicesanchoreConfig.database.ngDbConnectArgs/anchoreConfig.database.ngEngineArgs— used by ng (psycopg3) services
When these override fields are empty (the default), both legacy and ng services fall back to the individual settings (timeout, db_pool_size, db_pool_max_overflow, etc.) with appropriate key name mappings.
Google CloudSQL Database Configuration
## anchore_values.yaml
postgresql:
auth:
password: <CLOUDSQL-PASSWORD>
username: <CLOUDSQL-USER>
database: <CLOUDSQL-DATABASE>
cloudsql:
enabled: true
instance: "project:zone:instancename"
# If using Kubernetes v1.29+ (i.e. sidecar support in your cluster) set useSideCar true
useSideCar: true
# Optional existing service account secret to use. See https://cloud.google.com/sql/docs/postgres/authentication
useExistingServiceAcc: true
# If using an existing Service Account, you must create a secret (named my_service_acc in the example below)
# which includes the JSON token from Google's IAM (corresponding to for_cloudsql.json in the example below)
serviceAccSecretName: my_service_acc
serviceAccJsonName: for_cloudsql.json
Database Secret Encryption
Anchore Enterprise can encrypt sensitive values stored in the database — registry credentials and other secrets. The values themselves are encrypted strings, so they stay encrypted on disk, in flight between services, and in memory until the point of use. This is broader than typical "encryption at rest", which only addresses the storage layer.
Encryption is opt-in — it is controlled entirely by whether you supply encryption keys. With no keys configured (the default) those values are stored as plaintext. This default exists so existing deployments are not broken by upgrades; new installs are encouraged to enable encryption.
To enable encryption, configure keys using one of the options below. Supplying the current key is all that is required to turn encryption on.
Two encryption keys are supported: a current key used to encrypt new data, and an optional previous key retained so the application can decrypt older values
Deploy enterprise with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has enterprise 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartenterprise is pinned at v4.5.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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