Skip to content
pi-c Check-in [bcb82b941e]
Login

Check-in [bcb82b941e]

Overview
Comment:Keep the credential store's key in the Keychain or a key file, not behind a passphrase

A new store gets a random 32-byte master key kept in the login Keychain (macOS, /usr/bin/security run as a child with the command on stdin) or the keyring (secret-tool), else ~/.pic/master.key at 0600. The source is recorded in picu_credential_key.source; a passphrase store keeps working as before. pic auth rekey keychain|file|passphrase reseals every sealed row in one transaction, and a typed passphrase is followed once by the offer to stop asking. --passphrase-fd and PIC_PASSPHRASE_COMMAND (setting passphraseCommand) give a passphrase with no terminal. pic remote opens a keychain or file store with no prompt. Every OS service stays in platform.c behind secret_key, secret_keep and secret_drop.

Timelines: family | ancestors | descendants | both | keysource
Files: files | file ages | folders
SHA3-256: bcb82b941ec00a6baa3d964fb9a51c0d5105b6309613c9860c44110c4cefe7e3
User & Date: dmestas on 2026-11-23 11:55:36.792
Other Links: branch diff | manifest | tags
Context
2026-11-23
11:55
Merge trunk into keysource check-in: 4a4964673f user: dmestas tags: keysource
11:55
Keep the credential store's key in the Keychain or a key file, not behind a passphrase

A new store gets a random 32-byte master key kept in the login Keychain (macOS, /usr/bin/security run as a child with the command on stdin) or the keyring (secret-tool), else ~/.pic/master.key at 0600. The source is recorded in picu_credential_key.source; a passphrase store keeps working as before. pic auth rekey keychain|file|passphrase reseals every sealed row in one transaction, and a typed passphrase is followed once by the offer to stop asking. --passphrase-fd and PIC_PASSPHRASE_COMMAND (setting passphraseCommand) give a passphrase with no terminal. pic remote opens a keychain or file store with no prompt. Every OS service stays in platform.c behind secret_key, secret_keep and secret_drop. check-in: bcb82b941e user: dmestas tags: keysource

10:59
land themes-wait

via mac, quarry check-in: 33964257ff user: dmestas tags: trunk

Changes