Skip to content
Vicky Shukla
← all projects
Work2026· Designer and developer

kms-hsm-distributor

A Go sidecar that delivers HSM token files to devices as AES-256-GCM-encrypted archives over per-device RabbitMQ queues.

  • Go
  • AES-256-GCM
  • RabbitMQ
  • Kong
  • Docker

01//problem

HSM token files have to reach many devices, including cloud-deployed ones, without being exposed in transit and without exposing the message broker to the internet.

02//solution

The sidecar packages SoftHSM2 token files as tar.gz archives, encrypts them with AES-256-GCM and publishes them to per-device durable RabbitMQ queues. A cloud consumer reads them through RabbitMQ's HTTP Management API behind the Kong gateway.

03//result

Encrypted per-device delivery with cross-compiled Linux and Windows consumers, and a message broker that is never exposed to cloud devices.

Architecture

Technical details

  • AES-256-GCM authenticated encryption of each token archive
  • Durable per-device RabbitMQ queues
  • Cloud consumer via the RabbitMQ HTTP Management API through Kong (single HTTPS entry point)
  • Cross-compiled Linux and Windows consumer binaries