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

feat!: update key manager hasher labels #6329

Merged

Conversation

AaronFeickert
Copy link
Collaborator

@AaronFeickert AaronFeickert commented May 7, 2024

Description

Updates key manager hasher labels used in cipher seeds. Improves the ordering of MAC input data.

Closes #6328.

Motivation and Context

The hasher labels used for cipher seeds are vaguely named, which seems like an unnecessary footgun. This PR updates them, incrementing to a new cipher seed version.

We also take the opportunity of a new version to reorganize how cipher seed MAC input data is ordered; specifically, we move the version byte to the front, which is more in line with its use elsewhere. This doesn't impose any particular security concerns (the MAC input data is never directly parsed), but had a bad smell.

How Has This Been Tested?

Tests pass.

What process can a PR reviewer use to test or verify this change?

Check that the naming change and reordering do what they say on the tin.

Breaking Changes

Because the library only supports the most recent cipher seed version, existing cipher seeds will fail to decrypt.

BREAKING CHANGE: Changes the construction of cipher seeds via a new version; older cipher seeds will fail to decrypt.

@AaronFeickert AaronFeickert requested a review from a team as a code owner May 7, 2024 18:27
Copy link

github-actions bot commented May 7, 2024

Test Results (CI)

    3 files    120 suites   46m 18s ⏱️
1 277 tests 1 277 ✅ 0 💤 0 ❌
3 823 runs  3 823 ✅ 0 💤 0 ❌

Results for commit f30a922.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels May 7, 2024
Copy link

github-actions bot commented May 7, 2024

Test Results (Integration tests)

 2 files  11 suites   36m 57s ⏱️
33 tests 30 ✅ 0 💤 3 ❌
37 runs  32 ✅ 0 💤 5 ❌

For more details on these failures, see this check.

Results for commit f30a922.

♻️ This comment has been updated with latest results.

@SWvheerden SWvheerden changed the title chore: update key manager hasher labels feat!: update key manager hasher labels May 8, 2024
@ghpbot-tari-project ghpbot-tari-project added the P-conflicts Process - The PR has merge conflicts that need to be resolved label May 8, 2024
SWvheerden
SWvheerden previously approved these changes May 8, 2024
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label May 8, 2024
@ghpbot-tari-project ghpbot-tari-project removed the P-conflicts Process - The PR has merge conflicts that need to be resolved label May 8, 2024
@ghpbot-tari-project ghpbot-tari-project added the P-reviews_required Process - Requires a review from a lead maintainer to be merged label May 8, 2024
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label May 9, 2024
@SWvheerden SWvheerden merged commit ae63bab into tari-project:development May 9, 2024
14 of 16 checks passed
@AaronFeickert AaronFeickert deleted the key-manager-hasher-labels branch May 9, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use better naming for key manager domain separators
3 participants