Skip to main content

Module redis

Module redis 

Source
Expand description

stores:-backed CertStorage (redis/valkey; redis-store feature).

Keys under the storeโ€™s key_prefix: acme:account, acme:cert:{<id>}, acme:challenge:<domain> (with TTL), acme:lease:{<id>} (SET NX PX, owner-checked renew/release via Lua). Account credentials and certificate private keys are sealed with CookieSealer (AES-256-GCM, key = SHA-256 of acme.storage.encryption_key) before they are written; chains are stored in clear. Hash tags keep one certificateโ€™s keys on a single Cluster slot.

Structsยง

CertRecord ๐Ÿ”’
RedisCertStorage
Holds the name of the store, never a client: the client is resolved from the live StoreRegistry on every call, so a PUT /api/stores/:name credential/URL change (which swaps the registry inside PluginResources) is picked up by the next ACME operation instead of being pinned to the connection that existed at startup.

Constantsยง

RELEASE_LEASE_SCRIPT ๐Ÿ”’
RENEW_LEASE_SCRIPT ๐Ÿ”’
SEAL_TTL ๐Ÿ”’
Sealed blobs never expire on their own; storage TTLs govern lifetime.

Functionsยง

account_key ๐Ÿ”’
cert_key ๐Ÿ”’
challenge_key ๐Ÿ”’
lease_key ๐Ÿ”’