kamus

by Helm

Helm chartv1.0.0App 0.9.0.7

An open source, git-ops, zero-trust secrets encryption and decryption solution for Kubernetes applications

About this chart

Kamus Helm Chart

Kamus is an open source, git-ops, zero-trust secret encryption and decryption solution for Kubernetes applications. This chart should be used to deploy Kamus in a production environment.

Kamus deployment contains 2 pods, one for encryption and one for decryption. Both pods are installed by this chart.

Installing the Chart

To install the chart with the release name my-kamus:

helm repo add soluto https://charts.soluto.io
helm install --name my-kamus soluto/kamus

The chart can be customized using the following configurable parameters. Most settings affect both APIs, unless specified otherwise:

ParameterDescriptionDefault
replicaCountThe number of replicas1
useAirbagEnable Airbag side car for encryption API. Enable to protect encryption API with Openid-Connect authentication.false
airbag.repositoryThe docker repository to pull Airbag from.soluto
airbag.tagThe docker image tag to use when pulling Airbag. Image name will be airbag:{tag}.soluto
airbag.authorityThe authority issueing the token
airbag.audienceThe audience used to validate the token (aud claim)
airbag.issuerThe issuer used to validate the token (iss claim)
image.versionThe image of Kamus to pull. Image naming convention is kamus:encryption-{version} and kamus:encryption-{version}0.9.0.7
image.repositoryThe docker repository to pull the images fromghcr.io/soluto
image.pullPolicyKamus containers pull policyIfNotPresent
service.typeThe type of the service (careful, values other than ClusterIp expose the decryptor to the internet)ClusterIp
service.nameThe name of the servicekamus-encryptor
service.portThe port of the service80
serviceAccount.annotationsThe annotations for the serviceaccount
service.annotationsThe annotations for the serviceprometheus.io/scrape: "true"
ingress.enabledEnable or disable ingress for encryptor APIfalse
ingress.ingressClassNameThe ClassName of the Ingress
ingress.hostsArray of hosts for the ingress
ingress.annotationsThe annotations for the ingress
ingress.tls.secretNameThe name of the TLS secret that should be used by the ingress
resources.limit.cpuThe maximum CPU cores that can be consumed500m
resources.limit.memoryThe maximum amount of memory that can be consumed600Mi
resource.request.cpuThe minimum CPU cores100m
resource.request.memoryThe minimum amount of memory 128Mi
autoscale.minReplicasThe minimum number of pods2
autoscale.maxReplicasThe maximum number of pods10
autoscale.targetCPUScale up the numnber of pods when CPU usage is above this percentage50
keyManagement.providerThe KMS provider (AESKey/AzureKeyVault/GoogleKms/AwsKms)AES
keyManagement.secretNameUse pre-created secret for keyManagement
keyManagement.AES.keyThe encryption key used by the AES provider, ovveride for production deployments. This value must kept secretrWnWbaFutavdoeqUiVYMNJGvmjQh31qaIej/vAxJ9G0=
keyManagement.AES.useKeyDerivationShould the AES key be derived from the service account namefalse
keyManagement.azureKeyVault.clientIdA client ID for a valid Azure Active Directory that has permissions to access the requested key vault
keyManagement.azureKeyVault.clientSecretA client secret for a valid Azure Active Directory that has permissions to access the requested key vault. This value must kept secret
keyManagement.azureKeyVault.keyVaultNameThe name of the KeyVault to use
keyManagement.azureKeyVault.keyTypeThe type of the keysRSA-HSM
keyManagement.azureKeyVault.keySizeThe size of the keys. Do not set to values smaller than 2048 for RSA keys2048
keyManagement.azureKeyVault.maximumDataLengthThe maximum number of bytes that can be encrypted by KeyVaults. For data in bigger size, envelope encryption is used.214
keyManagement.googleKms.locationThe location of the keyring used for encryption/decryption
keyManagement.googleKms.keyRingThe name of the keyring used for encryption/decryption
keyManagement.googleKms.projectIdThe id of the project used for encryption/decryption
keyManagement.googleKms.protectionLevelThe protection of the keys, can be either HSM or SOFTWAREHSM
keyManagement.googleKms.rotationPeriodThe rotation period to set for the keys (optional)
keyManagement.googleKms.credentialsBase64 encoded credentials files (the JSON file that is created when creating keys for service account on google)
keyManagement.awsKms.keyUser access key to use for AWS KMS authentication
keyManagement.awsKms.secretUser access secret to use for AWS KMS authentication
keyManagement.awsKms.regionAWS KMS region
keyManagement.awsKms.cmkPrefixPrefix for the customer master keys that are created in the KMS
pod.annotationsSet the annotations for Kamus's pods
encryptor.automountServiceAccountTokenWhether the service account token should be mounted on the encryptor podsfalse
controller.reconciliationIntervalInSecondsController reconciliation interval in seconds60
Then use this command to install the chart:
helm install --name my-kamus soluto/kamus -f values.yaml

Consult the installtion guide for more details on how to configure Kamus for a production deployment.

Using with EKS IAM Role for service account

In order for the deployments to be able to read the EKS token file, you'll have to pass to the values:

  securityContext:
    fsGroup: 65534

Deploy kamus with OpenTenant

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