Feed passwords¶
A feed can have a password of its own, so that strangers who guess or learn its name can neither read nor post. It is set when the feed is created, or later by anyone who knows the name of the open feed (below). The read link and the RSS feed stay open, so readers need no password. On an instance with its own password you need both.
In the web UI¶
On a feed that doesn't exist yet, the feed's details (under its card, on the right on a wide screen) have a Protect this feed section with an optional Password field: fill it in and the first note creates a protected feed, or press Create feed without a note to create it protected right away (on notefeed.me signed in to an account whose license has room). The password is 1 to 256 printable ASCII characters, with no space at the start or end, so that it works from a script too.
A protected feed shows an Unlock form before anything else. The browser then stays unlocked until the password changes or you press Lock this browser. Once unlocked, the settings page has a Privacy & access group to change or remove the password (both need the current one) and to lock the browser again. Changing the password signs every other browser out.
On notefeed.me
A feed password needs a feed under a license, which belongs to an account: sign in to one whose license covers one more feed, and the new feed goes under it; without it the post is 402 (license_required). See Free tier and licenses.
In the API¶
Send the password as X-Feed-Password with the feed's first note, and on every request after that:
curl -H "X-Feed-Password: ${FEED_PASSWORD:?}" -H "Content-Type: text/markdown" \
--data-binary @note.md https://notes.example.com/homelab-7f3k2q9x4m8wz
An empty password creates an open feed
curl leaves out a header whose value is empty, so with $FEED_PASSWORD unset the first post creates an open feed, which anyone who knows its name can then claim with a password (below). ${FEED_PASSWORD:?} makes the shell stop instead.
A wrong or missing password is 401, and wrong ones count toward the rate limit. The notefeed command reads the password from NOTEFEED_FEED_PASSWORD; the client libraries take it as an option.
To change the password, PUT /api/v1/feeds/<feed>/password with the current one in the header and the new one in a JSON body; to remove it, DELETE the same URL. The feed stays, open to anyone who knows its name.
curl -X PUT -H "X-Feed-Password: ${FEED_PASSWORD:?}" -H "Content-Type: application/json" \
-d '{"password": "a-new-password"}' https://notes.example.com/api/v1/feeds/homelab-7f3k2q9x4m8wz/password
A password for an open feed¶
An open feed's name is its only protection: whoever knows it can read, post, edit and delete everything in the feed, and can also set a password on it. That claims the feed, and the first password set wins. If you share a feed's name, set its password before you do.
In the web UI it is the Feed password row in the settings' Privacy & access group. In the API, it is the same request as a change, without a current password:
curl -X PUT -H "Content-Type: application/json" -d "{\"password\": \"${FEED_PASSWORD:?}\"}" \
https://notes.example.com/api/v1/feeds/homelab-7f3k2q9x4m8wz/password
From then on everyone who posts to the feed needs the password, scripts and co-authors included, and so does its page by name. The read link and RSS stay open. On notefeed.me a feed needs a license for a password: an unlicensed feed answers 402.
A feed with an owner¶
With an account, a feed can belong to it: its owner. A feed created while signed in, or made by a post from the signed-in account, is the account's own. An existing feed is claimed on its settings page (Make this feed yours): a protected one with its password, an open one by giving it a password. A feed with an owner can't be claimed by anyone else.
An owned feed has as many passwords as its owner gives it, each with a name ("blog script", "Anna") and revoked on its own. On the settings page the owner sees them under Feed passwords. Add a password generates one and shows it only once; Revoke stops it, and every browser unlocked with it, at once. The password a protected feed had when it was claimed stays as its first, named "Feed password", so scripts keep working. Each password does what a feed password does: post, edit and delete notes, change the settings. Only the owner renames or deletes the feed, and the owner's own account opens it without a password.
In the API, with the account signed in on this instance's own pages or its account token, and over MCP:
| Request | What it does |
|---|---|
POST /api/v1/feeds/<feed>/claim {"password": "…"} |
claims the feed |
GET /api/v1/feeds/<feed>/passwords |
its passwords' names and ids, never the passwords |
POST /api/v1/feeds/<feed>/passwords {"name": "…"} |
a new password, in the answer only this once (201) |
DELETE /api/v1/feeds/<feed>/passwords/<id> |
revokes it |
GET /api/v1/account/feeds |
the account's feeds |
Anyone else gets 403, code owner_only; claiming an owned feed is 409, code owned. Changing or removing a feed's single password is for feeds without an owner.
A lost password¶
The password is stored only as a salted hash, so nobody can look it up. On a feed with an owner, the owner's account opens the feed without one and gives it a new password. Otherwise the operator removes it and the feed is open at once, with its notes intact. With the file storage the hash is DATA_DIR/<feed>/.password: delete that file, and back it up with the notes. With SQLite or PostgreSQL there is no file: the operator clears the feed's password hash in the database (its password_hash, on the row the feed's name finds; with encryption at rest, ADR 0033, that name is stored as a keyed hash). Then a new password can be set as for any open feed.