sscsid-keeper

by Unique AI

Helm chartv1.3.0Verified publisher

The SSCSID ([Secrets Store CSI Driver](https://secrets-store-csi-driver.sigs.k8s.io/)) Keeper (`sscsid-keeper`) is a chart that combines the often used `SecretProviderClass`, which is part of the SSCSID with a running deployment that mounts the matching secrets making them available to others within the same namespace. This chart is a pet project of Unique to code more _DRY_ and not officially supported by the maintainers of the `Secrets Store CSI Driver`. Unique also prototypes new features, processes or ideas with this chart (e.g. chart signing). Since Unique is at the time of writing Azure focused, leveraging the Azure managed AKS CSI Extension is sometimes simpler than manually installing other Secret _solutions_. Note that if you need more sophisticated features, or a officially maintained chart or option that supports reloading, ClusterSecrets etc, seek matching alternatives on your own behalf (e.g. [External Secrets Operator](https://external-secrets.io/latest/)).

About this chart

sscsid-keeper

The SSCSID (Secrets Store CSI Driver) Keeper (sscsid-keeper) is a chart that combines the often used SecretProviderClass, which is part of the SSCSID with a running deployment that mounts the matching secrets making them available to others within the same namespace.

This chart is a pet project of Unique to code more DRY and not officially supported by the maintainers of the Secrets Store CSI Driver. Unique also prototypes new features, processes or ideas with this chart (e.g. chart signing).

Since Unique is at the time of writing Azure focused, leveraging the Azure managed AKS CSI Extension is sometimes simpler than manually installing other Secret solutions.

Note that if you need more sophisticated features, or a officially maintained chart or option that supports reloading, ClusterSecrets etc, seek matching alternatives on your own behalf (e.g. External Secrets Operator).

Implementation Details

OCI availibility

This chart is available both as Helm Repository as well as OCI artefact.

helm repo add unique https://unique-ag.github.io/helm-charts/
helm install my-sscsid-keeper unique/sscsid-keeper --version 1.3.0

# or
helm install my-sscsid-keeper oci://ghcr.io/unique-ag/helm-charts/sscsid-keeper --version 1.3.0

Values

KeyTypeDefaultDescription
fullnameOverridestring""This is to override the full name.
keeperobject{"affinity":{},"image":{"pullPolicy":"IfNotPresent","repository":"busybox","tag":"1.37.0"},"imagePullSecrets":[],"pdb":{"enabled":true,"minAvailable":1},"podAnnotations":{},"podLabels":{},"podSecurityContext":{},"replicaCount":2,"resourcesPreset":"yocto","securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000},"tolerations":[]}Set options for the deployed keeper, its deployment and pods respectively.
keeper.affinityobject{}Default affinity preset for the keeper
keeper.imageobject{"pullPolicy":"IfNotPresent","repository":"busybox","tag":"1.37.0"}This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
keeper.image.pullPolicystring"IfNotPresent"This sets the pull policy for images.
keeper.image.repositorystring"busybox"This sets the image repository.
keeper.image.tagstring"1.37.0"Overrides the image tag whose default is the chart appVersion.
keeper.imagePullSecretslist[]This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
keeper.pdbobject{"enabled":true,"minAvailable":1}Set the PodDisruptionBudget for the keeper
keeper.pdb.enabledbooltrueenabled by default as it keeps the secret
keeper.pdb.minAvailableint1defines how many pods should be kept around, half of the replica in our example
keeper.podAnnotationsobject{}This is for setting Kubernetes Annotations to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
keeper.podLabelsobject{}This is for setting Kubernetes Labels to a Pod. For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
keeper.podSecurityContextobject{}Toggle and define pod-level security context.
keeper.replicaCountint2This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
keeper.resourcesPresetstring"yocto"Set container resources according to one common preset (allowed values: none, yocto, zepto, atto).
keeper.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000}Toggle and define security context.
keeper.tolerationslist[]Tolerations for the keeper
nameOverridestring""This is to override the release name.
spcobject{"identityId":"00000000-0000-0000-0000-000000000000","k8sSecretType":"Opaque","kvName":"keyvault-name","labels":{},"secrets":[{"k8sSecretDataKey":"apiKeyExample","kvObjectName":"my-special-example-key"}],"tenantId":"00000000-0000-0000-0000-000000000000"}Set options for the Secret Provider Class
spc.identityIdstring"00000000-0000-0000-0000-000000000000"Azure Entra ID Identity Client ID
spc.k8sSecretTypestring"Opaque"Type of Kubernetes Secret
spc.kvNamestring"keyvault-name"Azure KeyVault which stores the secrets, must be available over the network
spc.labelsobject{}Set the labels for the Secret Provider Class
spc.secretslist[{"k8sSecretDataKey":"apiKeyExample","kvObjectName":"my-special-example-key"}]Set the secret objects for the Secret Provider Class
spc.secrets[0].k8sSecretDataKeystring"apiKeyExample"defines, which key in the secret object should be used
spc.secrets[0].kvObjectNamestring"my-special-example-key"defines, which object from the Key Vault should be used
spc.tenantIdstring"00000000-0000-0000-0000-000000000000"Azure Entra ID Tenant ID wherein the Managed Identity is present

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy sscsid-keeper with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sscsid-keeper 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 chartsscsid-keeper is pinned at v1.3.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