# Vault Service Storage Configuration Fragment

[[elements]]
border_bottom = false
border_top = true
name = "vault_storage_header"
title = "💾 Storage Configuration"
type = "section_header"

[[elements]]
default = "filesystem"
help = "Storage backend for secrets (filesystem, surrealdb, etcd, memory)"
name = "vault_storage_backend"
nickel_path = ["vault_service", "storage", "backend"]
options = ["filesystem", "memory", "surrealdb", "etcd", "postgresql"]
prompt = "Storage Backend"
required = true
type = "select"

[[elements]]
condition = "vault_storage_backend == 'filesystem'"
default = "/var/lib/vault/data"
help = "Path for local filesystem storage (absolute path required)"
name = "vault_storage_path"
nickel_path = ["vault_service", "storage", "path"]
prompt = "Storage Path"
required = true
type = "text"

[[elements]]
default = ""
help = "Encryption key for at-rest encryption (base64 encoded, optional)"
name = "vault_storage_encryption_key"
nickel_path = ["vault_service", "storage", "encryption_key"]
prompt = "Encryption Key (optional)"
required = false
type = "text"
