Files
coremarket/PLAN.md
T
davidandClaude Opus 5.5 ce9b2aa514 Add PLAN.md (open items) and TEST.md (manual test checklist)
PLAN.md lists outstanding work: data accuracy checks, pricing and
latency coverage, features not yet built, security hardening before
internet exposure, and automated tests/CI.

TEST.md is a browser and API (curl) checklist with expected results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:48:58 -07:00

85 lines
5.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Coremarket: open items
Status as of 2026-12-01. The app works end to end. These are the things still to do, roughly in priority
order.
## 1. Right now
- [ ] **First push to Gitea.** `origin` is `https://gitea.federated.computer/david/coremarket.git`.
Run `git push -u origin main` and sign in with your Gitea username and a password or access token.
- [ ] **Commit `PLAN.md` and `TEST.md`**, then push.
- [ ] **Restart the container on the new build** with `ADMIN_USERNAME` / `ADMIN_PASSWORD` in `.env`:
`docker compose up -d --build`. Then work through `TEST.md`.
## 2. Data accuracy (verify before quoting customers)
- [ ] **Contabo surcharges outside the EU.** North America East is 0%, from your price table. UK 10%,
US Central/West 20%, Asia 35–40% and Sydney 45% are estimates. Check them in Contabo's order
page and enter them under **Edit Contabo prices**.
- [ ] **Contabo setup fee for the larger plans.** €2.00 is confirmed only for Cloud VPS 4.
- [ ] **Low-confidence prices:** HostAfrica (estimated from ZAR prices), Alibaba Cloud, and Hostinger
(24-month promotional rates; renewals are roughly double).
- [ ] **Medium-confidence prices:** OVHcloud, Scaleway, Hetzner (EUR converted at 1.16), Google Cloud and
Oracle regional multipliers, and AWS regional multipliers.
- [ ] **Compliance:** confirm each provider's HIPAA/SOC 2/PCI/GDPR scope covers the compute product
quoted. For example, OVHcloud's certifications cover Hosted Private Cloud, not VPS.
- [ ] **Calibrate sizing against real Federated installs.** App resource profiles are engineering
estimates. Coremarket sizes Base at 90 GB of disk, but Federated sells Base with 30 GB. Measure
RAM, CPU and disk on real Base/Good/Better/Best servers and update `app/data/software.py`.
- [ ] **Live exchange rate.** EUR→USD is fixed at 1.16 (`EUR_USD`). Consider fetching the ECB rate daily.
## 3. Pricing coverage
- [ ] **Live AWS pricing** via the AWS Price List API (needs AWS credentials).
- [ ] **Live Google Cloud pricing** via the Cloud Billing Catalog API (needs an API key).
- [ ] **Live OVHcloud pricing** via its public order catalogue API (`/order/catalog/public`).
- [ ] **Live Scaleway pricing** via its instance types API.
- [ ] **DigitalOcean and Hetzner live pricing** already work once `DIGITALOCEAN_TOKEN` / `HCLOUD_TOKEN` are
set. Create read-only tokens.
- [ ] **Regions near the uncovered cities:** Lagos, Cairo, Lima, Buenos Aires, Dhaka and Perth have no
nearby region in the catalogue. Shanghai is covered only by Alibaba's mainland regions, which
need an ICP licence. Candidates to research: Huawei Cloud (Latin America and Africa) and local
African hosts.
## 4. Features suggested earlier, not built yet
- [ ] Backup and snapshot pricing per provider.
- [ ] 1–3 year commitment prices (AWS, Azure, Google Cloud, Oracle save 30–60%).
- [ ] VAT and sales tax by country.
- [ ] Data sovereignty flags (e.g. US-owned providers under the CLOUD Act, even in EU regions).
- [ ] SLA (uptime guarantee) and support tier per provider.
- [ ] GPU options for local AI (Jupyter, Hermes).
- [ ] More certifications: ISO 27001, C5, HDS, FedRAMP.
## 5. Latency
- [ ] **Real measurements cover only some providers.** Only AWS, Hetzner and OVHcloud publish probe
hosts that answer; the DigitalOcean and Linode hosts were removed because they don't. Option: run
tiny probe targets in other providers' regions.
- [ ] **Store measured results** and show them in place of estimates where available.
- [ ] **Set `GLOBALPING_TOKEN`** for a higher measurement limit.
## 6. Security and operations (before exposing to the internet)
- [ ] **HTTPS:** put Coremarket behind a reverse proxy with TLS (e.g. Traefik or Caddy) and set
`COOKIE_SECURE=1`.
- [ ] **Client IP behind a proxy.** Sign-in throttling uses the client IP. Behind a proxy every request
appears to come from the proxy, so one attacker could lock out a username for everyone. Run uvicorn
with `--proxy-headers --forwarded-allow-ips=<proxy IP>`.
- [ ] **Throttling is in memory,** so it resets on restart. Acceptable for now; store it if needed.
- [ ] **Audit log of admin actions:** accounts created or deleted, role changes, keys created or
revoked, price edits.
- [ ] **Session management:** let users see and sign out their other sessions.
- [ ] **Admin recovery command:** a way to reset an admin password without deleting
`/data/coremarket.db` (which removes all accounts).
- [ ] **Backups** of the `coremarket-data` volume (accounts, keys, Contabo sheet).
- [ ] **Pin the Docker base image** by digest, and update dependencies regularly.
## 7. Engineering
- [ ] **Automated tests.** There are none yet; everything was tested by hand and with scripts. Add a
pytest suite covering sizing (`engine.py`), the API (`api.py`, `accounts_api.py`) and auth
(`auth.py`), plus a Playwright browser smoke test.
- [ ] **CI in Gitea Actions:** run the tests and build the Docker image on every push.
- [ ] **Release tags and a changelog** once the first version is in use.