cosmian-kms
by QuenchWorks
Cosmian KMS -- KMIP 2.1 key management server with PKCS#11 and Google/Microsoft CSE support, the only KMIP speaker in this catalog. Shipped under BUSL-1.1, which is NOT OSI-approved AND caps production use at 2 vCPUs while barring third-party offering; read the licence before deploying. Built non-FIPS against current OpenSSL, so NOT FIPS 140-3 despite upstream's description. Hardened by QuenchWorks as a minimal, nonroot, CVE-gated image, cosign-signed and pinned by digest.
About this chart
Quenchworks Cosmian KMS
⚠️ LICENCE — NOT OPEN SOURCE, AND CAPPED IN PRODUCTION
Cosmian KMS is licensed under the Business Source License 1.1, which is not OSI-approved open source. Its Additional Use Grant permits production use only up to:
2 vCPUs on virtual machines, or 1 physical core on bare metal — and does not include offering the Licensed Work to third parties.
This is stricter than HashiCorp Vault's BUSL, which restricts competing hosted offerings but allows unlimited internal production use. Scaling this past 2 vCPUs in production is a licence violation. The chart's default resource limit is set at 2 CPU to match the grant; raising it is your decision and your exposure.
There is no open KMIP alternative to recommend instead: Vault's KMIP secrets engine is Enterprise-only, so
quench/openbaodoes not inherit it, and nothing else in this catalog speaks KMIP 2.1.
Not FIPS 140-3
Upstream describes itself as FIPS 140-3 compliant and builds in FIPS mode by default. That requires OpenSSL's FIPS provider, which Wolfi does not ship, so this image is built with the
non-fipsfeature. Do not inherit the FIPS claim for this build.
KMIP 2.1 key management server on a minimal, nonroot, CVE-gated image built from source on Wolfi, cosign-signed and pinned by digest.
Install
helm install kms oci://ghcr.io/quenchworks/charts/cosmian-kms
SQLite on a PVC by default — no external database to provision.
Storage
database.type | Notes |
|---|---|
sqlite (default) | A file on the PVC. replicaCount is fixed at 1. |
postgresql | Supply database.existingSecret with a url key. |
mysql | Same. |
redis-findex | Same. |
Why one replica with SQLite — this is not a limitation to route around. The database is
a file on a ReadWriteOnce volume, so two replicas would be two independent key stores
behind one Service, handing out different keys depending on which pod answered. The schema
pins replicaCount to 1 for that reason. Moving to a shared backend lifts it — but note
that more replicas almost certainly exceeds the 2-vCPU licence grant.
With persistence.enabled: false the store is an emptyDir and every key is lost when
the pod is replaced. Fine for a smoke test, never for real use.
TLS
Off by default, because in-cluster traffic is normally fronted by an Ingress or a mesh. But everything this service returns is key material, so decide deliberately:
tls:
enabled: true # Helm generates a CA + certificate (Secret <fullname>-tls, key ca.crt)
# existingSecret: kms-tls # or bring a kubernetes.io/tls Secret
# certManager: { enabled: true, issuerRef: { name: my-issuer, kind: ClusterIssuer } }
With TLS on, port 9998 serves HTTPS only and the probes switch to HTTPS.
Values
| Key | Default | Notes |
|---|---|---|
image.digest | (CI-written) | Required. Charts pin by digest, never a tag. |
replicaCount | 1 | Capped at 1 by the schema — see the storage note. |
server.port | 9998 | Above 1024, so nonroot binds it with no capability. |
server.defaultUsername | admin | Used when no auth method is configured. |
server.publicUrl | "" | Required for Google CSE / Microsoft DKE. |
database.type | sqlite | sqlite | postgresql | mysql | redis-findex. |
database.existingSecret | "" | Required for non-sqlite; holds the connection URL. |
persistence.enabled | true | 8Gi PVC at /var/lib/cosmian. |
tls.enabled | false | Terminate TLS in the server itself (HTTPS only on server.port, cert at /tls). |
tls.existingSecret | "" | a kubernetes.io/tls Secret to use (1st choice) |
tls.certManager.enabled | false | request a cert-manager Certificate from tls.certManager.issuerRef (2nd choice) |
tls.selfSigned.validityDays | 365 | otherwise Helm generates a CA + certificate, kept across upgrades |
extraConfig | {} | Any other Cosmian env var, applied last so it wins. |
networkPolicy.allowExternal | false | Closed by default — it is a KMS. |
ingress.enabled | false |
Plus the shared quench-common knobs: scheduling, probes, sidecars, init containers, extra
env/volumes, security contexts.
Architecture notes
The working directory matters. The server creates its SQLite database relative to its
CWD, so the image sets work-dir to /var/lib/cosmian and the chart mounts the volume
there. If that path is not writable the process prints its entire configuration and then
exits silently — no error line at all, which is a genuinely hostile failure to debug.
Keep the mount and the work-dir in agreement.
OpenSSL is Wolfi's, not vendored. Upstream's build.rs downloads and compiles its own
OpenSSL 3.6.2; the recipe redirects it at Wolfi's current OpenSSL via OPENSSL_DIR and
fails the build if a vendored copy appears anyway. That is what keeps the image CVE-gated and
the SBOM honest. The running server reports its OpenSSL version on /version, so you can
check: it should say the Wolfi version and non-FIPS.
The non-fips build also means the legacy provider is a real runtime dependency — the
server loads it at startup and exits without it.
Notes
KMIP 2.1 endpoint at /kmip/2_1; /version is the cheapest liveness signal. Cosmian's
ckms CLI and PKCS#11 provider are separate binaries and are not in this image. Depends on
the quench-common library chart from oci://ghcr.io/quenchworks/charts/quench-common.
Deploy cosmian-kms with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cosmian-kms 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 chartcosmian-kms is pinned at v0.0.14 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