-
Notifications
You must be signed in to change notification settings - Fork 224
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: SetExtension cannot override core attributes #720
Conversation
Up for discussion: Where can I reference the |
v2/event/extensions.go
Outdated
} | ||
|
||
// TODO: not safe, can be bypassed with a ce-ce- prefix | ||
trimmed := strings.TrimPrefix(key, "ce-") |
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.
not needed, if the key has a -
it is not a valid extension per the test on 70.
are you going to do the todos here or a follow up? |
Sorry, sorry. Any ideas on the second comment instead of reinventing the event attributes wheel? |
785d926
to
52095dc
Compare
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.
looks good, one nit:
Closes: cloudevents#709 Signed-off-by: Michael Gasch <mgasch@vmware.com>
Fail if
SetExtension
is called with a core attribute.TODO:
V03
Closes: #709
Signed-off-by: Michael Gasch mgasch@vmware.com