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

Add hmac_compute (Repost of #54164) #55506

Merged
merged 5 commits into from
Dec 13, 2019
Merged

Add hmac_compute (Repost of #54164) #55506

merged 5 commits into from
Dec 13, 2019

Conversation

Ajnbro
Copy link
Contributor

@Ajnbro Ajnbro commented Dec 3, 2019

What does this PR do?

Creates a util and a module called hmac_compute for computing a HMAC SHA256 hexdigest using a string and secret. Additionally, it updates the base64_encodestring and base64_decodestring util and module functions so that they are compatible with Python 3. This was previously accepted and labeled as merge ready in the PR referenced below; however, it was just closed because it was opened against the develop branch.

What issues does this PR fix or reference?

#54164

Tests written?

Yes

Commits signed with GPG?

Yes

@Ajnbro Ajnbro requested a review from a team as a code owner December 3, 2019 22:09
@ghost ghost requested a review from Akm0d December 3, 2019 22:10
@Akm0d Akm0d self-assigned this Dec 4, 2019
@Akm0d Akm0d added this to the Approved milestone Dec 4, 2019
@Akm0d Akm0d requested a review from waynew December 4, 2019 22:01
Copy link
Contributor

@waynew waynew left a comment

Choose a reason for hiding this comment

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

If this is going into master, in particular if it's targeted to land before Sodium, we'll need to update this PR to maintain Python2 compatibility.

@Ajnbro Ajnbro requested a review from waynew December 5, 2019 15:59
@Ajnbro
Copy link
Contributor Author

Ajnbro commented Dec 5, 2019

@waynew All done :)

Copy link
Contributor

@waynew waynew left a comment

Choose a reason for hiding this comment

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

Looks good, just needs a rebase onto master

salt/modules/hashutil.py Outdated Show resolved Hide resolved
salt/modules/hashutil.py Outdated Show resolved Hide resolved
salt/utils/hashutils.py Outdated Show resolved Hide resolved
@Ajnbro Ajnbro requested a review from dwoz December 10, 2019 15:21
@Akm0d
Copy link
Contributor

Akm0d commented Dec 13, 2019

re-run full macosxmojave

@dwoz dwoz merged commit 73b8ce0 into saltstack:master Dec 13, 2019
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.

4 participants