Skip to content

api config: Refactor jwt_auth filter config#3428

Closed
nickrmc83 wants to merge 1 commit intoenvoyproxy:masterfrom
ThalesIgnite:master
Closed

api config: Refactor jwt_auth filter config#3428
nickrmc83 wants to merge 1 commit intoenvoyproxy:masterfrom
ThalesIgnite:master

Conversation

@nickrmc83
Copy link
Contributor

Signed-off-by: Nick A. Smith nick.a.smith@thales-esecurity.com

Description:
This is the first in a series of PRs for introducing OpenID Connect (OIDC) and Session Management filters to envoy. The primary goal of this PR is to split the istio jwt_authn filter's configuration API in two. The reason for this is to isolate the JWT verification code from the forwarding rules thus making it easier to re-use the verification logic in multiple filters.

Refactor jwt_auth filter config to aid re-usability of the JWT verification code in new OIDC filter.

Added initial OpenID Connect Filter config defintions. These are subject to change.

Design drafts and previous discussion from the istio-sec WG:

Risk Level: Medium

Testing:
NA

Docs Changes:
None

This is the first in a series of PRs for introducing OpenID Connect and Session Management filters to envoy.

Refactor jwt_auth filter config to aid re-usability of the JWT
verification code in new OIDC filter.

Added initial OpenID Connect Filter config defintions. These are subject to change.

Design drafts and previous discussion from the istio-sec WG:
- https://docs.google.com/document/d/1mGpUsRgmA9wPB73trfTiB9YUuwYh-31iulYg9USxe0Y/edit?usp=sharing
- https://docs.google.com/document/d/1oRoHt0iDBYRd_ETEtGJiNLhV1dKWMNgC6EvZAGmNcgk/edit?usp=sharing

Signed-off-by: Nick A. Smith <nick.a.smith@thales-esecurity.com>
@@ -0,0 +1,243 @@
syntax = "proto3";

package envoy.config.filter.http.common.v1alpha;
Copy link
Member

Choose a reason for hiding this comment

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

super quit drive by nit: Please put this in a more specific namespace/file/directory than "envoy.config.filter.http.common.v1alpha"

@qiwzhang
Copy link
Contributor

Hi @nickrmc83

The jwt_authn config is here now
https://github.com/envoyproxy/envoy/blob/master/api/envoy/config/filter/http/jwt_authn/v2alpha/config.proto

I also have a PR: #3381
to modify it.

Please rebase your change to them

@nickrmc83
Copy link
Contributor Author

@qiwzhang once #3381 has been merged I'll rebase. Until then do you have any feedback on splitting the verification and forwarding rules into their own separate stanza within config?

@alyssawilk
Copy link
Contributor

Looks like this hasn't been touched in a bit. Nick, any objection if we close this off for now, and you can reopen when it's ready for another look?

@nickrmc83
Copy link
Contributor Author

nickrmc83 commented May 29, 2018 via email

@alyssawilk alyssawilk closed this May 29, 2018
@dmadams
Copy link

dmadams commented Aug 31, 2018

Hi @nickrmc83 I was wondering where this was at. Are you still working on this? We are also interested in introducing OIDC to Envoy.

@nickrmc83
Copy link
Contributor Author

nickrmc83 commented Aug 31, 2018 via email

@nickrmc83
Copy link
Contributor Author

And https://github.com/ThalesIgnite/proxy/tree/gitlab/src/envoy/http/oidc is a PoC implementation that is being productized

@dmadams
Copy link

dmadams commented Aug 31, 2018

@nickrmc83 Thank you.

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.

5 participants