dsm-secrets-injector-chart

by joaquinito2051

Helm chartv2.2.0-4.6App 1.0

About this chart

DSM Secrets Injector Helm Chart v3

This repository contains Helm chart for deploying and configuring secrets injection with Fortanix DSM in Kubernetes applications.

It deploys Mutating Webhook Controller and sidecar container for injecting secrets.

Note: This chart supports kubernetes version 1.16 and above.

Dependency Charts

  • fortanix-cert-setup - cert-setup folder in this repository

Install Chart

  • Install Dependency Chart
$ helm dep up dsm-secrets-injector-chart
  • Install dsm-secrets-injector Chart ** Kubernetes cluster
$ helm install dsm-secrets-injector-chart ./dsm-secrets-injector-chart

** OpenShift Cluster

$ 
$ helm install dsm-secrets-injector-chart ./dsm-secrets-injector --set global.
## Uninstall chart 
* Uninstall dsm-secrets-injector-chart
````console
$ helm delete dsm-secrets-injector-chart

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

The following tables lists the configurable parameters of the sdkms-secrets-injection chart and their default values.

ParameterDescriptionDefault
global.registryGlobal Docker image registryfortanix
global.namespaceGlobal Namespacefortanix
global.serviceGlobal Kubernetes Servicefortanix-secrets-injector-svc
global.serviceAccountService Account for cert TLSfortanix-webhook-certs-sa
global.secretSecret containing cert TLSfortanix-secrets-injector-certs
global.caBundleKubernetes API Server CA Certificate pem bytes as base64 stringnil
configmap.nameConfigMap for Controller configurationfortanix-webhook-config
configmap.authTokenTypeAuthentication Type for Secrets-Injectionapi-key (can be set as jwt or api-key)
configmap.secretAgent.imageNameImage name for Secret Agent Imagek8s-sdkms-secret-agent
configmap.secretAgent.tagImage tag for Secret Agent Image"1.0"
configmap.tokenVolumeProjection.audienceThe audience of the Service Account JWT token. This should be same as SDKMS endpoint. e.g. https://sdkms.fortanix.com. Applies only if jwttype of authentication is setnil
configmap.tokenVolumeProjection.expirationSecondsThe expiration period of the Service Account JWT token (in seconds). Applies only if jwttype of authentication is set3600
replicasNumber of replicas of the Secrets Injector deployment1
image.nameSecrets Injector Image Namek8s-sdkms-secrets-injector
image.tagSecrets Injector Image Tag"1.0"
image.pullPolicySecrets Injector Image Pull PolicyIfNotPresent

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Deploy dsm-secrets-injector-chart with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dsm-secrets-injector-chart 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 chartdsm-secrets-injector-chart is pinned at v2.2.0-4.6 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