AI Weekly Malaysia

Back to items Summaries

Protecting SSH Keys with macOS Secure Enclave

ID
45479
Status
summarized
Published
11 Nov 2026, 12:28 PM
Fetched
12 Nov 2026, 12:22 AM
Provider
Hacker News
Category
dev-community
Original URL
https://gatezh.com/posts/macos-secure-enclave-ssh-keys/
Source URL
https://hnrss.org/best

Summary

Score
6.5
Created
12 Nov 2026, 12:23 AM
Tags
Audience
developersvibe_coderssaas_founders

What happened

Serge Gatezh walks through keeping SSH private keys inside the macOS Secure Enclave using only built-in tools, so the key never exists in memory or on disk — only a useless reference file remains, and Touch ID can be required for every signing operation. He concludes he will NOT use the native approach because it 'ended up plain ugly,' even though it works, and lays out the alternatives he considered: Secretive, a YubiKey 5C, 1Password, and Bitwarden (which added SSH key support, including on the free tier, but still decrypts keys in memory when used). The post is a first-hand technical write-up with 331 points and 121 comments on Hacker News.

Why it matters

If your keys sit in ~/.ssh protected only by file permissions, any script that can read your filesystem can copy them and reach every server you own — the author points specifically at fake interview assignments that ask you to clone and run a repo locally. The concrete decision this forces: pick hardware-backed storage (Secure Enclave via the native route or Secretive, or a YubiKey) versus a vault-based SSH agent (1Password, Bitwarden), knowing the vault route still puts the decrypted key in memory during use. Note the native path is reported as functional but ergonomically bad, so evaluate it yourself before standardising on it.

Discussion angle

The author abandoned a working hardware-backed setup purely because it was ugly — how much does ergonomics, not security, decide whether your team actually adopts YubiKeys, Secure Enclave keys, or a vault agent? Worth comparing the onboarding cost of each for a small team.

Top