What an end-to-end encrypted secret store can and cannot see
"End-to-end encrypted" and "zero-knowledge" are on most secrets managers' websites. Both are meant to answer one question: if the company storing my secrets is breached, or turns hostile, what do they get? This article answers it precisely, using the age encryption format as a concrete example, and ends with the questions to ask any vendor, including us.
What does "end-to-end encrypted" mean for a secret store?
Values are encrypted on your device, with keys that exist only on devices you control, and decrypted only on a device you control. The service stores and moves ciphertext. It never holds a key that opens it.
That rules out a lot of what is sold as "encrypted":
| design | who can decrypt | is it end-to-end? |
|---|---|---|
| encryption at rest, keys in the provider's KMS | the provider's servers, whenever a request is authorized | no |
| server-side encryption with a per-customer key | the provider's servers | no |
| values encrypted on your device, keys only on your devices | only your devices | yes |
Server-side designs are not bad. They protect a stolen disk or backup, and they let a service do things an end-to-end store cannot, like injecting a secret into a build or rotating a database password for you. But whoever runs the servers can read the values, so a compromise of those running systems can too. For a hosted service that is the provider; for self-hosted software it is you. HashiCorp Vault's security model, for example (Vault is often self-hosted), treats its storage backend as untrusted, and places memory analysis of a running Vault and code execution on its host out of scope. Infisical's security documentation says that before responding to a client request, the server decrypts the requested data. Read each vendor's own description of who holds the keys; that one detail decides which row they belong in.
What does an encrypted value reveal on its own?
Not nothing. Here is what a stored age file reveals to anyone who holds it, without any key.
age-inspect, part of the age encryption tool since version 1.3.0, prints it:
$ age-inspect test.age
test.age is an age file, version "age-encryption.org/v1".
This file is encrypted to the following recipient types:
- "X25519"
This file does NOT use post-quantum encryption.
Size breakdown (assuming it decrypts successfully):
Header 168 bytes
Encryption overhead 32 bytes
Payload 22 bytes
-------------------
Total 222 bytes
Tip: for machine-readable output, use --json.
So the ciphertext itself shows:
- the number of readers and their key type. Each classic X25519 reader adds one 98-byte stanza to the header. It does not show which keys: an X25519 stanza holds only a fresh ephemeral key and the wrapped file key.
- the exact length of the value. The format does not pad. We encrypted three values to one key: a 40-character GitHub token made a 240-byte file, a 40-character AWS secret access key also made a 240-byte file, and an 8-character password made a 208-byte file. Length will not tell you which 40-character credential it is, but it can tell a token from a password.
If length matters to you, pad values to a fixed size before encrypting (for example, every value padded to 256 bytes, stripped after decrypting). Then every envelope with the same number and kinds of readers is the same size.
What metadata does the service see anyway?
To be useful, a store needs to know things it cannot get from ciphertext. Typically:
- names of vaults and secrets, and tags;
- who the members are, and their roles;
- each device's public key;
- when each version was written, and rotation or expiry dates;
- who read which secret, when, from which IP address and client.
That last item is also a feature: it is the audit trail you want when something goes wrong. But it means "end-to-end
encrypted" is not the same as "the provider knows nothing." Anyone who breaches the provider learns that your
prod/stripe-live secret was read by billing-agent at 03:14 every night.
This is why "zero-knowledge" is a stretch. In cryptography a zero-knowledge proof reveals nothing beyond the truth of a statement. A store that sees your names, members and access times knows quite a lot. Researchers at ETH Zurich and USI titled their 2026 analysis of password managers "Zero Knowledge (About) Encryption", and the title makes the same point.
What you can do: never put a secret in a name, and if a name itself says too much, use an opaque one
(v7, k-31) and keep its meaning inside the encrypted value.
What does a breach of an end-to-end encrypted store expose?
The database: ciphertext, plus all the metadata above. An attacker with a copy of the database still needs a private key from one of your devices to read a value. That is the core promise, and for a correctly built store it holds.
What it does not cover is an attacker who controls the running service, which is the more interesting case.
What can a malicious or compromised server still do?
The same researchers asked whether "zero-knowledge" claims hold against a fully malicious server. They report "12 distinct attacks against Bitwarden, 7 against LastPass, 6 against Dashlane and 6 against 1Password", and "the majority of the attacks allow recovery of passwords" (Scarlata, Torrisi, Backendal and Paterson, USENIX Security 2026). The classes of attack generalize to any end-to-end store:
- Handing you the wrong public key. When you share a secret, your device asks the server for the reader's public key. A hostile server can return its own key instead, and your device will encrypt to it. 1Password's own security design acknowledges that a malicious server could supply dishonest public keys (1Password's response to the study). The defense is comparing key fingerprints with the reader outside the service. See Check a fingerprint.
- Serving old data. A server can withhold the newest version of a secret or replay an old one. Part of the defense is versions chained by hash, so a client that has seen version 5 rejects a history that ends at version 4. It only works if clients keep the last chain head they saw; a client that never saw version 5 cannot miss it unless clients compare heads with each other. The same idea protects audit logs; see Verify that an audit log was not edited.
- Serving you different code. A web app is code the server sends to your browser each time you open it. A compromised server can send a version that copies your values as you decrypt them. This is the hardest problem for any browser-based end-to-end service. Partial defenses are a native or command-line client you install once, an open format so you can decrypt with an independent tool, and published, reproducible builds.
- Writing or swapping values. The age format does not say who wrote a file: anyone with a reader's public key can make a valid envelope, and the server holds every public key. A hostile server could store a value it chose as a "new version", or serve one secret's envelope under another secret's name. A defense is a version record signed with a signing key of the writer's (age keys cannot sign), checked against a verified fingerprint, and covering the secret's name, the version number and a hash of the envelope.
- Downgrading old formats. Supporting older vaults or older clients can mean accepting weaker encryption. Ask how a vendor stops a server from telling a client to fall back.
- Reading the metadata. Everything in the metadata list above, without breaking any encryption.
None of these is a reason to avoid end-to-end encryption. Each is a reason to ask how a store defends against it.
What does end-to-end encryption never protect against?
- Your own device. Malware on a device that can decrypt a value can read it too.
- Anyone you shared with. A reader can keep a copy. Revoking access stops new versions reaching them; only changing the value at its source stops the old copy working.
- Losing every key. No one can reset an end-to-end key for you. See Lost a device or your keys? How recovery works.
- Downtime. Encryption says nothing about availability. Cache the encrypted envelope if you need to run through an outage.
What should I ask a vendor before trusting them?
- Where are values encrypted and decrypted, and which keys does your server ever hold?
- What metadata do you store in the clear: names, members, IP addresses, access times, sizes?
- How does a client know a reader's public key really belongs to them? Can I compare fingerprints?
- How does a client detect a rolled-back or withheld version, or a value the server wrote itself?
- Which clients can decrypt without code freshly served by your website?
- Is the encryption format documented, so I can decrypt my data with an independent tool if you disappear?
- Has the design been reviewed, by whom, and is the report public?
How does SecureSecretStore answer them?
SecureSecretStore is not open yet. Its design answers them this way:
| question | the design's answer |
|---|---|
| where values are encrypted | on your device, as age files, one stanza per reader |
| keys the server holds | public keys only; never a private key |
| metadata in the clear | account emails, vault and secret names, tags, members, roles, version times, rotation and expiry dates, the audit trail (who, which key, when, IP, client), and each envelope's size and number of readers |
| never visible | values, private notes and private keys |
| a reader's key | apps show each key's fingerprint, remember it on first use, and warn when it changes |
| rollback | version records chained by hash, so a client that has seen a later version detects it |
| who wrote a version | not defended: the service records the writer in the audit trail, so a hostile server could add or swap a version; versions are not signed by their writer |
| code | the web app is served by the site, so problem 3 applies to it; any tool that reads the age format can decrypt independently |
| independent decryption | any tool that reads the age format, with your recovery kit's secret key or a device key you keep as a file |
| review | an internal review signs the design and its threat model before launch; the site never says "audited"; a paid external audit is commissioned once revenue covers it, and its report published |
The full design, its threat model and its limits are on the security page and in How the encryption works.
For agents and tools: llms.txt. AI version of this article.