Skip to main content

Module source_link

Module source_link 

Source
Expand description

An entry’s machine copy: where a copy of its value lives outside the Vault (a secret store a service reads, a CI secret), and a check that says whether that copy still equals the entry’s value. A first step toward an entry’s “backing” (docs/specs/SPEC_VAULT_SHARED_ACROSS_MACHINES_LAN_AND_CLOUD_2026_11_01.md §11.1).

The link is plain fields (source_*), allowed on every kind and never a value. The check reads the other place with the access the asker already has, compares inside srv, and answers same, different or could not read with why: neither value, nor a length or a hash of one, is in an answer, an error or a history line. A refusal to read is the answer, not something to get around. A CI secret’s value can’t be read back by anyone, so its check reads the secret’s listing entry and says whether it is there and when it last changed (github_secret).

Structs§

AgentLink
The link as list gives it to an agent: the place, and the newest check. Which login reads it is left out.
CheckPlan
A check that has been allowed to run: which entry, which place, for whom.
Checked
A check’s answer: ids, names, the outcome and when. No value.
Link
Where an entry’s machine copy is. Empty parts are not set.
Slot
An agent’s place among an entry’s checks of the hour: held by the plan (and its clones) from the moment the check is allowed until the plan is dropped, which is after the check’s line is written.
VaultSourceCheck
The newest check of the entry’s link as it is now: when, and what it found.

Enums§

Outcome
What a check found.

Constants§

AGENT_CHECKS_PER_HOUR
How many checks agents get of one entry in an hour, all agents together: a check answers one bit about the sealed value, so it is not something to ask in a loop.
AWS_SECRET
A secret in AWS Secrets Manager: the one kind whose value a check can read.
CHANGED
CHECKED
The Activity action of a check.
COULD_NOT_READ
DIFFERENT
FIELDS
GITHUB_SECRET
A repository’s or an environment’s Actions secret. Nothing can read its value back; a check reads its listing entry (github_secret).
KEY
The key there: a JSON secret’s dotted key, a CI secret’s name.
KIND
The kind of place the copy is in.
LOCATION
Where in it: an AWS secret’s name or ARN, a repository (owner/repo, or owner/repo@environment), or free text.
MISSING
NOT_STARTED
No read was started for this asker: the answer carries the newest stored result instead.
OTHER
Anywhere else, as the person describes it.
PRESENT
What a check of a linked entry’s place finds, from the place’s description alone (linked).
PROFILE
REGION
An AWS secret’s region and the profile (or a container agent’s grant) it is read under.
SAME
TITLES
The fields as a KeePass export names them, so a database written from the Vault brings the link back.

Functions§

carry_over
An import that replaces an entry and names no machine copy leaves the entry’s own link as it is.
check
Reads the machine copy, compares it with the entry’s value and records the outcome. Never fails: a place that can’t be read is an outcome. The store is read and written on the blocking pool.
check_blocking
check from a thread of the blocking pool, where the pane’s operations run: the read is waited for here.
conclude
Records what a check found (or why it did not run) in the entry’s history, naming the place, and answers it.
fields_for_agent
An entry’s plain fields as an agent is given them: all of them but the login its machine copy is read under, and a login’s user name only masked (its first two characters and ***, as Browser signin names it): an agent can set a user name, and sign in with it, and can’t read one back.
for_agent
is_field
Whether name is one of the link’s fields, which every kind of entry may have.
last_check
The newest check of row’s link, when it is of the entry as it is now. A check of a place the link no longer names says nothing about this one, and neither does a check made before the entry last changed: the change may be the link’s region or profile, which the history line does not name (an agent reads the history, and is never told the profile), or the entry’s own value, which an older “same” was not compared with.
plan_for_agent
An agent’s check of an entry in a Vault it may use: its reason is required, and agents together get AGENT_CHECKS_PER_HOUR checks of one entry in an hour, counting the ones still running. The count and the new check’s place are taken under one lock, so checks asked for at the same moment are counted one after the other.
plan_for_person
The person’s check, from the Vault pane.
settle_kind
An update that names a new kind of place takes the parts the new kind has no use for with it, unless the update names them itself: an AWS secret’s region and profile when the place becomes any other kind, and every part when the kind is emptied, which takes the link off. Without it an agent that moved a link off AWS was refused over a region the old place had left behind, and had to know to clear it (found in the Linux look check, 2026-11-14).
validate
Whether the link in fields is one the Vault keeps: a known kind, a place written the way that kind is, and no part the kind has no use for. No link at all is fine.