-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(router): enable net.src.*
and net.dst.*
in http expression
#11950
Conversation
dc8625a
to
f26801a
Compare
2b2741d
to
9357315
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.
I feel this deprecation is more properly done from the ATC router side. What do you think?
Also, we should split this into 2 PRs, to let the title be precise. |
No, atc-router library has no schema definition, we only define schema here. |
Perhaps we can not do this, adding |
@StarlightIbuki Please review again. We need a temporary solution for deprecation. Considering the limited use case of expressions, I doubt we need to make the migration that fancy. I'm okay with a solution that doesn't understand the syntax. |
105f1e9
to
2ed23bc
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.
A minor suggestion on performance. Otherwise good enough.
2ed23bc
to
9a354b7
Compare
net.src.*
and net.dst.*
in expressionnet.src.*
and net.dst.*
in http expression
changelog/unreleased/kong/support_net_src_dst_field_in_expression.yml
Outdated
Show resolved
Hide resolved
convert net.port basic hash match src_ip/port cache key remove net.port verify_expression verify expression more verify_expression verify_expression change basic fields stream exec() http select() test net.dst.port expression work with net.port deprecate_net_port_and_rework_cache_algo.yml tune tests fix stream tests lint fix net.src.ip & net.dst.ip schema validation tests more tests spy.on for log warning finally restore spy.on gsub net.port == fix lint error verify_expression ngx.re.gsub NET_PORT_REPLACE changelog regex optimization changelog revert some code
f0699ac
to
609c59c
Compare
Is this ready to merge, or are we waiting for any reason? |
Successfully created cherry-pick PR for |
Summary
KAG-2963
KAG-3032
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdFull changelog
Issue reference
Fix #[issue number]