CSRF trusted origins + SLA pause/recompute + issue infra (2026.2.1) - #4
Merged
Merged
Conversation
Django rejected logins with 'Origin checking failed' when Jackil was reached through a reverse proxy or an external hostname because no trusted origins were configured. Add an env-driven CSRF_TRUSTED_ORIGINS setting and document it for proxy deployments alongside ALLOWED_HOSTS.
The time-sensitivity timer kept running while a ticket sat in Pending and never recalculated when the priority changed, so escalations used stale deadlines. Freeze the clock while a ticket is in a paused status and shift the due dates forward by the paused span when it resumes, banking the time so later recalculations stay correct. Recompute first_response_due and resolution_due against the new target whenever the priority changes. Stop check_sla from breaching Pending tickets.
Bring the bug report, feature request, config, pull request template, contributing guide, and security policy in line with the other SQSY repos, adapted to Jackil's helpdesk domain.
The Civil SSO app predated the ruff format/lint gate. Reformat it, add a __str__ to CachedCivilKey, order the model magic methods per DJ012, and drop an unused import so the format and lint checks pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2 and #3.
Tests:
USE_SQLITE=1 .venv/bin/python manage.py test(127 passing). Tagv2026.2.1after merge