fix: SecretPaths match Vault seeding paths (gbo/cache not gbo/system/cache)
All checks were successful
BotServer CI/CD / build (push) Successful in 3m49s

- Root cause: Vault seeding writes to secret/gbo/cache but code reads gbo/system/cache
- kv2::read prepends secret/ so it looks for secret/gbo/system/cache (wrong)
- Fix: update SecretPaths to match seeding paths (gbo/cache, gbo/drive, etc.)
- Testing: compiles clean, paths now match vault kv list output
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-02 07:16:32 -03:00
parent f118c74cf1
commit dae0feb6a5

View file

@ -16,17 +16,17 @@ pub struct SecretPaths;
impl SecretPaths { impl SecretPaths {
// System-wide paths (global fallback) // System-wide paths (global fallback)
pub const DIRECTORY: &'static str = "gbo/system/directory"; pub const DIRECTORY: &'static str = "gbo/directory";
pub const TABLES: &'static str = "gbo/system/tables"; pub const TABLES: &'static str = "gbo/tables";
pub const DRIVE: &'static str = "gbo/system/drive"; pub const DRIVE: &'static str = "gbo/drive";
pub const CACHE: &'static str = "gbo/system/cache"; pub const CACHE: &'static str = "gbo/cache";
pub const EMAIL: &'static str = "gbo/system/email"; pub const EMAIL: &'static str = "gbo/email";
pub const LLM: &'static str = "gbo/system/llm"; pub const LLM: &'static str = "gbo/llm";
pub const ENCRYPTION: &'static str = "gbo/system/encryption"; pub const ENCRYPTION: &'static str = "gbo/encryption";
pub const JWT: &'static str = "gbo/system/jwt"; pub const JWT: &'static str = "gbo/jwt";
pub const MEET: &'static str = "gbo/system/meet"; pub const MEET: &'static str = "gbo/meet";
pub const ALM: &'static str = "gbo/system/alm"; pub const ALM: &'static str = "gbo/alm";
pub const VECTORDB: &'static str = "gbo/system/vectordb"; pub const VECTORDB: &'static str = "gbo/vectordb";
pub const OBSERVABILITY: &'static str = "gbo/system/observability"; pub const OBSERVABILITY: &'static str = "gbo/system/observability";
pub const SECURITY: &'static str = "gbo/system/security"; pub const SECURITY: &'static str = "gbo/system/security";
pub const CLOUD: &'static str = "gbo/system/cloud"; pub const CLOUD: &'static str = "gbo/system/cloud";