MCPcopy Create free account
hub / github.com/Cosmian/kms

github.com/Cosmian/kms

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.29.0 ↗ · + Follow · compare 11 versions
15,420 symbols 59,500 edges 1,338 files 2,890 documented · 19% ● updated 46d ago5.28.0 · 2026-10-01★ 36394 open issues

Browse by type

⨍ Functions 12,829◇ Types & classes 2,591
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Eviden KMS

CI Tests Release Docs Container Security License FIPS

Note: Cosmian has become part of Eviden. The Cosmian KMS is now the Eviden KMS.

The Eviden KMS is a high-performance, source-available FIPS 140-3 compliant server application written in Rust.

Online documentation.

KMS WebUI

Built-in Web UI for administration and operations.

The Eviden KMS presents some unique features, such as:

The Eviden KMS is both a Key Management System and a Public Key Infrastructure. As a KMS, it is designed to manage the lifecycle of keys and provide scalable cryptographic services such as on-the-fly key generation, encryption, and decryption operations.

The Eviden KMS supports all the standard NIST cryptographic algorithms as well as advanced post-quantum cryptography algorithms such as Covercrypt, and FF1 format-preserving encryption in non-FIPS mode. Please refer to the list of supported algorithms.

As a PKI it can manage root and intermediate certificates, sign and verify certificates, use their public keys to encrypt and decrypt data. Certificates can be exported under various formats, including PKCS#12 modern and legacy flavor, to be used in various applications, such as in S/MIME encrypted emails.

The Eviden KMS has extensive online documentation.

🚀 Quick start

Pre-built binaries are available for Linux, MacOS, and Windows, as well as Docker images. To run the server binary, OpenSSL must be available in your path (see "building the KMS" below for details); other binaries do not have this requirement.

Using Docker to quick-start an Eviden KMS server on http://localhost:9998 that stores its data inside the container, run the following command:

docker run -p 9998:9998 --name kms ghcr.io/cosmian/kms:latest

Then, use the CLI to issue commands to the KMS. The CLI, called cosmian, can be either:

▶️ Example

  1. Create a 256-bit symmetric key

    ```sh ➜ ckms sym keys create --number-of-bits 256 --algorithm aes --tag my-key-file ... The symmetric key was successfully generated. Unique identifier: 87e9e2a8-4538-4701-aa8c-e3af94e44a9e

    Tags: - my-key-file ```

  2. Encrypt the image.png file with AES GCM using the key

    sh ➜ ckms sym encrypt --tag my-key-file --output-file image.enc image.png ... The encrypted file is available at "image.enc"

  3. Decrypt the image.enc file using the key

    sh ➜ ckms sym decrypt --tag my-key-file --output-file image2.png image.enc ... The decrypted file is available at "image2.png"

See the documentation for more.

⭐ Why Eviden KMS

  • Performance: built in Rust for low-latency crypto and high throughput.
  • Trust by design: FIPS 140-3 mode by default; non-FIPS for broader algorithm access when needed.
  • Interoperable: full KMIP 1.0–2.1 support, PKCS#11 integrations, rich client tooling, and a built-in OpenAPI 3.1 spec with Swagger UI.
  • HSM-first: optional HSM key-wrapping and vendor modules (Utimaco, SmartCard-HSM, Proteccio, Crypt2pay, AWS CloudHSM…).
  • Cloud-native: official Docker image, simple horizontal scaling, and OpenTelemetry observability.
  • End-to-end: server, CLI, and web UI for a complete developer and operator experience.

🎯 Top Use Cases

  • Application‑level encryption at scale (files, objects, datasets) with centralized key lifecycle.
  • Database TDE and integration (Oracle TDE, Percona PostgreSQL, MongoDB, MySQL) via KMIP/PKCS#11.
  • Enterprise integrations: Google Workspace CSE, Microsoft DKE, Microsoft SQL Server External (EKM), AWS XKS v2, and Azure EKM.
  • HSM-backed key protection and policy‑driven access controls.
  • PKI operations: issue, sign, validate, and automate certificate lifecycles, including device enrollment over EST (RFC 7030) and SCEP (RFC 8894) (docs).

🔒 Security & Compliance

[TOC]

🔐 HSM support

HSM Status
Proteccio (Bull Atos) ✅
Crypt2pay ✅
Utimaco SecurityServer ✅
CardContact SmartCard-HSM / Nitrokey HSM 2 ✅
SoftHSM2 (testing) ✅
AWS CloudHSM ✅
Azure Cloud HSM ✅
GCP Cloud HSM ✅

🔗 Integrations

Legend: ✅ implemented · 🚧 not yet implemented

☁️ Cloud Provider — External Key Management

Cloud providers offer mechanisms that let you hold cryptographic keys outside their infrastructure. There are three distinct delegation models:

Term Meaning
XKS AWS External Key Store — every encrypt/decrypt is proxied live to your KMS; the key material never enters AWS.
EKM GCP External Key Manager — same live-proxy model; Google never holds the key material.
DKE Microsoft Double Key Encryption — one key lives in Azure/M365, the second key lives exclusively in your KMS; both are required to decrypt.
HYOK Hold Your Own Key (Oracle) — OCI Vault External KMS; every encrypt/decrypt is proxied live to your KMS; the key material never enters OCI.
BYOK Bring Your Own Key — you generate key material and import it into the provider's KMS; the provider then holds a copy.
CMK Customer-Managed Key — the provider generates and stores the key in their KMS, but you control lifecycle (rotate, disable, delete).

Amazon Web Services (AWS)

AWS XKS is a single proxy API that AWS KMS calls on behalf of every service — S3, EBS, RDS, DynamoDB, Secrets Manager, etc

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 9,206
Method 3,623
Class 2,087
Enum 342
Interface 162

Languages

Rust69%
TypeScript30%
C1%
Python1%
C++1%

Modules by API surface

crate/server/documentation/swagger-ui/swagger-ui-bundle.js4,146 symbols
crate/test_kms_server/src/vector_runner.rs518 symbols
crate/hsm/base_hsm/src/session/session_impl.rs115 symbols
crate/kmip/src/kmip_2_1/kmip_operations.rs93 symbols
crate/kmip/src/kmip_1_4/kmip_operations.rs93 symbols
crate/clients/pkcs11/module/src/tests.rs90 symbols
crate/clients/wasm/src/wasm.rs89 symbols
crate/server_database/src/stores/sql/pgsql.rs78 symbols
crate/interfaces/src/hsm/hsm_store.rs72 symbols
crate/server_database/src/stores/redis/redis_with_findex.rs70 symbols
crate/server/src/tests/enrollment_tests.rs70 symbols
crate/server_database/src/stores/audit/pgsql.rs68 symbols

Dependencies from manifests, versioned

@ant-design/icons6.1.0 · 1×
@eslint/js9.39.2 · 1×
@playwright/test1.51.0 · 1×
@tailwindcss/vite4.2.0 · 1×
@testing-library/react16.3.2 · 1×
@types/node25.3.0 · 1×
@types/react19.2.14 · 1×
@types/react-dom19.2.3 · 1×
@vitejs/plugin-react-swc3.11.0 · 1×
antd5.29.3 · 1×
dayjs1.11.21 · 1×

Datastores touched

(mysql)Database · 1 repos
kmsDatabase · 1 repos
kmsDatabase · 1 repos
kms_auditDatabase · 1 repos
dbDatabase · 1 repos
dbDatabase · 1 repos
audit_dbDatabase · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add kms \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page