external-secrets

by TiFosi

Helm chartv0.4.1App 0.17.0MITVerified publisher

This Chart allows to deploy external-secrets for External Secrets Operator

About this chart

This chart deploys an ExternalSecret resource, a CRD provided by the External Secrets Operator, which allows you to fetch secrets from external secret stores (e.g., HashiCorp Vault) and create a Kubernetes Secret from them. (see https://external-secrets.io)

Example usage:

# values.yaml
storeName: vault-cluster-secret-store
secretName: "{{ .Release.Name }}-external-secret"
refreshInterval: 1h
remoteRefPath: secret/path/in/vault
secrets:
- key: SOME_SECRET
- key: ANOTHER_SECRET
  remoteKey: key-is-different-in-vault
- key: SOME_OTHER_SECRET
  remoteRefPath: secret/path/in/vault/different

Parameters

Prerequisites:

  • External Secrets Operator 0.15.1+ installed with all CRDs ExternalSecret, ClusterSecretStore, and SecretStore
  • A secret store (ClusterSecretStore or SecretStore) created and configured to access the external store (e.g., HashiCorp Vault, AWS Secrets Manager, etc.)
NameDescriptionValue
annotationsAnnotations to be added to the ExternalSecret metadata{}
storeNameThe name of the secret store""
storeKindThe kind of the secret store. ClusterSecretStore or SecretStore. If undefined (the default), set to null or "" then ClusterSecretStore is used.
secretNameThe name of the ExternalSecret & the Kubernetes Secret that will be created{{ .Release.Name }}-external-secret
refreshIntervalThe interval at which the ExternalSecret will be refreshed1h
creationPolicyThe creation policy of the ExternalSecret. Owner, Merge, or None. If undefined (the default), set to null or "", then Owner is used.
remoteRefPathThe path in the external store (e.g., Vault) where all the secrets defined in the secrets array are stored. If not provided, the parameter must be set for each secret in the secrets array.secret/path/in/vault
secretsArray of secrets to be retrieved from the external store and stored in the Kubernetes Secret[]
secrets.[].keyThe key of the secret in the Kubernetes Secret.
secrets.[].remoteRefPathThe path to the secret in the external store if it is different from remoteRefPath or remoteRefPath is not provided.
secrets.[].remoteKeyThe key of the secret in the external store if it is different from secrets.[].key.
targetTemplateUse this to set a custom template for the target secret (see https://external-secrets.io/latest/guides/templating/). This is useful for advanced use cases where you want to customize the secret data or type.{}
extraObjectsArray of extra ExternalSecret resources to be created. This is useful for creating additional resources that are not part of the main ExternalSecret spec, such type or different secret stores. NOTE: the main storeName defined above will be used if not provided in the extra object.[]

Deploy external-secrets with OpenTenant

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