-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[KS-421] Improve logging from remote capabilities #14058
Conversation
I see you updated files related to
|
89f7b8b
to
24ae22b
Compare
24ae22b
to
e613003
Compare
Add validations and sanitizing
e613003
to
d5431dd
Compare
messageID := target.GetMessageID(msg) | ||
messageID, err := target.GetMessageID(msg) | ||
if err != nil { | ||
panic(err) |
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.
nit: t.Fatal instead?
Quality Gate passedIssues Measures |
return err == nil | ||
} | ||
|
||
// Trigger event IDs and message IDs can only contain printable characters and must be non-empty |
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.
Out of curiosity, is there a reason why we can't have the same ID validation as above? Namely, could Trigger event IDs and message IDs also be 32-byte hex-encoded strings?
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.
Currently trigger event IDs are human readable, e.g. "streams_123456890" and I think that makes it debug-friendly. As for Message IDs we could probably impose some extra restriction ...
Add validations and sanitizing