Skip to content
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

Merged
merged 6 commits into from
May 7, 2020
Merged

Policy: MTLS upstream policy #1182

merged 6 commits into from
May 7, 2020

Conversation

eloycoto
Copy link
Contributor

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]

@eloycoto eloycoto requested a review from a team as a code owner March 21, 2020 18:51
@eloycoto eloycoto force-pushed the UPstreamTLS branch 2 times, most recently from 240b79b to 2f6b062 Compare March 21, 2020 19:50
@eloycoto
Copy link
Contributor Author

This PR should be reviewed with this PR:
https://github.com/3scale/apicast-nginx-module/pull/1/files

@eloycoto eloycoto force-pushed the UPstreamTLS branch 4 times, most recently from 378b601 to 81f40dc Compare April 3, 2020 07:01
@eloycoto eloycoto requested a review from a team as a code owner April 3, 2020 07:01
Copy link
Contributor

@porueesq porueesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions.

Copy link
Contributor

@davidor davidor left a 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",
Copy link
Contributor

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

eloycoto added 3 commits May 7, 2020 11:55
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]>
eloycoto added 2 commits May 7, 2020 16:57
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]>
@eloycoto eloycoto merged commit c2de799 into 3scale:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants