You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I really like the app but I'd like to host a self-hosted version for remote vault. I want to secure it with Cloudflare so no one can even try to connect to it. There are two options to do that.
mTLS certificate
More time to implement
Service credentials
Only the Auth token page should be modified when adding a remote vault. I'd need two custom headers for it to work.
Thanks for the request! This is built and comes in ZenNotes 2.89.0.
The desktop app can now send extra headers with every request to a remote vault, live updates included, so a server behind Cloudflare Access (or any gateway that checks headers) works.
Setting it up with a Cloudflare service token
In Cloudflare Zero Trust, create a token under Access controls → Service credentials → Service Tokens, and give your server's Access application a policy with the action Service Auth that includes it.
In ZenNotes, run Connect to Remote Vault, enter the server URL, and on the Auth Token step choose Add extra headers. Write one header per line:
Keep your ZenNotes auth token in its own field above. Cmd/Ctrl+Enter connects.
For a remote you already saved, the same box is under Settings → Vault → Saved Remote Workspaces → Edit.
The headers are stored in the system keychain with the token, never in config.toml, and Settings only shows their names. If the gateway still refuses, ZenNotes now says so instead of showing a confusing error.
zn and the MCP server read the same lines from ZENNOTES_REMOTE_HEADERS. In an MCP client's JSON config, write the line break as \n:
I've tested it and it works really great. I only tested the simple windows client, I didn't use MCP. I've discovered a bug tho, but I'll open a separate issue for it. Thanks a lot for the quick implementation. I didn't need the docs to set it up but I've checked it anyhow and it's also cool. I'm really looking forward to test it further as using it on a daily basis and use it on iOS as well in the future.
Activity
adibhanna commentedon Nov 20, 2026
Ill look into it tomorrow!
medzsikmisi commentedon Nov 20, 2026
You're the best🫶
adibhanna commentedon Nov 20, 2026
Thanks for the request! This is built and comes in ZenNotes 2.89.0.
The desktop app can now send extra headers with every request to a remote vault, live updates included, so a server behind Cloudflare Access (or any gateway that checks headers) works.
Setting it up with a Cloudflare service token
The headers are stored in the system keychain with the token, never in config.toml, and Settings only shows their names. If the gateway still refuses, ZenNotes now says so instead of showing a confusing error.
znand the MCP server read the same lines fromZENNOTES_REMOTE_HEADERS. In an MCP client's JSON config, write the line break as\n:The phone apps don't send extra headers yet. mTLS isn't included in this change. Let me know how it goes once 2.89.0 is out.
Feat(remote): a server behind Cloudflare Access is reachable with its…
Docs(remote): the standalone zn sends a gateway's headers too (ZenNot…
Fix(help): the extra headers line is a desktop line (ZenNotes#1091)
Docs(whats-new): 2.89.0 reaches a server behind Cloudflare Access
Chore(cli): the desktop bundles zn 0.18.0
medzsikmisi commentedon Nov 22, 2026
I've tested it and it works really great. I only tested the simple windows client, I didn't use MCP. I've discovered a bug tho, but I'll open a separate issue for it. Thanks a lot for the quick implementation. I didn't need the docs to set it up but I've checked it anyhow and it's also cool. I'm really looking forward to test it further as using it on a daily basis and use it on iOS as well in the future.