snapshot: preserve dependency warning cleanup

This commit is contained in:
Md Bayazid Bostame
2026-03-24 14:03:44 +01:00
parent 8aaa408a95
commit f728f7134f
4 changed files with 5 additions and 0 deletions

View File

@@ -201,6 +201,7 @@ docker compose exec -T web python manage.py run_staging_e2e_check</code></pre>
<li>Run <code>manage.py check</code></li>
<li>Run tests or targeted verification</li>
<li>Run translation compile step</li>
<li>Rebuild containers if Python dependencies changed, then verify <code>python -c "import requests"</code> does not emit a compatibility warning</li>
<li>Generate at least one onboarding/offboarding PDF if PDF templates changed</li>
<li>Verify MailHog or SMTP path if email behavior changed</li>
<li>Verify Nextcloud upload if integration behavior changed</li>
@@ -216,6 +217,7 @@ docker compose exec -T web python manage.py run_staging_e2e_check</code></pre>
<li><strong>Language switch not visible:</strong> verify translation catalog compiled and restart web</li>
<li><strong>Mail not visible:</strong> check MailHog on port <code>8025</code> and test/production mode toggle</li>
<li><strong>Nextcloud sync unclear:</strong> verify config in Integrations page and inspect service logs</li>
<li><strong>Requests dependency warning appears:</strong> verify <code>chardet==5.2.0</code> is installed in the rebuilt image and restart <code>web</code>/<code>worker</code></li>
</ul>
<h2 id="security">14) Security and Maintenance Notes</h2>

View File

@@ -236,6 +236,7 @@
<li><strong>Nextcloud reliability:</strong> retry/backoff on upload errors, bounded timeouts, and graceful failure return instead of crashing flow.</li>
<li><strong>Filename safety:</strong> PDF filenames are sanitized to safe filesystem characters.</li>
<li><strong>Least privilege runtime:</strong> web and worker containers run as non-root <code>app</code> user.</li>
<li><strong>Dependency stability:</strong> the Docker image pins <code>chardet==5.2.0</code> so <code>requests</code> runs without compatibility warnings alongside ReportLab.</li>
</ul>
<div class="note">
Recommended for production: set secure cookies, explicit allowed hosts, CSRF trusted origins, and a strong secret key via environment variables.