-
Notifications
You must be signed in to change notification settings - Fork 976
rec: add REST interface for manipulating Open Telemetry Trace Conditions #16727
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
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
|
I explicitly picked something else than URL-encoded, to prevent the common failure where %2F gets turned into a /, breaking domains with a / in them. |
Pull Request Test Coverage Report for Build 21241657418Details
💛 - Coveralls |
Thanks, we also discussed this internally and I understand the reasoning now. Will adapt the code and docs. |
|
(In parameters you can/should still URL-encode the zoneid, so i doubt it matters?) |
|
Setting to draft while reworking the subnet handling to use |
…auth does Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Co-authored-by: Miod Vallat <miod.vallat@powerdns.com> Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
1f735f6 to
2fca888
Compare
Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
Co-authored-by: Miod Vallat <miod.vallat@powerdns.com> Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
miodvallat
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.
LGTM
Short description
While working on this I noticed a bug in the condition evaluation, which I fixed in the: Fix case where there are ot conditions, but none matches commit.
I also noticed that Zones use quoted-printable encoding for ids (a slash becomes=2F). I found that strange as, one would expect to see URL encoded values (a slash becomes%2F). Note that quoted-printable encoding is NOT safe to use in the parameter part of a URL. While we do not use query parameters like that in this code, I decided that using URL encoding would be both safe and expected. So encoding a subnet1.2.3.0/24(OT Trace Conditions are keyed by subnet) looks like:/api/v1/servers/localhost/ottraceconditions/1.2.3.0%2F24.@Habbie @zeha Do you agree? I's too late to change the encoding for zone ids now, but IMO we should do the right thing for new functionality.Update: reworked to code, tests and docs to use
ip/prefixlenfor subnets as two path components, as auth does.Checklist
I have: