1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Secrets (SPEC 11): references, providers and the leak scanner.
//!
//! - [`grammar`]: templates (`${secret:ALIAS}`, ...) and provider
//! references (`op://`, `op-env://`, `keyring://`, `env:`).
//! - [`catalog`]: `secrets.toml` with this machine's overlay applied.
//! - [`providers`]: env, OS keyring and the 1Password CLI; [`status`] is
//! what resolving found.
//! - [`classify`] and [`scanner`]: the SPEC 11.7 classifier and the leak
//! scanner every store commit passes through; [`extract`] replaces
//! sensitive literals by aliases on import and migration.
//! - [`delivery`] and [`render`]: how references reach a server for one
//! client (SPEC 11.4: `env`, `launch`, `command`, `inline`).
//!
//! Values exist only in memory, inside a [`SecretValue`]: it has no
//! `Display`, no `Serialize`, and its `Debug` is redacted, so a value
//! cannot end up in a store file, a log line or an error by accident.
//! Every value a provider hands out is recorded (as a keyed hash) in the
//! process's [`scanner::SecretMemory`], so a later commit that holds it is
//! refused.
use fmt;
/// A resolved secret value. Read it with [`SecretValue::expose`] at the
/// one place that hands it on (a child process environment, the keyring).
;