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

AuthorMapping: fix self key rotation #1086

Merged
merged 3 commits into from
Dec 16, 2021
Merged

Conversation

JoshOrndorff
Copy link
Contributor

This PR fixes a bug where calling AuthorMapping.updateAssociation(a, a) where the same NimbusId is used for both the old and new ids, caused the mapping to be removed.

While there is no valid use case for making such a call, it's clear that the semantics should be leaving the association unchanged (or perhaps erroring).

Also adds a test for this case.

@JoshOrndorff JoshOrndorff added A0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes C1-low Does not elevate a release containing this beyond "low priority". labels Dec 15, 2021
@crystalin crystalin added A8-mergeoncegreen Pull request is reviewed well. and removed A0-pleasereview Pull request needs code review. labels Dec 16, 2021
@JoshOrndorff JoshOrndorff merged commit 3820b18 into master Dec 16, 2021
@JoshOrndorff JoshOrndorff deleted the joshy-fix-self-key-rotation branch December 16, 2021 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A8-mergeoncegreen Pull request is reviewed well. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes C1-low Does not elevate a release containing this beyond "low priority".
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants