Secrets in Vault: env: and vault: references wherever a secret file is named, and the store's own secrets sealed under a master key — Vault transit or a local key

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 23:21:44 +02:00
1 parent bce54f0941
commit 35657c1417
20 files changed
+837 -14

No files matched your search

+5
View File
@@ -13,6 +13,8 @@ import (
"time"
_ "modernc.org/sqlite" // the cgo-free driver, so the binary stays static
"gitea.mynodes.xyz/ilker/llmgw/internal/secrets"
)
// DB is the store, on either dialect.
@@ -35,6 +37,9 @@ type DB struct {
// the path nobody exercised before deploying.
db bound
// sealer seals the store's own secrets; nil keeps them plain.
sealer secrets.Sealer
// mu guards the default limits, which are set once at wiring but read on
// every authentication.
mu sync.RWMutex