cloud-sdk-sanitization
Optional provider-neutral secret-handling boundary for the main
cloud-sdk workspace and
cloud-sdk crate.
This crate provides reusable caller-owned buffer sanitization outside the
default no_std SDK and provider crates. It delegates volatile clearing to the
independently reviewed sanitization
crate with default features disabled.
Install
[]
= "0.25.0"
= "0.13.11"
Example
use SecretBuffer;
let mut output = ;
assert_eq!;
Features
| Feature | Default | Effect |
|---|---|---|
default |
yes | Empty; keeps the boundary no_std. |
std |
no | Enables standard-library integration in cloud-sdk; clearing behavior is unchanged. |
Docs.rs builds with all features. The underlying sanitization dependency
keeps its default features disabled in every configuration.
Security Notes
SecretBuffer volatile-clears its entire borrowed slice on drop, including
after early returns and unwind where unwind exists. sanitize_bytes provides
the same reviewed primitive for explicit cleanup.
These helpers do not clear immutable source strings or copies made by transports, operating systems, crash handlers, swap, remote services, or other processes. They also do not replace review of token ownership, logging, environment variables, paging, compiler behavior, or process boundaries.