Skip to content
pi-c Artifact [b6b50e6d2c]
Login

Artifact [b6b50e6d2c]

Artifact b6b50e6d2cde0f9a415df98beab8ad3136077febf0cf06fccbe7872a1e49b57e:


The credential project (planned; starts after pic stage 2)

A separate small C project that stores and manages credentials for pic and any other tool, under the same constraints as pic: C core and tests, Make/POSIX shell, vendored libfossil/SQLite, zlib and BearSSL only, crash tests at every commit boundary, sanitizers, fuzzing, Fil-C nightly, fastest native build in production.

Decisions (2026-11-18)

Shape

Stages

  1. Sealed store. cred put|get|ls|rm|log|exec, no daemon. Crash suite at each commit boundary; sentinel test that plaintext never reaches the database, WAL or output.
  2. Broker. Daemon, socket, peer credentials, grants, SSH stdio access. Fuzz the wire parser; kill the daemon mid-request.
  3. OAuth lifecycle. Device code (RFC 8628) and PKCE loopback, refresh, revoke; first provider zeitforge or GitHub. A fake token server in C; crashes before and after the token response.
  4. Many machines. Encrypted offline read cache, machine enrolment and revocation, master-key rotation.

pic's side

pic_cred_get(name, buf, cap, err, errcap) in src/cred.c is pic's only credential code. Today it reads the environment; later it runs a helper command (cred get NAME) and reads its stdout, the way git uses credential helpers. Nothing is linked between the projects.