EncryptionKeySource
org.llm4s.agent.encryption.EncryptionKeySource
@Experimental
trait EncryptionKeySource
Where EncryptingCheckpointer and EncryptingRunQueue get their keys (#2449): the application's, never the store's. Implement it over a KMS or a secret manager; StaticKeySource holds keys the application loaded itself.
Both methods are called on the store's hot paths - current once per commit or submission that writes a payload, key once per key id per read - so an implementation over a remote service caches what it fetched. Rotation is current answering a key with a new KeyId while key still answers the old ones: every ciphertext names the key that wrote it, new writes use the new key, and old rows stay readable until they are pruned.
Implementations must be safe to call from several threads, and must never put key material in an error.
Attributes
- Source
- EncryptionKeySource.scala
- Graph
-
- Supertypes
- Known subtypes
-
class StaticKeySource
Members list
In this article
