Skip to content

How-to guides

Each page solves one problem for someone who already knows what they are trying to do. If you are meeting the crate for the first time, start with the tutorial instead.

Guide Problem it solves
Add a credential to your tool's config Expose a credential an operator can configure four different ways.
Store a secret in the OS keychain Write a secret to the platform keychain and read it back.
Supply credentials in CI Get a pipeline resolving credentials without tripping the literal refusal.
Test code that resolves credentials Write tests that never touch a real keychain.
Show where a credential resolves from Build a status command that shows which source supplies each secret, without printing it.
Enable persistent keychain storage on Linux Make Linux keychain entries survive a reboot.