chore: auto-commit uncommitted changes
This commit is contained in:
parent
041227dfd7
commit
af1ac0da44
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 |
|
|
@ -142,6 +142,7 @@ func L1Middleware(dataDir string) func(http.Handler) http.Handler {
|
|||
// Find vault DB by first 4 bytes of L1
|
||||
vaultPrefix := base64UrlEncode(l1Raw[:4])
|
||||
dbPath := filepath.Join(dataDir, "vault1984-"+vaultPrefix)
|
||||
log.Printf("L1 auth: l1_hex=%x prefix=%s path=%s", l1Raw, vaultPrefix, dbPath)
|
||||
|
||||
var db *lib.DB
|
||||
if _, err := os.Stat(dbPath); err == nil {
|
||||
|
|
|
|||
|
|
@ -28,9 +28,10 @@ func (h *HexID) UnmarshalJSON(data []byte) error {
|
|||
type VaultField struct {
|
||||
Label string `json:"label"`
|
||||
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"`
|
||||
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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue