Rebrand to KuentaGYM, and start a new profile in pounds and Spanish

The app is now KuentaGYM everywhere a user can see it, and a fresh profile no
longer starts on upstream's English/kg defaults. Both are this fork's decisions,
so both are pinned by tests rather than left to a find-and-replace.

Rename (1,270 references, 149 files)

- Visible surfaces: the Login/Home/mobile-onboarding wordmark, the Settings
  version line, the printed plan, the PWA title + manifest, and the 17 branded
  strings across all 14 locale packs.
- Infrastructure: repo links, the container images and the release endpoints now
  name git.dploy.lol/dsantillan/kuentagym; .gitea/workflows/docker-publish.yml
  publishes to this forge's registry instead of gitea.com.
- The Android/iOS application id stays ch.duartesantos.opengym on purpose:
  changing it would make the mobile app a different app that could never update
  an installed copy.

Three things the mechanical pass would have broken, fixed here

- The update check asked gitlab.com for upstream's releases and would have
  installed upstream's APK, putting the old name back on the phone. It now reads
  this fork's Gitea releases API (the assets shape differs), with the tests
  rewritten to the payload Gitea actually returns.
- Renaming the mobile state/pairing files (opengym-state.json,
  opengym-remote.json) would lose the on-device copy of a history whose WebView
  storage may have been evicted, and silently unpair the device. Both are read
  under their old names and written forward under the new ones.
- Renaming the exported plan-file marker (openGym_plan) rejected every plan
  shared before the rename as "not a plan file". Both markers are accepted.

Defaults: pounds and Spanish

- DEF.unit = 'lb', DEF.lang = 'es', plus every fallback that independently
  assumed en/kg (the <html lang> attribute, the Settings pickers, the Store, the
  MCP, the Coach payload).
- Server-generated push copy existed only in English and pt-BR, so a Spanish
  profile would have been notified in English; Spanish added.
- The demo seed states unit: 'kg' — its seeded numbers are kilograms, and
  inheriting the new default would have introduced an 82.4 lb lifter benching 60.
- The module-level language in i18n-core stays English: it is the only language
  whose strings need no pack, so `t()`, dates, numbers and lists agree before a
  pack loads. Starting there on 'es' formats a Spanish-shaped UI with English
  strings.

Also
- api/package.json's test glob missed push-messages.test.js and
  verify-error.test.js, which sat beside the modules they cover and never ran.
- README, docs/, website/ and the issue templates no longer describe upstream's
  GitLab/GitHub pipeline, Discord, sponsorship or public demo as if they were
  this fork's; upstream history and attribution are preserved (NOTICE.md).
This commit is contained in:
dsantillan committed 2026-09-21 14:29:54 -04:00
1 parent f91cde15a1
commit 87bfd6d4c4
152 files changed
+1784 -1604

No files matched your search

