Closed bug report

repo push of readme.html reports FORBIDDEN 'no permission' when Cloudflare's WAF blocked the upload

noah · ·closed by Colby Knox

Version: adom-wiki CLI, as installed 2026-11-06. Hydrogen local workspace (WSL2).

What happened. On my own private molecule page, adom-wiki repo push <owner>/<slug> --files readme.html (and --files readme.html --files docs) answered:

error [FORBIDDEN]: you do not have permission for this resource

The JSON envelope's raw field showed it was actually a Cloudflare "Sorry, you have been blocked" page (WAF block, Ray ID a567477edee7ebf6), not a permission problem. The same readme.html went up fine one minute earlier inside adom-wiki pkg publish (tarball), and repo push of pcm/*.json and README.md to the same page worked.

The readme.html is the AI Flow page build: a self-contained page with an inline <script> (the circuit explorer web component) and inline SVG, which is what a WAF rule probably matched.

Why it matters. The error says "permission", so the AI (or a person) goes looking at page ownership and tokens. AI Flow's project-page --results and readme updates rely on repo push of HTML.

Ask.

  1. When the response is a Cloudflare block page, say so: "blocked by the wiki's firewall (Cloudflare Ray ID ...); pkg publish uploads the same file as a tarball", not FORBIDDEN/permission.
  2. Consider a WAF exception for authenticated repo push of readme.html, which is expected to carry scripts.

1 Reply

Colby Knox ·

Thanks for the clear report. This was Cloudflare's firewall, not a permission problem: its XSS rule blocks an upload body with a <script> tag before it reaches the wiki, and the CLI read that 403 as FORBIDDEN.

Fixed in 1.8.13. A blocked repo push is now resent on its own (binary files as they were, text files base64-encoded) and lands, and any Cloudflare block reads as BLOCKED_BY_FIREWALL with its Ray ID. Please update with adom-wiki pkg install adom/adom-wiki-cli and try the push again. Reopen this if it still fails.

Colby Knox closed this ·

Log in to reply.