Expand description
Storage for per-scope encrypted provider credentials.
Mirrors the api_keys storage pattern: an #[async_trait] CredentialStore
trait, an always-available InMemoryCredentialStore, and a SurrealDB-backed
SurrealCredentialStore that compiles in the default (surreal) build.
Stored API keys are AES-256-GCM ciphertext (api_key_encrypted). Plaintext is
never persisted and never returned by the store.
Structs§
- Credential
Metadata - Safe, plaintext-free view of a credential for API responses.
- Credential
Record - A stored credential row.
api_key_encryptedis AES-256-GCM ciphertext. - InMemory
Credential Store - In-memory credential store (used as the wired default and in tests),
matching the
InMemoryApiKeyStorageprecedent. - Surreal
Credential Store - SurrealDB-backed credential store. Compiles in the default (surreal) build.
Enums§
- Credential
Scope - The scope a credential is bound to. Resolution tries scopes in priority
order:
Session → Agent → User → System(seesuper::resolver).
Traits§
- Credential
Store - Backend-agnostic credential storage.
Type Aliases§
- Shared
Credential Store - Convenience alias for a shared store handle.