stdtemporalcodec-genkeyset

command
v0.0.253 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command stdtemporalcodec-genkeyset generates a fresh AES-256-GCM Tink keyset and prints it to stdout as a base64-encoded JSON keyset, suitable for use as the value of the STDTEMPORALCODEC_KEYSET and STDTEMPORALCODECSERVER_KEYSET environment variables consumed by stdtemporalcodecfx.

Backends:

  • Without --kek-uri the output is a cleartext keyset. Sensitive: it contains the raw symmetric key material. Store it in your secrets manager; never check it into source control.
  • With --kek-uri aws-kms://<arn> the keyset is wrapped by the named AWS KMS KEK before being emitted. The wrapped blob is safe to ship via env/secret manager because it can only be unwrapped by callers with kms:Decrypt on the KEK.

Usage:

# cleartext keyset (local dev)
go run github.com/advdv/stdgo/fx/stdtemporalcodecfx/cmd/stdtemporalcodec-genkeyset

# KMS-wrapped keyset (production)
go run github.com/advdv/stdgo/fx/stdtemporalcodecfx/cmd/stdtemporalcodec-genkeyset \
    --kek-uri aws-kms://arn:aws:kms:us-east-1:111122223333:key/abcd-...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL