ZerwOnePlatform
Private preview

Docs

Quickstart

From an empty folder to your first proven fix in four steps.

  1. Get a key. During the private preview keys are issued by hand: request one. Then set two variables:
    shell
    export ZERWONE_API_URL="https://api.zerwone.com"
    export ZERWONE_API_KEY="zw-..."
  2. Export the schema. The API needs the structure of your database, not its data. Run the read-only export query we send with your key and save the result:
    SQL
    -- The export query is one read-only SELECT, sent with your key.
    -- Run it in the Supabase SQL editor or with psql. It returns one JSON
    -- document: tables, columns, constraints, grants, RLS switches,
    -- policies, views and function signatures. No rows, no function bodies.
    -- Save the output as schema.json.
  3. Write the request. Wrap the export in a request and add one sentence on what the app should allow. That sentence matters: without it the API cannot tell a shared board from a private diary.
    request.json
    {
      "format": "zerwone.verify-request.v1",
      "request_id": "chat-app-0001",
      "app_description": "Recipients should be able to see messages sent to them; only the sender should be able to edit a message's text.",
      "confirmed_guards": [],
      "schema": {
        "format": "zerwone.schema-export.v1",
        "tables": [ /* 1 table */ ],
        "policies": [ /* 3 policies */ ],
        "views": [],
        "functions": []
      }
    }
  4. Send it.
    curl https://api.zerwone.com/v1/verify \
      -H "Authorization: Bearer $ZERWONE_API_KEY" \
      -H "Content-Type: application/json" \
      -d @request.json

What to do with the answer

  • verified: the leak closed and every guard still works on the copy. Review the SQL and apply it.
  • needs confirmation: the fix changes access that some apps want. Ask the owner, then send the confirmed check ids.
  • not verified: nothing was proven. Do not apply it.

The verdict rules are on Reading a result.

The API never connects to your database and never applies anything. You apply the SQL yourself, after review.