trufflehog

by Truffle Security

Helm chartv0.5.0Verified publisher

A Helm chart for TruffleHog Enterprise

About this chart

TruffleHog Enterprise Helm Chart

Description of what the chart deploys and its purpose.

Prerequisites

Before installing the Helm chart, you need to prepare your Kubernetes cluster with some additional resources:

Create the Namespace:

kubectl create namespace trufflehog

Create the Configuration Secret:

Ensure you have the config.yaml file prepared with the appropriate configuration. Then, create the secret in the trufflehog namespace:

kubectl create secret generic config --namespace trufflehog --from-file=config.yaml=/path/to/config.yaml

Installing the Chart:

Once the prerequisites are satisfied, you can deploy Trufflehog using the following command:

helm repo add trufflesecurity https://trufflesecurity.github.io/helm-charts
helm install trufflehog trufflesecurity/trufflehog --namespace trufflehog

Configuration

The values.yaml file provides configuration options for the Trufflehog Helm chart. This allows you to customize the deployment according to your environment and requirements.

Configuration

1. Before Installing:

Modify the values.yaml file directly in the chart directory to adjust the default values.

2. During Installation:

  • Using --set Flag:

    helm install trufflehog trufflesecurity/trufflehog --namespace trufflehog --set replicaCount=2
    

    This command overrides the replicaCount value, setting it to 2 instead of the default.

  • Using a Custom values.yaml:

    Modify your local copy of values.yaml. Then:

    helm install trufflehog trufflesecurity/trufflehog --namespace trufflehog -f /path/to/your/values.yaml
    

3. After Installation:

If you've already installed the Helm release and want to modify the values:

  • Using --set Flag:

    helm upgrade trufflehog trufflesecurity/trufflehog --namespace trufflehog --set replicaCount=3
    

    This command upgrades the existing release with the new value.

  • Using a Custom values.yaml:

    Modify your local copy of values.yaml as needed. Then:

    helm upgrade trufflehog trufflesecurity/trufflehog --namespace trufflehog -f /path/to/your/values.yaml
    

    This command upgrades the existing release using the modified values.yaml file.

Deploy trufflehog with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has trufflehog 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 charttrufflehog is pinned at v0.5.0 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