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-...
Click to show internal directories.
Click to hide internal directories.