chore: auto-commit uncommitted changes

This commit is contained in:
James 2026-03-21 06:02:35 -04:00
parent 041227dfd7
commit af1ac0da44
7 changed files with 4 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

View File

@ -142,6 +142,7 @@ func L1Middleware(dataDir string) func(http.Handler) http.Handler {
// Find vault DB by first 4 bytes of L1 // Find vault DB by first 4 bytes of L1
vaultPrefix := base64UrlEncode(l1Raw[:4]) vaultPrefix := base64UrlEncode(l1Raw[:4])
dbPath := filepath.Join(dataDir, "vault1984-"+vaultPrefix) dbPath := filepath.Join(dataDir, "vault1984-"+vaultPrefix)
log.Printf("L1 auth: l1_hex=%x prefix=%s path=%s", l1Raw, vaultPrefix, dbPath)
var db *lib.DB var db *lib.DB
if _, err := os.Stat(dbPath); err == nil { if _, err := os.Stat(dbPath); err == nil {

View File

@ -30,7 +30,8 @@ type VaultField struct {
Value string `json:"value"` Value string `json:"value"`
Kind string `json:"kind"` // text|password|totp|url|file Kind string `json:"kind"` // text|password|totp|url|file
Section string `json:"section,omitempty"` Section string `json:"section,omitempty"`
L2 bool `json:"l2,omitempty"` // true = client-side decrypt only L2 bool `json:"l2,omitempty"` // legacy: true = L3 in new model
Tier int `json:"tier,omitempty"` // 1=L1, 2=L2 (agent), 3=L3 (hardware)
} }
// VaultFile represents an attached file. // VaultFile represents an attached file.