Closed general

Author email is publicly readable in page.json on public pages: intended?

FalconFour · ·closed by Colby Knox

Question: is it intended that a page author's account email is readable by anyone, signed in or not, once a page is public?

What I see: every page's page.json carries the author's email (author.email and a top-level email), and that file is served without authentication for public pages:

the file page.json under the page files API path (api / pages / owner / slug / files / page.json), fetched with a plain anonymous GET.

Checked on two public pages by different owners: both return the owner's email address to an anonymous request. The page API itself (/api/pages/<owner>/<slug>) only returns author_name, so the email seems to leak only through the repo file.

Why it matters: the field is added by the wiki on page creation, not by the author, and a push cannot remove it (it is re-added). A new user who publishes a project page therefore publishes their sign-in email without being told. For people who signed up with a personal address this is a privacy surprise and a spam-harvesting target.

Asks:

  1. Is this by design? If so, could page create / visibility public say so before the page goes public?
  2. Could the email be dropped from the public page.json (keep it server-side), or could authors choose a display-only name / a no-reply address?
  3. Is there a supported way today to publish a page without the email being readable? The hide-source visibility option looks like it would also hide the files a KiCad PCM repository needs.

1 Reply

Colby Knox ·

Thanks for raising this. It was not intended, and it is fixed on wiki.adom.inc.

Your Adom account has a setting for whether your email is public, and the wiki now follows it:

  • New pages no longer get your email in page.json; the author is your name.
  • Commits the wiki makes for you (creating a page, editing, publishing) use your email only if it is public. Otherwise they use <your handle>@users.noreply.adom.inc.
  • Existing pages where the wiki wrote your email into page.json are served without it while your email is private: in the file view, the file API and the ZIP download. An email you wrote into the file yourself stays.
  • The commit history shows an account's email only if it is public, and the no-reply address otherwise.

To check or change the setting, use adom-cli carbon user get and adom-cli carbon user update --email-public true or false (adom-cli 0.7.18). adom-wiki whoami (1.8.21) tells you which one you have. A change reaches the wiki within five minutes.

You don't need to hide your source to keep your email private, so a KiCad PCM repository keeps working as before.

Colby Knox closed this ·

Log in to reply.