CredStore SDK
SDK crate for the CredStore module, providing public API contracts for credential storage in CyberFabric.
Overview
This crate defines the transport-agnostic interface for the CredStore module:
CredStoreClientV1— Async trait for consumers (get/put/delete secrets)CredStorePluginClientV1— Async trait for backend storage plugin implementationsSecretRef/SecretValue/SharingMode/GetSecretResponse— Domain modelsCredStoreError— Error types for all operationsCredStorePluginSpecV1— GTS schema for plugin registration
Usage
Getting the client
use CredStoreClientV1;
let credstore = hub.?;
Retrieving a secret
if let Some = credstore.get.await?
Access denial is expressed as Ok(None), not as an error — this prevents secret enumeration.
License
Apache-2.0