Skip to content

Remove the legacy MDM SCEPConfig model - #1811

Open
np5 wants to merge 1 commit into
mainfrom
20261120-drop-scepconfig
Open

np5 wants to merge 1 commit into
mainfrom
20261120-drop-scepconfig

Conversation

@np5

@np5 np5 commented Nov 20, 2026

Copy link
Copy Markdown
Member

Remove the SCEPConfig model and drop its table.

Why

  • Migration 0090 (v2025.9) copied each SCEPConfig into a SCEPIssuer.
  • Migration 0093 (v2025.10) removed the last foreign keys to it.
  • No code reads the table after v2025.10: no view, API, serializer, provisioning or Terraform export. goztl and the Terraform provider do not refer to it.
  • The table still keeps copies of the old encrypted SCEP challenges and CA passwords. Dropping it removes them.

Upgrades

  • The old migrations get the historical model from apps.get_model, so they continue to work. A deployment that upgrades from a release before v2025.9 runs the copy in 0090 before 0115 drops the table.
  • A rolling deploy is safe: no instance at v2025.10 or later reads the table.
  • The drop cannot be reversed. Migration 0090 returns without a copy if its imports fail. Before a deployment, compare mdm_scepconfig with mdm_scepissuer if you are not sure that the copy ran.

Checks

  • makemigrations --check: no changes.
  • Full suite in parallel: OK.
  • flake8 and ruff: no warnings.

🤖 Generated with Claude Code

Migration 0090 copied each SCEPConfig into a SCEPIssuer, and migration
0093 removed the last foreign keys to it. No code reads the table since
v2025.10. The table still keeps the old encrypted SCEP challenges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 44757574446

Coverage decreased (-0.001%) to 91.644%

Details

  • Coverage decreased (-0.001%) from the base build.
  • Patch coverage: 4 of 4 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 60939
Covered Lines: 55847
Line Coverage: 91.64%
Coverage Strength: 0.92 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants