Skip to content

Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.

feat(v0.29.5): activate funding.json wellKnown ownership verification — canvix.app verified live

Ashiq Hussain Miraa94d97d0e02
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 66cf7f3..8e3ddc1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Added — FOSS United funding application (v0.29.5)
+- **Website ownership verification ACTIVATED (2026-11-24):** after the
+ VPS deploy of `52eb8e0`, `https://canvix.app/.well-known/funding-manifest-urls`
+ went live (200, exact manifest-URL body), and the manifest now carries
+ `wellKnown` on the project `webpageUrl` — the claim is no longer
+ withheld. The honesty-guard unit test was flipped to assert its
+ presence, and the validation report records the live verification.
- **`funding.json` rewritten for the FOSS United project-grant
application** (fundingjson.org v1.1.0, schema-validated): four
milestone plans in INR — M1 baseline & harness ₹1,30,000 · M2
diff --git a/docs/FUNDING-VALIDATION.md b/docs/FUNDING-VALIDATION.md
index 7688a31..b62ce79 100644
--- a/docs/FUNDING-VALIDATION.md
+++ b/docs/FUNDING-VALIDATION.md
@@ -47,8 +47,8 @@
| File content | ✅ `public/.well-known/funding-manifest-urls` contains exactly `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json` (asserted by unit test) |
| Dev-server serving | ✅ `curl http://localhost:3000/.well-known/funding-manifest-urls` → 200 + exact content (verified against the running dev server) |
| e2e (dev) | ✅ new smoke spec fetches the route and compares the body — 5/5 passing locally; runs in the CI e2e job |
-| Production standalone serving | ✅ new assertion step added to the CI **docker** job (the real production container); will prove it on this PR's CI run |
-| **Live at https://canvix.app** | ⏳ **NOT YET VERIFIED — pending VPS deploy** (the deploy is blocked on the SSH key, see `docs/VPS-DEPLOY-RUNBOOK.md` §1). The manifest's `wellKnown` property is **deliberately withheld** until the public URL returns the file; the exact remaining step is runbook §5 |
+| Production standalone serving | ✅ CI **docker** job asserts the production container serves the file — green on PR #86 |
+| **Live at https://canvix.app** | ✅ **VERIFIED 2026-11-24** — `GET https://canvix.app/.well-known/funding-manifest-urls` → **200**, body exactly `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json` (deploy `52eb8e0`, VPS auto-deploy "DEPLOY OK", service active, health green, 366 templates). **The `wellKnown` property is now ACTIVATED in the manifest** — pointing at the live URL — with the honesty-guard test flipped to assert its presence |
## 5. Application status (FOSS United)
@@ -67,7 +67,8 @@
## 7. Honest limitations
-1. The live canvix.app well-known verification and the VPS deploy await the SSH key (runbook §1).
+1. ~~The live canvix.app well-known verification and the VPS deploy await the SSH key~~ **RESOLVED 2026-11-24**: the VPS deploy ran (auto-deploy of `52eb8e0`, "DEPLOY OK"), the public URL serves the verification file (200 + exact content), and the `wellKnown` claim is activated. The runbook (`docs/VPS-DEPLOY-RUNBOOK.md`) remains the reference for future deploys.
2. The FOSS United review status is unknown — no public signal exists; the inquiry draft is the path.
3. The official directory validator accepted the manifest, but the grants directory's weekly refresh is the update mechanism with a reported (not SLA-backed) weekly cadence.
4. Adoption figures in the proposal are self-reported and dated (labeled as such there).
+5. The verification file is served with `Content-Type: application/octet-stream` (Next's static default for extensionless files). The fundingjson.org spec specifies plain text, one URL per line — the body is exactly that; no directory-side content-type requirement is documented, and the official validator accepts the manifest. If a stricter consumer ever appears, add an explicit `text/plain` route.
diff --git a/docs/VPS-DEPLOY-RUNBOOK.md b/docs/VPS-DEPLOY-RUNBOOK.md
index 12ab00b..fa1a494 100644
--- a/docs/VPS-DEPLOY-RUNBOOK.md
+++ b/docs/VPS-DEPLOY-RUNBOOK.md
@@ -1,24 +1,24 @@
# VPS Deploy Runbook — canvix.app (132.226.127.65)
**Who runs this:** the maintainer (or an agent session holding the SSH key).
-**State:** the deploy automation itself is ready; the ONLY missing piece is the SSH private key (see §1).
+**State:** ✅ **DEPLOYED 2026-11-24** — the key was re-provided, the deploy of `52eb8e0` completed via the auto-deploy script, all §4 checks passed live, and the wellKnown activation (§5) is done. This document now serves as the reference for FUTURE deploys.
## 0. What is deployed where
| Piece | Value |
|---|---|
-| Host | `132.226.127.65` (Oracle Cloud), user `ubuntu` |
-| Auth | SSH key `oracle_vm1.key` (was uploaded to the sandbox at `/tmp/oracle_vm1.key` — `/tmp` is wiped on sandbox recycle, so it must be re-provided) |
-| Site | https://canvix.app → this VPS |
-| App | Next.js standalone build, local Postgres (`127.0.0.1`, database `canvix`) |
-| Deploy pattern | build on the VPS from `main`, migrations via `prisma migrate deploy`, standalone snapshot + restore-on-failure (ROADMAP, 2026-11-07 hardening) |
+| Host | `132.226.127.65` (Oracle Cloud), user `ubuntu`, aarch64 |
+| Auth | SSH key `oracle_vm1.key` (the sandbox copy lives at `/tmp/oracle_vm1.key`; `/tmp` is wiped on sandbox recycle, so it must be re-provided per session — it is never stored in the repository) |
+| Site | https://canvix.app → this VPS (reverse proxy → app on `127.0.0.1:3010`) |
+| App | `/opt/canvix` — Next.js standalone build, systemd service `canvix`, Postgres in the `canvix-pg` Docker container |
+| Deploy pattern | `auto-deploy.sh` (cron, flock-guarded): poll `origin/main` → snapshot → reset → `npm ci` → build → `prisma migrate deploy` → restart → health check → auto-rollback on failure. Manual: `auto-deploy.sh --force` |
| Helper scripts | `/home/z/my-project/scripts/vps.py` and `vps_ssh.py` (paramiko runners, key at `/tmp`) |
-## 1. The one blocker
+## 1. The one blocker — RESOLVED 2026-11-24
-The sandbox that prepared this runbook lost the SSH key in a recycle (`/tmp/oracle_vm1.key` no longer exists; the key was never stored anywhere durable, by design). **To execute a deploy, re-attach the key** — either:
+The key was re-provided by the maintainer and the deploy executed. This section remains as the procedure for any future session that needs to deploy: the sandbox's `/tmp/oracle_vm1.key` does not survive recycles (the key is never stored anywhere durable, by design), so a fresh session must re-attach it — either:
-- upload it to the sandbox again (it will land in the upload dir and can be moved to `/tmp/oracle_vm1.key` for the helper scripts), or
+- upload/provide it again and place it at `/tmp/oracle_vm1.key` (chmod 600) for the helper scripts, or
- run §3 by hand from your own machine where the key already exists.
No credentials, tokens or secrets are stored in this repository.
@@ -60,15 +60,17 @@ curl -fsS https://canvix.app/.well-known/funding-manifest-urls
If health fails or the site is down: restore the snapshot (`rm -rf .next/standalone && cp -a ~/standalone-backup-* .next/standalone`), restart, and investigate offline — the old build keeps serving.
-## 5. Well-known activation (after §4 passes)
+## 5. Well-known activation (after §4 passes) — ✅ COMPLETED 2026-11-24
-Once `https://canvix.app/.well-known/funding-manifest-urls` returns the exact manifest URL in production:
+The deploy of `52eb8e0` ran via the VPS auto-deploy script ("DEPLOY OK" in `~/canvix-auto-deploy.log`), §4's checks passed against the live site, and the activation steps below were executed:
-1. Edit `funding.json`: add `"wellKnown": "https://canvix.app/.well-known/funding-manifest-urls"` inside `projects[0].webpageUrl`.
-2. Update the honesty guard in `src/lib/funding-manifest.test.ts` (the test that asserts `wellKnown` is *absent* — flip it to assert presence).
-3. Commit, push, let CI re-validate, merge. The grants directory picks it up on its weekly manifest refresh.
+1. ✅ `funding.json` now carries `"wellKnown": "https://canvix.app/.well-known/funding-manifest-urls"` inside `projects[0].webpageUrl`.
+2. ✅ The honesty guard in `src/lib/funding-manifest.test.ts` was flipped to assert the property's **presence** (with the activation date and the reason recorded in the test).
+3. ✅ Committed, CI-validated and merged; the grants directory picks the manifest up on its weekly refresh.
-This is the exact "remaining step" referenced in `docs/FUNDING-VALIDATION.md` §website — the ownership claim is deliberately withheld until the public URL actually serves the file.
+If the live URL ever stops serving the file, the CI manifest test, the e2e smoke spec and the docker-job assertion all fail loudly — fix the deployment (§3–§4), not the tests.
+
+**Note on how the deploy actually runs (supersedes the §3 manual sketch):** this VPS has an auto-deploy script (cron, `flock`-guarded) that polls `origin/main` every ~5 minutes, snapshots the standalone build, `git reset --hard origin/main`, restores the local `.env`, `npm ci`, `npm run build`, `npx prisma migrate deploy`, `systemctl restart canvix`, health-checks port 3010, and **auto-rolls back to the last-good build on failure**. Manual deploys should use `auto-deploy.sh --force` rather than hand-rolling §3.
## 6. Rollback
diff --git a/funding.json b/funding.json
index 4116ec5..8faad19 100644
--- a/funding.json
+++ b/funding.json
@@ -17,7 +17,8 @@
"name": "Canvix",
"description": "Free and open-source graphic design platform — a self-hostable, browser-based editor with a 366-template library, real-time collaboration, and local exports to PNG, JPG, SVG, vector PDF, PPTX, GIF and video. MIT-licensed: every feature free, no watermarks, no paywalls, and try-without-account. The AI layer is modular and provider-independent (text, vision, image and video capability slots with bring-your-own-key), and AI-assisted designs remain native, editable elements rather than flattened images — so machine help still produces real design work. One-command Docker self-hosting makes it infrastructure any school, nonprofit or small organization can run itself. This grant funds design-output correctness (exact text and colors, reliable geometry), reproducible design-quality evaluation, and open creator education for the next six months.",
"webpageUrl": {
- "url": "https://canvix.app"
+ "url": "https://canvix.app",
+ "wellKnown": "https://canvix.app/.well-known/funding-manifest-urls"
},
"repositoryUrl": {
"url": "https://github.com/mir-ashiq/canvix"
diff --git a/src/lib/funding-manifest.test.ts b/src/lib/funding-manifest.test.ts
index a90ba3c..285aeeb 100644
--- a/src/lib/funding-manifest.test.ts
+++ b/src/lib/funding-manifest.test.ts
@@ -94,10 +94,15 @@ describe('funding.json — fundingjson.org v1.1.0 contract', () => {
expect(lines).toEqual(['https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json'])
})
- it('wellKnown ownership claim is withheld until production serves the file (honesty guard)', () => {
- // When canvix.app/.well-known/funding-manifest-urls is verified live,
- // flip this to 'include' — see docs/FUNDING-VALIDATION.md §website.
+ it('wellKnown ownership claim is ACTIVE and points at the live verification file (activated 2026-11-24)', () => {
+ // Activation history: the claim was withheld until
+ // https://canvix.app/.well-known/funding-manifest-urls served the exact
+ // manifest URL in production — verified live on 2026-11-24 (deploy 52eb8e0)
+ // before this property was added. If this ever breaks, production stopped
+ // serving the file: fix the deployment, not the test.
const p = (manifest.projects as Record<string, unknown>[])[0]
- expect((p.webpageUrl as Record<string, unknown>).wellKnown).toBeUndefined()
+ expect((p.webpageUrl as Record<string, unknown>).wellKnown).toBe(
+ 'https://canvix.app/.well-known/funding-manifest-urls',
+ )
})
})