Skip to content
pi-c Artifact [ff91eb5519]
Login

Artifact [ff91eb5519]

Artifact ff91eb55196d91adc4b5f39b3c56aa41a17738de6b509cead47b93b5f426bdd0:


Where the credential store's key comes from

Status: built 2026-11-23 (owner's choice: options A and C, with E's sources that need no terminal).

Tier: core (cred.c: the recorded source, pic_cred_quiet, pic_cred_rekey, the offer) over the platform seam (platform.h: secret_key, secret_keep, secret_drop); the host's sources live in platform.c alone. Clock: os (the security and secret-tool command lines, tmutil). Record: picu_credential_key.source (keychain, file or passphrase; a raw key's kdf is none), the setting cred.offer. Default: a new store's random key in the login Keychain (or keyring), else ~/.pic/master.key; a passphrase only when chosen.

The threat model

A copied pic.sqlite, a backup or an exported journal on its own reveals nothing. Malware or a person acting in the user's unlocked session can read the key, as with the keys other tools keep. So a passphrase stops being the default: it guarded against the second case at the cost of a prompt in every process, and against the first case no better than a key kept apart from the database.

Decisions