0059. Open source as Newses, with the deployment config outside the repository
- Status: Accepted
- Date: 2026-10-12
Context
The repository is to be published. The AWS deployment's account, region, GitHub connection, certificate, hosted zone, stage domains, and budget were constants in infra/src/config.ts, repeated in scripts, docs, and tests, and the apps carried a personal reverse-domain ID and author name. The generic name rss-reader made a unique app ID and project identity impossible; the project now owns newses.app.
Decision
- The product is Newses: app ID
app.newses(Android package, Capacitor, Electron, Windows AppUserModelId), packages@newses/*, thenewsesCLI, image, and compose project,NEWSES_*variables, theapp://newsesdesktop origin, and the repositorynewses-app/newses. The author is "Newses contributors". GET /serverreportsnewses; apps also acceptrss-readerfrom servers not yet updated. The HKDF labelrss-reader/<purpose>stays, since changing it changes every key derived fromAPP_SECRET.- Account-specific values move to
infra/deploy.config.json, which is not committed and is validated at synthesis.infra/deploy.config.example.jsondocuments the shape with placeholder values, and tests synthesise against it. resourcePrefixin that config starts every AWS physical name, tag, and parameter path (newsesin the example), so an existing deployment keeps its names.- The pipelines' synth step writes the file from the String parameter
/<prefix>/deploy-config; the values are not secret, only kept out of the repository. Stage-operating scripts read the same file. - Published history is rewritten to replace the operator's values with placeholders.
Consequences
- A fork deploys by writing its own config and storing it in the parameter; the code needs no edits.
- A config change applies on each pipeline's next run, not on push; the pipelines must be updated by hand once before the first synth that expects the parameter.
- Existing Android and Windows installs are a different app from
app.newsesand must be replaced once; a Docker stack keeps its volumes only by keeping its compose project name. - Feed requests identify as
Newses/<version> (+https://newses.app). - Every commit's hash changes with the rewrite; clones made before it must be re-cloned.