Never commit secrets
Reqbook treats endpoint, pipeline, project markdown, andenv.template.md as safe-to-commit artifacts. Generated env.md files are gitignored by default because environment values often drift by machine or deployment. Secrets belong in .env.local, CI environment variables, or a secret manager never in env markdown, endpoint files, pipeline files, or reqbook.md. The parser actively enforces this before any request is sent.
Secret detection
Reqbook scansenv.template.md, env.md, endpoint files, pipeline files, and reqbook.md for common secret patterns during rqb validate and before every execution. If a match is found, the command exits with code 5 no network request is made.
Patterns that trigger exit code 5
Error format
Allowed secret locations
Generated
api-docs/_shared/env.md files are also listed in .gitignore by default, while api-docs/_shared/env.template.md is meant to be committed. Both are still for non-secret values only.
Output masking
Reqbook masks auth header values and known secret variable names in all output surfaces: CLI console, JSON reports, JUnit XML, markdown reports, and the web preview response history.
Masking is applied before writing to any file, stream, or storage. Unmasked values are never written to disk by Reqbook.
Production confirmation
Running against aprod or production environment requires explicit confirmation in an interactive terminal. Reqbook prompts before sending any request when a production environment is selected.
--yes is passed after deliberate review:
Localhost and desktop writes
rqb serve binds to loopback by default and rejects browser writes that clearly come from a cross-site origin. This protects the common case where a random website tries to submit a write request to your local Reqbook preview server.
Reqbook desktop adds an extra session check for unsafe methods (POST, PUT, PATCH, and DELETE). The embedded server issues an HttpOnly rqb_write_token cookie with SameSite=Strict when the desktop UI loads. Desktop write endpoints require that active session, so drive-by browser writes without the desktop session are rejected.
This is not a substitute for operating-system account security. A local process running as your user can still access files that your user can access. Treat Reqbook desktop as a local developer tool and avoid opening untrusted workspaces.
Run the desktop smoke test before release candidates to verify this guard:
Anonymous active usage
Anonymous active-usage reporting in the web and desktop UI is off by default. Users can enable or disable it from the Feedback and support popup. When enabled, Reqbook sends a heartbeat containing:- a random identifier stored in browser-local storage,
- the surface:
desktoporweb, - the Reqbook version.