Expand description
Secret storages on the worker, and the secrets of one attempt (see archive/PROJECT.md, Secret storage).
The agent fetches every secret an attempt names or declares before its process starts
(AttemptSecrets::fetch); a secret under a declared prefix is fetched when the task
reads it. The master never sees a value. Each fetched value is masked in the task’s log
and output (crate::mask).
Structs§
- Attempt
Secrets - The secrets of one attempt: what was fetched before it started, what it declares, and the values masked in its log and output.
- DbStorage
- The
dbstorage (standalone): thesecretstable of schedr’s own database, each value decrypted underSCHEDR_SECRET_KEY(seeschedr_db::secrets). - Memory
Storage - Secrets held in memory:
schedr dags test --secretandrun_dag(secrets=...)(tests and local runs), never a production storage. - Secret
Stores - The worker’s secret storages: each by name, the default one, and a cache of what was fetched (in memory only, never on disk).
- Storage
- One configured storage, with what is said about it.
Enums§
- Connection
Error - Why a connection can’t be opened (decision 174): the attempt’s error kind follows.
- Secret
Error - Why a secret can’t be read: the attempt’s error kind follows from it.
Constants§
- DEFAULT_
CACHE_ TTL - The default
cache_ttlof a storage: how long a fetched secret is kept in memory. - DEFAULT_
MIN_ MASK_ LENGTH - The default
[secret_storage] min_mask_length: shorter values aren’t masked (masking1ortruewould mangle the logs), like Airflow’smin_length_masked_secret.
Traits§
- Secret
Storage - A kind of secret storage (Vault, the
dbstorage, values in memory).
Type Aliases§
- Read
Future - A future a storage’s read returns.
- Secret
Data - A secret as a storage holds it: its keys and their values (a Vault KV v2 secret).