Repository navigation
Privacy and Security
This page lists everything ForgeMap shows to anyone who can reach it, and how to keep it private. Back to the README.
-
Set up in the browser, ForgeMap has one account. With Only me, after
signing in (the default; in Settings, Ask for sign-in to see the
page), only you, signed in, see the page, the JSON API,
the live stream and the feed; a feed key opens the
feed, the JSON API and the refresh for feed readers and scripts, and
/healthzsays only whether all is well. With it off, anyone who can reach the page sees what it shows. Settings always needs sign-in. -
With a config file or the quick-start variables there is no sign-in.
Anyone who can reach the page sees everything it shows. The JSON API
(
/api/site.json,/api/p/...,/api/search.json,/api/live.json), the live stream (/events) and/healthzserve the same data.
Everything the page shows, to whoever may view it:
| What | What anyone can see |
|---|---|
| Repos | Names and links (which show your forge's address); descriptions, default branches, stars, open issue and PR counts, archived and mirror flags, tags and their dates. Private repos only when you turn them on (include_private: true); they are off by default. |
| Issues and PRs | Titles, numbers, labels and their colours, authors, comment counts and dates (up to 50 open issues and 50 open PRs per repo, and 50 of a mirror's issues), and the titles of those that wait on you. |
| Commits | The first line of each recent commit message, its author name, SHA and date; weekly commit counts; a year of daily contribution counts of the token users (the heatmap), which count all their activity, private repos included whatever include_private says (numbers only, no repo names). |
| CI | Run titles, branches, workflow names, state and times. |
| Releases | Tag names and release titles (not release notes), with dates. |
| Files read from repos | The CHANGELOG.md Unreleased items and last version; plan file paths, titles and checkbox progress. |
| The projects file | Every project's name, summary, description, stack, "runs on" text, categories, holds and their reasons, relations, links, and each urls: link and probe URL, which can name internal hosts. |
| Probes | Each URL's state, HTTP code, latency and 24-hour history, and each repo homepage probed. |
| Docker, when set up | Container names, image names (with their registry), versions, states and Docker's status text, and the host label. |
| F-Droid, when set up | The published version. An error names the index by its scheme, host and path only, never a user, password or query in its address. |
| Notes, when set up | File names, names, descriptions, index lines and each markdown note's text. |
| Ideas | Titles, pitches, reasons, and links to issues. |
| Events | Events for 14 days (releases, deploys, containers, CI, commits, issues, probes, notes and state changes). |
| Source errors | Source errors, which can name file paths, hosts and the repos the projects file names. |
Whoever may view the page can also ask for a refresh, with Refresh now or
POST /api/refresh: anyone who can reach it, or, while the page asks for
sign-in, only a request with the session or the feed key. ForgeMap starts at most one a minute; a request inside
that minute starts nothing and says when the next can start. A refresh
only reads again, and only what changed or failed: every forge's repo list
and the projects and ideas files, and a repo's detail where its list moved
or its last read failed, on every forge (see API).
refresh: false in the config file (or FORGEMAP_REFRESH=false) turns
refreshes off: the palette has no Refresh now, and POST /api/refresh
answers 404.
POST /api/refresh refuses a request that another site makes the browser
send (Sec-Fetch-Site of cross-site or same-site).
Set it up in the browser and keep Only me, after signing in (in
Settings, Ask for sign-in to see the page stays on). With a config
file or the quick-start variables, put it behind a reverse proxy that asks
for a login (basic auth, or an OAuth or forward-auth proxy), or keep it on
your LAN or VPN. Publish the
port on loopback (-p 127.0.0.1:8080:8080) unless something in front of it
guards it. Behind a login has a Caddy example.
Addresses. Keeping ForgeMap on your LAN or VPN does not stop a web page
open in a browser on that network from reaching it under a name of its own
(DNS rebinding). With sign-in on, that page gets nothing of yours. With
sign-in off, or with a config file or the quick-start variables, list the
names ForgeMap should answer to: in Settings, Addresses this page answers
to, or site.hosts, or FORGEMAP_HOSTS. A request at any other name then
gets status 421 and none of the page. IP addresses, localhost and names
without a dot always work. The list is empty by default, which answers to
any name. A new install's 5-minute setup window has no list yet: make your
account as soon as it starts. More detail:
Addresses.
Private repos are left out by default (include_private: false):
from projects, needs-you, ideas, events, the ship log and the map.
A repo shows only once it is known to be public, so while a forge has not answered, a project or mirror from the projects file whose privacy is unknown stays hidden.
To show private repos, set include_private: true (or
FORGEMAP_INCLUDE_PRIVATE=true without a file): then everything above shows
for them too, to anyone who can reach the page, so only while sign-in is on
(or behind a login, for a config file). Set up in the browser, Show
private repos works only while the page asks for sign-in, and turning
sign-in off turns it off.
A GitHub forge without a token cannot tell that a repo the projects file names is private (GitHub answers 404 to anonymous reads), so such a project shows only what the projects file says about it, and a mirror it names on that forge is linked as named.
More detail: include_private.
Tokens need only read access (see
the scopes), and are never shown: not in
pages, logs, errors or /api/site.json. Every forge call is a read.
Set up in the browser, the tokens you paste sit in settings.json in the
data volume in plain text, beside the password hash, the signing secrets
and the feed key (and, after a password reset, the SHA-256 of its one-time
sign-in link until the link is used or replaced or the password is changed;
the link stops working after 15 minutes). The file is mode 0600, as are the state and
cache files beside it; treat a copy of the
volume as a secret. A token you paste is tested before it is saved (a GitHub forge can
be saved with no token, for public repos only); one brought in by
forgemap -import-config is not. A saved token is only
ever sent to the address it was saved with. An install moved from a config file or the
quick-start variables with forgemap -import-config holds its tokens in settings.json before it has an account:
the command prints a one-time setup code, kept only as a SHA-256, and no account can be
made without it. Forge requests then ignore
HTTP_PROXY and HTTPS_PROXY and follow no redirect.
Homepage probes (each repo's website field, probes.homepages) refuse
loopback, private (RFC 1918, IPv6 ULA), link-local, CGNAT (100.64.0.0/10),
unspecified (0.0.0.0/8, ::) and multicast addresses (IPv4, IPv6 or
IPv4-mapped), checked after DNS, and do not use HTTP_PROXY or
HTTPS_PROXY: anyone who can edit a repo can set its website. The projects
file's urls: are yours, and are probed as given.
Homepage probes do not refuse NAT64, benchmarking or other reserved ranges; they report only up or down and the latency.
More detail: probes.
-
Cookies: when a visitor picks a theme, the page sets the cookie
theme(for one year), so the server renders the theme the visitor chose. On an install set up in the browser, signing in also sets a session cookie (until the browser closes, or 12 hours at most; 30 days with Keep me signed in) and a device cookie (one year), which lets that browser sign in while others' wrong guesses are being slowed down. The page also keepstheme,lastVisitandlastVisitBaselinein the visitor's localStorage. - Nothing from other sites: every response carries a Content-Security-Policy that lets the page load only from ForgeMap itself, so it loads nothing from other sites. ForgeMap serves its own fonts.
Getting started
Using ForgeMap
Reference