-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: Commit log special key bug #2115
Merged
Merged
Changes from 5 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3ea9883
fix: special key bug fix
murali-shris e42136a
fix: pubspec change to test persistence in server
murali-shris 9ddbacb
fix: sync unit test assertion change
murali-shris 1a09a6d
fix: changes to publish persistence
murali-shris ee4edd8
Merge branch 'trunk' into commit_log_special_key_bug
murali-shris 719ab2b
fix: add at_commons dependency overrides
murali-shris 494d497
Merge branch 'commit_log_special_key_bug' of https://github.com/atsig…
murali-shris 011c9f0
fix: add at_commons dependency overrides
murali-shris 17190dd
fix: added test and doc for _acceptKey
murali-shris 0411139
Merge branch 'trunk' into commit_log_special_key_bug
murali-shris 498c51c
fix: modified pubspec and change
murali-shris f1df357
Merge branch 'commit_log_special_key_bug' of https://github.com/atsig…
murali-shris 69ec2c2
fix: added test for public key without namespace
murali-shris c22e236
Merge branch 'trunk' into commit_log_special_key_bug
murali-shris 3ea497f
fix: rename methods
murali-shris e670ee8
Merge branch 'commit_log_special_key_bug' of https://github.com/atsig…
murali-shris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
contains AtConstants.atEncryptionSharedKey
check is also a bug. Why are we treating keys that contain "shared_key" as special?And if we are treating them as special for good reason, we should specifically only match
shared_key\..*@this_atservers_at_sign
or@some_other_atsign:shared_key@this_servers_at_sign
(precise regexes are in at_commons inRegexes._reservedKeysWithAtsignSuffix
) ... currently this code would also match keys likeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@murali-shris I don't see a good explanation for why we are not treating the two reserved shared_key variants as 'special' which (as I understand it) would result in those keys not being synced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh - ignore that last comment. I understand it now. This ensures that those keys are synced, regardless of whether they match the enrollment namespace or not.