Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sovereign, high-performance data protection

KMIP Compliance with ovh/kmip-go

The Eviden KMS server is validated against ovh/kmip-go, an independent, production-grade Go implementation of the KMIP 1.0–1.4 protocol developed and maintained by OVHcloud. The library is production-tested against the OVHcloud KMS, making it a meaningful independent reference for verifying Eviden KMS protocol conformance.

KMIP Go client connecting to the Eviden KMS socket server

Client / server roles

ComponentRole
Eviden KMSKMIP Server — socket on port 15696, mTLS
ovh/kmip-goKMIP Client — sends requests, validates responses against the spec

The client connects to a live KMS instance with a pinned protocol version (kmipclient.EnforceVersion), so the same binary validates all five wire-format versions in the same run.

Relationship with PyKMIP

PyKMIP and ovh/kmip-go clients connecting to the Eviden KMS

Both suites exercise the server as independent KMIP clients. PyKMIP covers a specific device integration scenario; ovh/kmip-go covers all supported protocol versions systematically.


KMIP operations supported

The table below lists the KMIP operations the server exposes, the protocol versions at which they are exercised, and the key objects or algorithms involved.

KMIP operations exercised by the kmip-go tests, by group

OperationKMIP versionsKey objects / algorithms
Create1.0 · 1.1 · 1.2 · 1.3 · 1.4AES-256 symmetric key
Activate1.0 · 1.1 · 1.2 · 1.3 · 1.4Transitions Pre-Active → Active
Revoke1.0 · 1.1 · 1.2 · 1.3 · 1.4Key compromise reason
Destroy1.0 · 1.1 · 1.2 · 1.3 · 1.4Permanent deletion
Get1.0 · 1.1 · 1.2 · 1.3 · 1.4Returns the managed object
GetAttributes1.0 · 1.1 · 1.2 · 1.3 · 1.4Version-filtered attribute set
GetAttributeList1.0 · 1.1 · 1.2 · 1.3 · 1.4Version-filtered attribute names
AddAttribute1.4Standard and x- custom attributes
ModifyAttribute1.4Enforces read-only rules per spec
DeleteAttribute1.4Response carries the deleted attribute
Locate1.4By UniqueIdentifier, Name, Object Group, Algorithm
CreateKeyPair1.4RSA-2048, EC P-256
DiscoverVersions1.4Enumerates supported versions
Query1.4Reports supported operations
Encrypt1.2 · 1.4AES-256-GCM
Decrypt1.2 · 1.4AES-256-GCM round-trip
Sign1.4RSA-2048-PSS / SHA-256
SignatureVerify1.4RSA-2048-PSS / SHA-256
Batch1.4Multiple operations in one KMIP message

Attribute version-gating

The OASIS KMIP specification introduces attributes progressively. The server returns only the attributes defined for the client's declared protocol version — returning a newer attribute to an older client would violate the spec and break real-world clients that have no decoder for it.

Attribute introduction per KMIP version

Same key read through KMIP 1.2 and 1.4 sessions

AttributeNot returned beforeReturned from
FreshKMIP 1.0KMIP 1.1
Alternative Name, Original Creation DateKMIP 1.0–1.1KMIP 1.2
Random Number GeneratorKMIP 1.0–1.2KMIP 1.3
Sensitive, Always Sensitive, Extractable, Never ExtractableKMIP 1.0–1.3KMIP 1.4

Attribute mutability

The KMIP specification defines, for every attribute, whether a client may modify or delete it. The server enforces these rules.

Attribute modification rules in KMIP 1.4

Server-managed attributes — Always Sensitive, Initial Date, Cryptographic Length, and others — are protected from client writes. Client-managed attributes — Name, Comment, Description, custom x- attributes, and others — support the full add / modify / delete lifecycle.


Key lifecycle

KMIP object life cycle states and the operations allowed


Cryptographic operations

Symmetric — AES-256-GCM

AES-256 key creation and AES-GCM encrypt and decrypt

Asymmetric — RSA-2048-PSS and EC P-256

RSA-2048 key pair creation, signature and verification


Running

# MISE task — builds KMS, starts server, runs tests, cleans up
mise run test:interop:kmip-go

# Manual (KMS already running on port 15696)
cd .mise/scripts/kmip-go
KMIP_GO_REPO_ROOT=$(git rev-parse --show-toplevel) \
  go test -v -count=1 -timeout 120s ./...

The tests share the KMS configuration and test certificates used by the PyKMIP suite (kms.toml and test_data/certificates/client_server/).