Skip to content

Add hmac_compute (Repost of #54164)#55506

Merged
dwoz merged 5 commits into
saltstack:masterfrom
Ajnbro:hmac-compute
Dec 13, 2019
Merged

Add hmac_compute (Repost of #54164)#55506
dwoz merged 5 commits into
saltstack:masterfrom
Ajnbro:hmac-compute

Conversation

@Ajnbro

@Ajnbro Ajnbro commented Dec 3, 2019

Copy link
Copy Markdown
Contributor

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

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

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

Ajnbro commented Dec 5, 2019

Copy link
Copy Markdown
Contributor Author

@waynew All done :)

@waynew waynew left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread salt/modules/hashutil.py Outdated
Comment thread salt/modules/hashutil.py Outdated
Comment thread salt/utils/hashutils.py Outdated
@Ajnbro Ajnbro requested a review from dwoz December 10, 2019 15:21
@Akm0d

Akm0d commented Dec 13, 2019

Copy link
Copy Markdown
Contributor

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