Skip to main content

Module withhold_sources

Module withhold_sources 

Source
Expand description

The long-lived values srv keeps for the person’s accounts and for itself, registered with withhold where srv reads or writes them, so none of them is written into an agent’s transcript or shown to a paired device.

  • Every secret in the OS keychain (an account’s token, the cloud sign-in, a peer’s key): keychain, from the keychain’s own read and write.
  • The cloud sign-in as srv assembles it (its tokens can be split across keychain entries): cloud_sign_in.
  • An agent’s relay credential, kept in the database: agent_relay_credential.
  • A messaging bridge’s token, read from settings: bridge_token.
  • A key in the agent’s own environment lines, put in its process as written: env_credential.
  • The token that opens a container proxy relay: relay_token.

A value that carries its own expiry is withheld until then, even once a newer one replaces it; one with no known expiry stays withheld after another replaces it, up to withhold::KEPT_PER_OWNER per owner.

Functions§

account_key
An API key account’s key, read from or written to its Vault entry entry.
agent_relay_credential
An agent’s relay credential: its client secret, and the access token cached from it (expires_at in unix seconds).
bridge_token
A messaging bridge’s token (discord, telegram, slack:bot, whatsapp).
cloud_sign_in
The cloud sign-in’s tokens (expires_at in unix seconds, 0 when unknown). The access and id tokens are withheld until they expire, the refresh token until the sign-in ends.
env_credential
One line of an agent’s own environment, as it goes into its process: a literal value under a credential-style name. A Vault reference, an empty value and a placeholder word hold no secret and are left alone; a Vault value is withheld where it is resolved.
keychain
A secret read from or written to the OS keychain under account_id. A JSON object (an OAuth account’s tokens, a sign-in blob) is withheld field by field, for the fields whose names say they are credentials; anything else is withheld as it is.
relay_token
The token that opens a container proxy relay.