Skip to content

Remove deprecated SECT curves and ACME plugin#79

Open
gijzelaerr wants to merge 6 commits into
mainfrom
spotify/cleanup-sect-and-acme
Open

Remove deprecated SECT curves and ACME plugin#79
gijzelaerr wants to merge 6 commits into
mainfrom
spotify/cleanup-sect-and-acme

Conversation

@gijzelaerr

Copy link
Copy Markdown
Member

Summary

Two cleanups that reduce maintenance surface and unblock dependency upgrades:

Remove deprecated SECT curves

The binary SECT curves (SECT163K1, SECT233K1, etc.) were deprecated in cryptography 46.x and removed in 48.x. We use RSA2048 exclusively. Removing them from utils.py and constants.py unblocks the cryptography 48.x upgrade (PR #74 failed on this).

Remove ACME plugin

The ACME/Let's Encrypt plugin (lemur/plugins/lemur_acme/) is unused — we use DigiCert for all certificate issuance. Removing it drops ~4900 lines and its dependency tree (acme, josepy, DNS provider integrations).

Cleaned up all ACME references:

  • manage.py: removed CLI registration
  • authorities/service.py: removed ACME URL validation
  • dns_providers/cli.py: removed zone lookup (was ACME-only)
  • celery.py + pending_certificates/cli.py: inlined the retry constant
  • constants.py: removed ACME_ADDITIONAL_ATTEMPTS

Impact on lemur-deploy

None — lemur-deploy doesn't use ACME or SECT curves. After merging, update the git pin in pyproject.toml to pick up this commit.

SECT curves (SECT163K1, SECT233K1, etc.) were deprecated in
cryptography 46.x and removed in 48.x. We use RSA2048 exclusively.
Removing them unblocks the cryptography 48.x upgrade.

The ACME plugin (Let's Encrypt integration) is unused — we use
DigiCert for all certificate issuance. Removing it drops ~3000 lines
of code and its dependency tree (acme, josepy, DNS provider libs),
reducing our maintenance surface.

Cleaned up all ACME references: manage.py CLI registration,
authorities/service.py ACME URL validation, dns_providers/cli.py
zone lookup, and ACME_ADDITIONAL_ATTEMPTS constant.
Tests for removed functionality: SECT key generation and ACME URL
allowlist validation in authority updates.
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 28873540323

Coverage increased (+0.4%) to 60.263%

Details

  • Coverage increased (+0.4%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 989
Covered Lines: 596
Line Coverage: 60.26%
Coverage Strength: 0.6 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