diff --git a/CLAUDE.md b/CLAUDE.md index e1e5d50..dc6a9f5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -42,6 +42,7 @@ Watari is a Rust/Axum web GUI that sits in front of [rustypaste](https://github. - "Admin" (for gating `/admin/tokens`) is defined as *the resolved token binding has the `delete` permission* — the spec doesn't define it more precisely. - Encrypted URL-shortening: rustypaste's `url` field is a redirect target, so it can't hold ciphertext. When password-protection is on, `/api/shorten` uploads the encrypted URL as a `.enc` **file** instead of calling rustypaste's shorten endpoint (still logged with `kind: "url"` in `upload_log` for display purposes). - Text paste has no filename/extension field (§8): only the content matters. `/api/paste` ignores any `filename` field and sends rustypaste a generated unique `paste-<8 hex>.txt` (unique so deployments without `random_url` don't 409 on name collisions). The dashboard label (`display_name`) is the paste's first non-blank line, or rustypaste's resulting filename for encrypted pastes, whose content the server can't read. +- Public pages beyond `/decrypt` (§8): `/home` is public too, and `/` (the dashboard) redirects anonymous visitors to `/home` instead of `/auth/login`. Both live in `routes::public_router()` and take `Option`; anonymous visitors get a reduced sidebar (Home, Decrypt, "Log in"). Every other page and `/api/*` route still takes `UserSession` and requires SSO. - CSP has no nonce — every template ended up with zero inline `