On macOS an approval cannot be signed with a hardware key. `approval sign --piv`, and so `valley approve --approval-piv` and `valley review --approval-piv`, are refused there: the PIV signer the approval program runs (`approval/piv`) is Linux C, its path is compiled into the binary on Linux only (`nix/packages.nix`, the `pivSigner` ldflag), and the Darwin binary carries none. A software key signs everywhere. Why it matters: a project whose policy requires a hardware approval key (`approval.hardware`) cannot be approved from a Mac at all, so the operator of such a project needs a Linux machine at hand to approve. To look into: - What the signer needs from the platform (PC/SC through pcsc-lite on Linux; macOS ships its own PC/SC framework and CryptoTokenKit), and whether the existing C builds against the macOS framework or needs a second implementation. - Whether a pure-Go PIV client over the platform's smart-card service would serve both systems. It must stay within the standard library, or the dependency needs its own decision. - How PIN entry and touch behave on macOS, and whether the system's own smart-card pairing gets in the way. - How it would be verified: no Darwin machine runs the checks, so today only compilation and evaluation can be proven there. - Whether a Mac's own secure hardware is in scope as an approval key at all, given that approval keys are `ssh-ed25519` notes and such hardware commonly offers other curves.
No comments.