-
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
Policy: MTLS upstream policy #1182
Conversation
240b79b
to
2f6b062
Compare
This PR should be reviewed with this PR: |
378b601
to
81f40dc
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.
Some suggestions.
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 can't comment on 3scale/apicast-nginx-module#1 because I'm not familiar with the code base. I trust you with that :)
This PR looks good 👍
{ | ||
"$schema": "http://apicast.io/policy-v1.1/schema#manifest#", | ||
"name": "Upstream MTLS", | ||
"summary": "foo", |
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.
👀
"$schema": "http://apicast.io/policy-v1.1/schema#manifest#", | ||
"name": "Upstream MTLS", | ||
"summary": "foo", | ||
"description": "foo", |
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.
👀
By default, at the moment if a user wants to use MTLS with the upstream API, the only way is using `APICAST_PROXY_SSL_CERTIFICATE`, and this certificate will be used in all services. With this policy, that includes an Nginx patch, and a new Nginx-module, different client certificates can be used by service, so one APICast instance can host more than MTLS connections to different upstreams. Signed-off-by: Eloy Coto <[email protected]>
Signed-off-by: Eloy Coto <[email protected]>
Signed-off-by: Eloy Coto <[email protected]>
With the update, exclusiveM* functions are now checked and some unit tests failed due to invalid data. Also set window to min 0, because test: `TEST 22: Window is set to 0 and default is 1.` is already checking this. Signed-off-by: Eloy Coto <[email protected]>
Signed-off-by: Eloy Coto <[email protected]>
Co-Authored-By: porueesq <[email protected]>
By default, at the moment if a user wants to use MTLS with the upstream
API, the only way is using
APICAST_PROXY_SSL_CERTIFICATE
, and thiscertificate will be used in all services.
With this policy, that includes an Nginx patch, and a new Nginx-module,
different client certificates can be used by service, so one APICast
instance can host more than MTLS connections to different upstreams.
Signed-off-by: Eloy Coto [email protected]