Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed the ability to select md5, sha1, or sha224 as the checksum type #3306

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Nov 6, 2023

Sha256 has been supported since at least RHEL 6. We obviously still have to support syncing repos with md5, sha1, and sha224 checksums as they can theoretically exist in the wild (though less and less common over time) but there's really no reason to allow publishing with any weaker checksums. Especially since Katello has never exposed it.

@dralley dralley force-pushed the remove-old-checksums branch 3 times, most recently from 82a0778 to e0eb410 Compare November 6, 2023 23:49
@dralley
Copy link
Contributor Author

dralley commented Nov 6, 2023

I can split these into separate PRs if desired. The commits can be viewed separately and none of them will be backported though.

@dralley dralley marked this pull request as draft November 7, 2023 02:58
@dralley dralley force-pushed the remove-old-checksums branch 5 times, most recently from 2b26393 to b9c7d9a Compare November 10, 2023 06:12
@dralley dralley marked this pull request as ready for review November 10, 2023 13:55
@dralley dralley requested a review from ipanova November 10, 2023 13:55
@dralley
Copy link
Contributor Author

dralley commented Nov 10, 2023

Also, I can merge the migrations

Copy link
Member

@ipanova ipanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@@ -13,11 +13,6 @@

# The same as above, but in a format that choice fields can use
CHECKSUM_CHOICES = (
(CHECKSUM_TYPES.UNKNOWN, CHECKSUM_TYPES.UNKNOWN),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was the uknown for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure it shouldn't have been there in the first place.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pulp_rpm/app/serializers/repository.py Show resolved Hide resolved
pulp_rpm/app/models/repository.py Outdated Show resolved Hide resolved
pulp_rpm/app/constants.py Outdated Show resolved Hide resolved
@dralley dralley force-pushed the remove-old-checksums branch 2 times, most recently from f6800c4 to 2451498 Compare November 13, 2023 06:47
@dralley dralley marked this pull request as draft November 16, 2023 14:32
@dralley dralley force-pushed the remove-old-checksums branch from 2451498 to 2c1eca6 Compare November 29, 2023 03:22
@github-actions github-actions bot added the multi-commit Added when a PR consists of more than one commit label Nov 29, 2023
@dralley dralley force-pushed the remove-old-checksums branch 2 times, most recently from 3ca911e to 31e7bad Compare December 1, 2023 04:15
@dralley dralley removed the multi-commit Added when a PR consists of more than one commit label Dec 1, 2023
@dralley dralley force-pushed the remove-old-checksums branch 2 times, most recently from 9f18e8c to e215755 Compare December 4, 2023 03:42
@dralley dralley marked this pull request as ready for review December 4, 2023 03:43
@dralley dralley force-pushed the remove-old-checksums branch 3 times, most recently from 9ec1ce0 to 4b0a44b Compare December 4, 2023 03:54
@dralley
Copy link
Contributor Author

dralley commented Dec 4, 2023

@ipanova Now using a different approach: instead of changing the values allowed in the database (which as you pointed out is effectively unrestricted due to metadata mirroring and syncing), I just disallowed it in the serializer.

@dralley dralley force-pushed the remove-old-checksums branch from 4b0a44b to fe66883 Compare December 4, 2023 04:26
@dralley dralley force-pushed the remove-old-checksums branch from fe66883 to f48ca86 Compare December 4, 2023 04:49
@dralley dralley requested a review from ipanova December 4, 2023 15:01
@dralley dralley merged commit 91d9030 into pulp:main Dec 5, 2023
15 checks passed
@dralley dralley deleted the remove-old-checksums branch December 5, 2023 14:21
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