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 Sign in to
view on (the default), 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 10 open issues and 10 open PRs per project, and 10 of its 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. |
| 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 sign-in to view is
on, 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 leave Sign in to view 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.
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 Sign in to view is on, 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. The file is mode 0600; treat a copy of the volume as a
secret. A token is tested before it is saved, and a saved token is only
ever sent to the address it was saved with. 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 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