As an identity holder, I want to know my keys stay on my phone and that the app can only reach what it has declared, so that I can trust it with my identity.
Situation
My identity is a key. Whoever holds it can write as me. I keep it on my phone.
What I do
Create or import an identity.
Comment, save my profile, open Activity and chat with an agent.
Open a document from a site I have never visited.
Add a model provider key, and ask the app to show my private key.
What I should see
Me says "Keys stay on this device, in the Keychain."
Commenting, saving my profile, reading my notifications and talking to agents all work with no other Seed software running. The phone signs each one itself.
What leaves the phone is a signature, a signed comment or profile change, or my vault in encrypted form. My private key is never sent.
Reading a document sends no identity, and opening one from another site does not change my server or my identity.
My private key is shown only after I confirm an alert titled "Reveal the private key?", and only on that identity's screen.
A model provider key is sent only to my agent server, and only over a secure connection. On a plain connection to a remote server the form says "This server uses remote HTTP. Use HTTPS before sending an API key."
Besides my settings, the app stores two items in the Keychain, my keys and the vault's lock, and one encrypted vault file.
The compose sheet tells me "Comments are signed with an identity kept on this device."
When something goes wrong
The stored keys cannot be read: the app says "Identity storage is unreadable. Restore it from a backup before making changes." It never treats the phone as empty or overwrites anything. I restore from a backup, or import my identities again.
A notification request is redirected to another address: it is refused before it is sent on, and I see a failure with "Retry".
Not included
The app is allowed to contact any web server, secure or plain, because I can type any site, vault or agent server. It is not limited to a fixed list. See Grants and capabilities.
Key files protected with a password cannot be imported, and there is no master password. See Current limits and known gaps.
Agent requests are signed only as the account itself, not through a delegated key.
No screen lists what was sent where.
Trace
Story US-APP-09, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
Opening a URL is navigation, not a change to the account or the configured server | |
Everything that copies, shares or leaves the app, and when | |
The alert before a private key is revealed and before logout | |
Ask before something that reveals a secret | |
Where links inside text go: in the app or outside | |
Security wording is direct | |
The hints and warnings about keys | |
Keys stay on this device, in the Keychain. | |
Reveal, copy and share the key after asking | |
The key safety rule for provider keys | |
Comments are signed with an identity kept on this device. | |
What the vault keeps here and remotely | |
Provider rows never show the key | |
The recovery phrase shown once | |
Nothing is reachable by default in the framework |
Implementation
Page | Part it plays |
|---|---|
The grants the app declares, where each host enforces them and what a refusal looks like | |
The literal grants list and the store and storage the module receives | |
No local daemon; capabilities sit between the data module and the phone | |
Section parent: the five services, what each receives and how each request is authenticated | |
Public reads with no identity | |
Signed blobs published without transport credentials | |
A signed envelope per request, no redirects | |
Encrypted state and a bearer credential | |
A signed envelope per request; the one secret that is sent | |
One Keychain secret, fail-closed reads, export only after asking | |
Keys, signing and codecs on the device | |
Signed envelopes | |
Comments and profile changes signed on the device | |
The Keychain item and the one encrypted file | |
Signed actions and the provider key safety check | |
Provider submission refuses remote plain HTTP | |
Signed requests that refuse redirects | |
A comment is signed here and published as a blob | |
Every runtime dependency; codecs vendored, nothing phones home | |
The sandboxed runtime the data module runs in | |
The test server refuses hosted notify paths | |
Password-protected key files, delegation and the stale grant |
Code
File | What |
|---|---|
grants: every network, secret and file permission, literal | |
answer: the only way into the data module, with store and storage | |
one Keychain secret; never log a mnemonic or a key | |
seed-keys and the unreadable storage error | |
signerFor: signing with a key held on this device | |
the only file written and the vault's Keychain item | |
the signed agents action envelope | |
safeAgentSecretTarget: HTTPS or loopback only | |
the remote HTTP warning | |
export asks first; copy and share only on that identity's screen | |
Opening a URL is navigation, not a change to the account or the configured server | |
Keys stay on this device, in the Keychain. | |
Content ids and blob verification, computed on the device | |
Signs objects with the zero-signature convention | |
The signer types every package signs through | |
The CBOR encode and decode entry points | |
Blob and signer types | |
The crypto package surface | |
Vendored codecs with Node paths and implicit clocks removed | |
Types of the vendored codecs |
Tests
File | What it checks |
|---|---|
"keeps provider secrets off remote plain HTTP" | |
"signed requests refuse redirects before contacting the destination" | |
"saving never silently overwrites an unreadable secret bundle" | |
"malformed stored seeds are refused without echoing key material" | |
"export never returns another account key from a mismatched record" | |
"local ciphertext uses a Keychain KEK, survives reopen, and never contains a private seed" | |
"me: an exported key shows only on its own identity's screen" | |
"me: identity detail exports the key file after asking, and removes" | |
"the read proxy refuses hosted notify paths for every method" | |
"crypto vectors run inside the host runtime" |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime