Skip to content

Add stdlib::crc32 #1288

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

Merged
merged 1 commit into from
Jan 4, 2023
Merged

Add stdlib::crc32 #1288

merged 1 commit into from
Jan 4, 2023

Conversation

jcpunk
Copy link
Contributor

@jcpunk jcpunk commented Dec 28, 2022

CRC32 is a handy way to run trivial checks against values. Unlike the SHA hashing series generating collisions is fairly trivial which makes it useful for describing secret data in a public manner. For example, "Is you app using secret 18fbd270 or 7d5469f0" cannot possibly be used to reconstruct the secret but does permit concrete conversation about the secret itself. This can be further useful when the developers do not have direct access to the secret in question.

It is also handy for establishing an application specific shared seed across multiple hosts, for establishing trivial user sharding, or other applications where uniqueness is not actually an asset.

@jcpunk jcpunk requested a review from a team as a code owner December 28, 2022 17:06
@puppet-community-rangefinder
Copy link

stdlib::crc32 is a function

that may have no external impact to Forge modules.

This module is declared in 318 of 580 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@chelnak chelnak merged commit 0486091 into puppetlabs:main Jan 4, 2023
@jcpunk jcpunk deleted the crc32 branch January 4, 2023 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants