-
Notifications
You must be signed in to change notification settings - Fork 242
Validate message topics/tag before sending #365
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
Conversation
Currently these fields are verified only by the receiver, which can lead to sending a bad message that is rejected on the other end. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Codecov Report
@@ Coverage Diff @@
## main #365 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 239 239
Lines 12888 12884 -4
=========================================
- Hits 12888 12884 -4
Continue to review full report at Codecov.
|
|
Looks like on Fabric, we generate an invalid topic name for org broadcasts. Not sure why it was working before - perhaps we're not doing the receiver-side validation of messages when dealing with org broadcasts? Seems like that should be in effect for all messages, including system definitions. |
|
After further investigation, there are actually a few layers of problems here.
|
Currently "names" and UUIDs are mutually exclusive in all cases - but this was overly broad. New behavior is outlined below. Some "named" objects already have an ID - therefore it's confusing to allow their name to also be a UUID. These objects still cannot be named with a UUID: - organizations - nodes - groups - subscriptions - datatypes - token pools For "name" fields that are simple strings, there is no confusion in setting them to a UUID, and in fact a UUID may be a good choice in some scenarios. These fields can be a UUID: - namespaces - topics - tags Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
|
Pushed additional fixes for the issues noted above. See each commit message for more details. |
peterbroadhurst
left a comment
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.
Noting this contains a material change, that organizations are now all published on a common ff_organizations topic.
Currently these fields are verified only by the receiver, which can lead to
sending a bad message that is rejected on the other end.