Digital Sovereignty for everyone

Feed URLs and security

Personal feed URLs

A personal feed URL is the normal feed URL plus two parameters: lh_private_feeds-user_id, the member’s user ID, and lh_private_feeds-key, an HMAC-SHA256 signature of the user ID and the member’s private feed key (user meta _lh_private_feeds-key). The signing secret is derived from the site’s AUTH_KEY/AUTH_SALT, so it is unique to the install and not in the source.

  • A logged-in member who opens any feed is redirected to their own signed URL, ready to copy into a feed reader.
  • A logged-out request with a valid signature is served as that member, with no-cache headers. A missing, wrong or tampered signature gets the public feed.
  • To revoke a member’s feed URLs, delete their _lh_private_feeds-key user meta; a new key is made the next time they open a feed. Changing the site’s salts revokes everyone’s.

Before 1.2.0 the parameters were encrypted with a key that was fixed in the source; those URLs no longer work, and members need to copy their feed link again.

Hooks

  • lh_private_feeds_signing_secret: the secret signatures are made with.
  • lh_private_feeds_is_the_url_a_feed: whether the current request is a feed.
  • lh_private_feeds_is_local_feed_url: whether a navigation link points at one of the site’s feeds.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.