+27 -27
View File
@@ -1,14 +1,15 @@
# Security policy
openGym is a self-hosted app: you run the server, you hold the data. This file says which
versions get fixes, how to report something privately, and — the part most people actually
need — what the app protects you from and what it doesn't.
KuentaGYM is a self-hosted app: you run the server, you hold the data. This file says which
versions get fixes, how to report something that can't be posted in the open, and — the part most
people actually need — what the app protects you from and what it doesn't.
## Supported versions
Only the **latest release**. Releases are semver tags (`v1.0.0` → `v1.2.3`, see
[CHANGELOG.md](CHANGELOG.md)); there is no LTS or maintenance branch and older tags are never
patched. A fix ships in the next release and in the `latest` images in GitLab's registry.
patched. A fix ships in the next release and in the `latest` images on the Gitea registry —
`git.dploy.lol/dsantillan/kuentagym-api` and `git.dploy.lol/dsantillan/kuentagym-web`.
Updating a self-hosted instance:
@@ -18,30 +19,27 @@ git pull && docker compose pull && docker compose up -d
## Reporting a vulnerability
The project lives on GitLab. It has no security-advisory workflow on the free tier, but it does
have **confidential issues**, and that is the private channel: open an issue at
<https://gitlab.com/DuarteSantos8/opengym/-/issues/new> and tick **"This issue is confidential"**
*before* you submit. A confidential issue is readable only by project members — you'll see it,
I'll see it, nobody else will, and it stays that way if it is later closed.
The code lives on Gitea at <https://git.dploy.lol/dsantillan/kuentagym>, and the tracker there is
public: this fork has no security-advisory workflow and no private vulnerability reporting, so
anything you file is readable by everyone from the moment you submit it. That is fine for most
things and wrong for a working exploit.
If you'd rather not put the details in GitLab at all, open a confidential issue saying only
*"I need an address for a security report"* — no details, no repro, no version — and you'll get
one back within a couple of days.
If what you have is not safe to post in the open, open an ordinary issue that says only *"I need
an address for a security report"* — no details, no repro, no version — and you'll get a private
address back within a couple of days. (Upstream openGym is a different project on a different
tracker, <https://gitlab.com/DuarteSantos8/opengym>; its policy covers upstream, not this fork.)
> The GitHub repo and its private vulnerability reporting are gone with the suspended account;
> `github.com/DuarteSantos8/openGym/security/advisories/new` no longer resolves.
Please don't put a working exploit in a *non-confidential* issue if it can be used against other
people's instances — and not in the Discord either, which is a public room. Everything else (a crash you can only trigger on your own box, a scanner warning)
is fine as a normal issue.
Please don't put a working exploit in a public issue if it can be used against other people's
instances. Everything else (a crash you can only trigger on your own box, a scanner warning) is
fine as a normal issue.
Useful in a report: the version or commit, whether you're running the prebuilt images or a
source build, your `RP_ID`/`ORIGIN` and what sits in front of the app, steps to reproduce, and
what an attacker gets out of it.
**On response times:** this is a hobby project maintained by one person alongside school. There
**On response times:** this is a hobby project maintained by one person in their spare time. There
is no SLA and no bounty. Expect days rather than hours, and longer during exam periods. If a
week goes by with no reply, comment on the advisory thread — it's more likely to be a missed
week goes by with no reply, comment on the issue — it's more likely to be a missed
notification than a decision. If a report goes unfixed and you want to disclose publicly, say so
in the thread; there's no objection, and no request to sit on it indefinitely.
@@ -52,9 +50,10 @@ in the thread; there's no objection, and no request to sit on it indefinitely.
being an admin, or creating a profile without a valid code while `INVITE_ONLY=1`.
- **Frontend** — XSS in the React app, or anything that lets a page on another origin read or
change a signed-in user's data.
- **Shipped deployment config** — `docker-compose.yml`, `web/nginx.conf`, the two Dockerfiles:
a default that exposes something a self-hoster wouldn't expect to be exposed.
- **The published images** `registry.gitlab.com/duartesantos8/opengym/api` and `/web`.
- **Shipped deployment config** — `docker-compose.yml`, `web/nginx.conf.template`, the two
Dockerfiles: a default that exposes something a self-hoster wouldn't expect to be exposed.
- **The published images** `git.dploy.lol/dsantillan/kuentagym-api` and
`git.dploy.lol/dsantillan/kuentagym-web`.
## Out of scope
@@ -75,12 +74,13 @@ in the thread; there's no objection, and no request to sit on it indefinitely.
the session cookie isn't marked `Secure`.
- Scanner output with no working exploit, and `npm audit` findings in build-time
devDependencies (Vite, Vitest, Capacitor CLI) that never reach a running instance.
- The GitLab Pages demo build — it has no backend at all, everything stays in that browser.
- A demo build of the frontend (`VITE_DEMO=1`) — guest mode with a seeded example history and no
backend at all, everything stays in that browser. None is deployed for this fork.
- Third-party content: the exercise image/GIF dataset and the CDN it's fetched from.
## Security model
Read this before hosting openGym for anyone other than yourself.
Read this before hosting KuentaGYM for anyone other than yourself.
### What it does
@@ -132,7 +132,7 @@ Read this before hosting openGym for anyone other than yourself.
subscriptions, invite codes), one `state-<uid>.json` per user with their complete workout
history and body-weight log, `audit.log`, `secret`, and `vapid.json`. Anyone who can read that folder — you,
whoever holds the backups, whoever gets into the host — can read every user's data, and with
`secret` can mint a valid session cookie for any account. **If you host openGym for other
`secret` can mint a valid session cookie for any account. **If you host KuentaGYM for other
people, they are trusting you exactly as much as they'd trust any server operator.** With the
activity log on, `./data/audit.log` adds everyone's sign-in times to that — worth remembering
before an archive of `./data` goes somewhere you don't run.
@@ -170,7 +170,7 @@ Read this before hosting openGym for anyone other than yourself.
account is refused at the session check, so nothing it does produces an entry except the failed
sign-ins it keeps attempting.
- **HTTPS is required and the app doesn't provide it.** The API container speaks plain HTTP and
nginx listens on `:80` (`web/nginx.conf`); TLS is your reverse proxy's job. Without it,
nginx listens on `:80` (`web/nginx.conf.template`); TLS is your reverse proxy's job. Without it,
browsers won't do passkeys at all (except on `http://localhost`) and the session cookie is sent
in the clear.
- **No rate limiting anywhere.** Nothing throttles logins, registrations or writes, and