ποΈ fix: rename packages to prevent dependency confusion attacks#8
Merged
wortmanb merged 4 commits intoelastic:mainfrom Mar 26, 2026
Merged
Conversation
added 4 commits
March 26, 2026 07:28
BREAKING CHANGE: Package names changed to include 'elastic-' prefix - deepfreeze-core β elastic-deepfreeze-core - deepfreeze-cli β elastic-deepfreeze-cli - deepfreeze_core module β elastic_deepfreeze_core - deepfreeze module β elastic_deepfreeze The original names were vulnerable to dependency confusion attacks. The 'deepfreeze-core' name was already squatted on PyPI by an unknown party (author: 'AI Research Team <Ai-model@example.com>'). By using the 'elastic-' prefix which we control, pip install will fetch authentic packages from the Elastic organization. The CLI command remains 'deepfreeze' for user convenience. Migration: - Update imports: from deepfreeze_core β from elastic_deepfreeze_core - Update imports: from deepfreeze β from elastic_deepfreeze - Update pip install: elastic-deepfreeze-cli instead of deepfreeze-cli
- Fix import sorting in cli/main.py and validators/__init__.py - Remove [tool.ruff.lint] nested tables for older ruff compatibility - Update remaining 'from deepfreeze' imports to 'from elastic_deepfreeze'
- Fix cli/__init__.py: from deepfreeze.cli.main β from elastic_deepfreeze.cli.main - Fix double-prefix typos: elastic_elastic_deepfreeze_core β elastic_deepfreeze_core
- Fix NameError: use elastic_deepfreeze variable after importing it - Fix version test: expect 'deepfreeze' (CLI command name) not 'elastic_deepfreeze'
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.
BREAKING CHANGE: Package names changed to include 'elastic-' prefix
The original names were vulnerable to dependency confusion attacks. The 'deepfreeze-core' name was already squatted on PyPI by an unknown party (author: 'AI Research Team Ai-model@example.com').
By using the 'elastic-' prefix which we control, pip install will fetch authentic packages from the Elastic organization.
The CLI command remains 'deepfreeze' for user convenience.
Migration:
Fixes
Describe the problem, bug, or feature being proposed
Proposed Changes
Describe what changes you made
API changes
If these changes alter the API in anyway, detail that here.