A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Documentation: note required secret key in v3 guide (#12513)
shamoonc039df423fdb
diff --git a/docs/migration-v3.md b/docs/migration-v3.mdindex 1cfb212ff..afbc83186 100644--- a/docs/migration-v3.md+++ b/docs/migration-v3.md@@ -1,5 +1,24 @@# v3 Migration Guide+## Secret Key is Now Required++The `PAPERLESS_SECRET_KEY` environment variable is now required. This is a critical security setting used for cryptographic signing and should be set to a long, random value.++### Action Required++If you are upgrading an existing installation, you must now set `PAPERLESS_SECRET_KEY` explicitly.++If your installation was relying on the previous built-in default key, you have two options:++- Set `PAPERLESS_SECRET_KEY` to that previous value to preserve existing sessions and tokens.+- Set `PAPERLESS_SECRET_KEY` to a new random value to improve security, understanding that this will invalidate existing sessions and other signed tokens.++For new installations, or if you choose to rotate the key, you may generate a new secret key with:++```bash+python3 -c "import secrets; print(secrets.token_urlsafe(64))"+```+## Consumer Settings ChangesThe v3 consumer command uses a [different library](https://watchfiles.helpmanual.io/) to unify