Remove nsec from ~/.profile after daemon flow is proven #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The nsec (agent private key) sits in plaintext in
~/.profile. This completely bypasses the vault security model — anyone who can read the profile can decryptavault.encdirectly, no Amber approval needed.Current state
NOSTR_NSECexported in~/.profileavault.pyreads it as fallback when daemon is not runningnsec.encexists (nsec encrypted to operator pubkey) but is never usedPlan
Keep nsec in profile until:
Then:
NOSTR_NSECfrom~/.profileavault.py(or gate it behind--insecureflag)nsec.encvia AmberDepends on
Acceptance criteria
NOSTR_NSECremoved from~/.profileavault getwithout daemon running returns error (not silent decrypt)