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, andSecretStore - A secret store (
ClusterSecretStoreorSecretStore) created and configured to access the external store (e.g., HashiCorp Vault, AWS Secrets Manager, etc.)
| Name | Description | Value |
|---|---|---|
annotations | Annotations to be added to the ExternalSecret metadata | {} |
storeName | The name of the secret store | "" |
storeKind | The kind of the secret store. ClusterSecretStore or SecretStore. If undefined (the default), set to null or "" then ClusterSecretStore is used. | |
secretName | The name of the ExternalSecret & the Kubernetes Secret that will be created | {{ .Release.Name }}-external-secret |
refreshInterval | The interval at which the ExternalSecret will be refreshed | 1h |
creationPolicy | The creation policy of the ExternalSecret. Owner, Merge, or None. If undefined (the default), set to null or "", then Owner is used. | |
remoteRefPath | The 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 |
secrets | Array of secrets to be retrieved from the external store and stored in the Kubernetes Secret | [] |
secrets.[].key | The key of the secret in the Kubernetes Secret. | |
secrets.[].remoteRefPath | The path to the secret in the external store if it is different from remoteRefPath or remoteRefPath is not provided. | |
secrets.[].remoteKey | The key of the secret in the external store if it is different from secrets.[].key. | |
targetTemplate | Use 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. | {} |
extraObjects | Array 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartexternal-secrets is pinned at v0.4.1 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