Proxy and cache Helm Charts with Artifactory
Use Artifactory to proxy and cache Chainguard imaguarded Helm charts
Helm is a package manager for Kubernetes that simplifies the installation and management of applications by automating the creation of Kubernetes resources. Helm charts are reusable, versioned packages that define a collection of Kubernetes resources required to run an application or service. You use Helm to define, install, and perform upgrades to your applications on Kubernetes.
Chainguard offers this limited iamguarded set of Helm charts to go with a set of Chainguard-created containers labeled as iamguarded, designed specifically to support organizations migrating off of Bitnami. The iamguarded charts are forked from upstream Bitnami charts, but now configured out-of-the box for use with Chainguard’s hardened container images. These charts only receive edits necessary to make them work with Chainguard container images and retain the intended functionality of the originals they are based on. Because the iamguarded charts are forks, they may be susceptible to breaking changes introduced by the upstream. In such cases, customers should plan to transition to a community-provided alternative (or an equivalent one from Chainguard) where possible.
For organizations looking to deploy their Chainguard container images with Helm and who don’t need or want the iamguarded charts, Chainguard provides upstream-produced Helm charts. Learn more about these in How to use Chainguard Helm Charts.
These iamguarded charts have been tested by Chainguard to confirm they produce expected deployment results using the following policies:
Chainguard makes the provenance of these charts clear. Helm charts are packaged as OCI artifacts using the upstream version adding an appended revision suffix for updates that include material changes to the chart; otherwise, tags will float based as their dependent images update. The OCI artifacts are signed and generate provenance attestations that link to the exact image digests used to ensure that all artifacts are cryptographically verifiable end-to-end for integrity and origin.
You can find iamguarded Helm charts in the Chainguard Console and in the Chainguard Directory.
The following is an instructional guide for Chainguard users that are looking for Helm charts to use with their iamguarded Chainguard container images.
If you are pulling container images directly from Chainguard, then you must set a global.org value. You don’t need this if you are pulling from your own internal registry.
You can set a global.org value using a --set flag during installation, as shown in this example:
helm install rabbitmq oci://cgr.dev/$ORGANIZATION/iamguarded-charts/rabbitmq \
--set "global.org=$ORGANIZATION"Alternately, you can set this value in a YAML file:
global:
org: $ORGANIZATIONIn addition, users who mirror images to custom repositories should use global.imageRegistry to override the default cgr.dev. If you have a complex mirroring strategy, consult the chart’s values.yaml for individual image configuration options including registry, repository, tag and digest. Here’s a sample from the RabbitMQ iamguarded chart documentation:
image:
registry: myregistry.example.com
repository: mirrored/rabbitmq-iamguarded
digest: sha256:... # Use specific digest instead of tag
# OS Shell image for volume permissions
volumePermissions:
enabled: true
image:
registry: myregistry.example.com
repository: mirrored/os-shell-iamguarded
digest: sha256:... # Use specific digest instead of tagYou will need to authenticate to pull charts. These instructions explain how to use charts and images with the cgr.dev repository. If you have mirrored or copied the charts and images to an organization-specific registry, you will need to adapt these instructions to authenticate to your registry, as appropriate.
This section presents multiple authentication methods:
global.imagePullSecretsglobal.imagePullSecrets
When performing authentication via a global.imagePullSecrets key-value pair, include the following in your values.yaml file.
global:
imagePullSecrets:
- name: chainguard-pull-secretTo begin, authenticate with chainctl and generate a pull token.
chainctl auth login
chainctl auth configure-docker --pull-token --save --ttl=24hThis token expires in 24 hours by default, which can be modified using the
--ttl flag. It sets the duration for the validity of the token. The maximum
valid value is 8760h (equivalent to 365 days), Valid unit strings range from
nanoseconds to hours and are ns, us, ms, s, m, and h, for example
--ttl=24h.
Find the username and password that are contained in the pull token, as in this sample output:
chainctl auth configure-docker --pull-token --save --ttl=24h
✔ Selected folder chainguard.edu.
To use this pull token in another environment, run this command:
docker login "cgr.dev" --username "45a0c61ea6fd977f050c5fb9ac06a69eed764595/095b0c7ea9d68679" --password "eyJhbGciOiJSUzI1NiJ9.eyJhdWQ... # Token truncated"
Configuring identity "45a0c61ea6fd977f050c5fb9ac06a69eed764595/095b0c7ea9d68679" for pulls from cgr.dev (expires 2025-06-12T09:27:45-05:00).
Overwriting existing credentials.Save the credentials as variables, like this.
HELMUSER=45a0c61ea6fd977f050c5fb9ac06a69eed764595/095b0c7ea9d68679
HELMPASS=eyJhbGciOiJSUzI1NiJ9.eyJhdWQ... # Token truncatedCreate your Kubernetes secret using the variables you just created.
kubectl create secret docker-registry chainguard-pull-secret \
--docker-server=cgr.dev \
--docker-username=$(echo $HELMUSER) \
--docker-password=$(echo $HELMPASS) \
-n <your-namespace>Log in to the cgr.dev Helm registry.
helm registry login cgr.dev \
--username=$HELMUSER \
--password=$HELMPASSReference the secret in your Helm installation:
helm install rabbitmq oci://cgr.dev/$ORGANIZATION/iamguarded-charts/rabbitmq \
--set "global.org=$ORGANIZATION" \
--set "global.imagePullSecrets[0].name=chainguard-pull-secret"When the install is successful, it returns a confirmation message, like this:
Pulled: cgr.dev/chainguard-private/iamguarded-charts/rabbitmq:16.0.2
Digest: sha256:cfc18fe651760c91c7596f7d9d44512b162f19e4bfd8ba81b5ff6cb6d8e61d6d
NAME: rabbitmq
LAST DEPLOYED: Mon Jun 9 08:35:39 2025
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
CHART NAME: rabbitmq
CHART VERSION: 16.0.2
APP VERSION: 4.1.0** Please be patient while the chart is being deployed **
Credentials:
echo "Username : user"
echo "Password : $(kubectl get secret --namespace default rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 -d)"
echo "ErLang Cookie : $(kubectl get secret --namespace default rabbitmq -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 -d)"
Note that the credentials are saved in persistent volume claims and will not be changed upon upgrade or reinstallation unless the persistent volume claim has been deleted. If this is not the first installation of this chart, the credentials may not be valid.
This is applicable when no passwords are set and therefore the random password is autogenerated. In case of using a fixed password, you should specify it when upgrading.
More information about the credentials may be found at https://docs.iamguarded.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases.
RabbitMQ can be accessed within the cluster on port 5672 at rabbitmq.default.svc.cluster.local
To access for outside the cluster, perform the following steps:
To Access the RabbitMQ AMQP port:
echo "URL : amqp://127.0.0.1:5672/"
kubectl port-forward --namespace default svc/rabbitmq 5672:5672
To Access the RabbitMQ Management interface:
echo "URL : http://127.0.0.1:15672/"
kubectl port-forward --namespace default svc/rabbitmq 15672:15672
WARNING: There are "resources" sections in the chart not set. Using "resourcesPreset" is not recommended for production. For production installations, please set the following values according to your workload needs:
- resources
+info https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/If you manage access and permissions at cluster-wide and node-specific levels, these are some best practices to consider.
Pin to Digest: While charts follow the same tagging scheme as Chainguard images, always pin to a specific chart digest to prevent unexpected updates:
helm install rabbitmq \
oci://cgr.dev/$ORGANIZATION/iamguarded-charts/rabbitmq@sha256:DIGEST \
--set "global.org=$ORGANIZATION"Review Default Values: The chart provides security-minded defaults that are sensible but may not suit all use cases. Review the chart’s values.yaml for the full range of configuration options and adjust as needed.
Use Image Pinning: All iamguarded charts pin images to specific digests that have been tested for compatibility, ensuring reliable deployments.
Review Default Values: The chart provides security-minded defaults that are sensible but may not suit all use cases. Review the chart’s values.yaml for the full range of configuration options and adjust as needed.
To install a Helm chart using standard Helm commands and passing details as flag values in the command itself, add the flags and values at the end like this example, substituting your organization for $ORGANIZATION.
helm install rabbitmq oci://cgr.dev/$ORGANIZATION/iamguarded-charts/rabbitmq \
--set "global.org=$ORGANIZATION"Alternatively, you can put values in a file, such as our values.yaml sample, and then refer to the file in your install command.
image:
registry: cgr.dev
repository: $ORGANIZATION/rabbitmq # replace $ORGANIZATION
tag: latest # pin to specific version instead of latestThen you refer to the file like this:
helm install test oci://cgr.dev/chainguard-private/iamguarded-charts/rabbitmq --values ./values.yamlWhen installing on EKS Auto Mode, you may need to create a storage class for the Helm chart’s pod(s). This can be done by creating a storage class:
cat <<EOF | kubectl apply -f -
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gp3-automode
provisioner: ebs.csi.eks.amazonaws.com
parameters:
type: gp3
encrypted: "true"
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
EOFYou then pass the storage class’s name to the helm install command. Here, we use rabbitmq as an example:
helm install rabbitmq oci://cgr.dev/$ORGANIZATION/iamguarded-charts/rabbitmq \
--set "global.org=$ORGANIZATION" \
--set "global.imagePullSecrets[0].name=chainguard-pull-secret" \
--set "persistence.storageClass=gp3-automode"To check the Helm configuration, you can run helm install with --dry-run flag. This will output the generated Kubernetes YAML. Double check the values for the image and imagePullSecrets to ensure they point to the correct registry and authentication is in place.
To see the files, run:
helm pull --untar oci://cgr.dev/chainguard-private/iamguarded-charts/rabbitmqTo get the values.yaml so you can examine it, run:
helm show values oci://cgr.dev/chainguard-private/iamguarded-charts/rabbitmqSee the Helm commands documentation for more information.
Last updated: 2026-01-29 08:49