mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
Per user directive 'no replicate sidecar is needed' + Base framework already ships plugins/replicate. Changes: - cmd/kmsd/main.go: replicate.MustRegister(app) after base.New() - go.mod: hanzoai/base v0.39.3 → v0.40.3, add replace for hanzoai/replicate - LLM.md: documents new KMS replication architecture Result: KMS StatefulSet runs a single container (kms). The Base plugin streams all .db files in /data to S3 automatically when REPLICATE_S3_ENDPOINT is set. auxiliary.db now replicated too (H-4 fix).
10 lines
177 B
Go
10 lines
177 B
Go
package kmsclient
|
|
|
|
import "os"
|
|
|
|
// lookupEnv wraps os.LookupEnv for testability.
|
|
var lookupEnv = os.LookupEnv
|
|
|
|
// setEnv wraps os.Setenv for testability.
|
|
var setEnv = os.Setenv
|