Module secrets
Expand description
App-scoped secrets: tilo_secrets under the toolkit’s module path.
Modules§
- conformance
- The contract every
SecretStorekeeps, as checks a backend’s tests (and a host’s own backend’s tests) run. They write, overwrite and delete one key,tilo-conformance, of the store they are given.
Structs§
- Item
Secret - The secret of one document item in an app’s
SecretStore; seeSecretStore::item. - PutOptions
- Options for
SecretStore::put. - Secret
- Secret bytes: wiped from memory on drop and never printed by
Debug. - Secret
Store - One app’s secrets.
- Secrets
Scope - Keeps a thread’s stores in one backend until it is dropped: see
scope_thread.
Enums§
- Availability
- Whether a feature can be used on a target.
- Feature
- One capability of this crate, for
availabilityandUnsupported. - Protection
- How the stored secrets are protected.
- Secret
Error - Why a secret could not be read, stored or deleted.
Constants§
- SECRETS_
DIR_ ENV - Names the directory of a file-backed store that replaces the system store for every process given it.
Traits§
- Secret
Backend - A synchronous secret store for one process: the desktop backends,
SecretStore::memory, or a host’s own. Every call names the app.
Functions§
- availability
- Whether
featurecan be used on this target. - available
- Whether
featurecan be used on this target without a prompt. - items_
outlive_ rebuilds - Whether what this build puts in the system store stays readable by later
builds of the same program. On macOS only a Developer ID signature does
(see the
macosbackend): an ad-hoc or dev build’s Keychain items belong to that exact build, and a later one fails on them rather than ask. Always true elsewhere. - keep_
in_ memory_ for_ process - From now on, every
SecretStore::for_appin this process shares one in-memory store and never reaches the platform’s (which may prompt, and holds the user’s real secrets). For harnesses that mount real apps headless; stores created earlier keep their backend. - memory_
backend - A fresh store that keeps secrets in this process: for
scope_thread, or for a host whose apps’ stores (SecretStore::with_backend) share one process-lifetime map. - scope_
thread - From now until the guard drops, every
SecretStore::for_appthis thread creates keeps its secrets inbackend, never the platform’s store. A host gives a participant it runs on its own thread (an agent) secrets apart from the host user’s this way. A store keeps the backend it was created with, wherever it is used later. - unscoped
- Run
workwith this thread’sscope_threadstore lifted, then restore it.
Type Aliases§
- Unsupported
- A feature this target, or this particular host, cannot provide.