-
Notifications
You must be signed in to change notification settings - Fork 170
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
[THREESCALE-5105] Adding support for mtls when using proxy policy #1499
Conversation
177e243
to
2da00ed
Compare
2da00ed
to
a708c22
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.
Excellent job 🎖️
Few comments, but overall LGTM
@@ -0,0 +1,91 @@ | |||
local base = require "resty.core.base" |
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.
Please ignore codecov report. I will move tls.lua to apicast-nginx-module in the future commit.
Do we plan to move this file (and content) to the apicast-nginx-module??
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.
Yes, I'm planing to replace https://github.com/3scale/apicast-nginx-module/blob/master/lib/resty/mtls.lua with the content of this tls.lua
file. This makes it easier to test for patches, memory leaks...etc.
"name": "apicast.policy.apicast" | ||
}, | ||
{ | ||
"name": "apicast.policy.http_proxy", |
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: shouldn't be the apicast policy the last one?
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.
They run at different phases so the order is not important. But I updated the PR 😄
Verification steps working like a charm |
a708c22
to
d0c557a
Compare
What
Fix https://issues.redhat.com/browse/THREESCALE-5105
NOTE
Please ignore codecov report. I will move tls.lua to apicast-nginx-module in the future commit.
Verification steps:
apicast-config.json
file as follow