Never commit secrets to GitHub (or any remote).
Open a GitHub Security Advisory on this repository, or contact the project maintainer. Do not publish exploits in public issues until a fix is available.
.envand variants (except.env.example)deploy/*.envwith real secrets (except*.env.example).secret_keyand productionPDF_EDITOR_SECRET_KEY/PDF_EDITOR_AUTH_TOKENvalues- Contents of
uploads/(user documents) - TLS private keys (
*.pem,*.key) and certificates with private material
.env.examplewith empty placeholders orchange-me-...- Documentation of required variables
- Application code without embedded credentials
- Prefer binding behind a reverse proxy with TLS for any non-trusted network.
- Optional token auth (
PDF_EDITOR_AUTH_ENABLED=1+PDF_EDITOR_AUTH_TOKEN) is a minimal hook — not a full multi-user ACL. - Uploaded files are temporary working data; default cleanup removes sessions older than
PDF_EDITOR_TEMP_HOURS.
- Rotate the secret immediately (
PDF_EDITOR_SECRET_KEY, auth token, TLS keys, etc.). - Revoke affected tokens.
- If it was already pushed to GitHub: treat the commit as compromised; scrub history or rotate and assume exposure.
- Notify the project maintainer.