Skip to content

use hashlib instead of shelling out to generate a server_id#57415

Merged
dwoz merged 4 commits intosaltstack:masterfrom
dhiltonp:server_id_hashlib
May 22, 2020
Merged

use hashlib instead of shelling out to generate a server_id#57415
dwoz merged 4 commits intosaltstack:masterfrom
dhiltonp:server_id_hashlib

Conversation

@dhiltonp
Copy link
Contributor

What does this PR do?

Streamlines get_server_id, generating the hash inside the current process.

Commits signed with GPG?

Yes/No

@dhiltonp dhiltonp requested a review from a team as a code owner May 21, 2020 16:33
@ghost ghost requested review from cmcmarrow and removed request for a team May 21, 2020 16:33
cmcmarrow
cmcmarrow previously approved these changes May 21, 2020
@dwoz dwoz added the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label May 21, 2020
@dhiltonp
Copy link
Contributor Author

dhiltonp commented May 22, 2020

This change would alter server_id. I chose sha256, while the previous implementation used SipHash24.

@dwoz dwoz removed the needs-testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label May 22, 2020
@dwoz dwoz merged commit e30ee89 into saltstack:master May 22, 2020
@dhiltonp dhiltonp deleted the server_id_hashlib branch May 22, 2020 09:14
@sagetherage sagetherage added the ZRelease-Sodium retired label label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ZRelease-Sodium retired label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants