envoyproxy / envoy

Cloud-native high-performance edge/middle/service proxy
https://www.envoyproxy.io
Apache License 2.0
24.69k stars 4.75k forks source link

OAuth2 filter: stores sessions in Redis #35233

Closed zhaohuabing closed 1 week ago

zhaohuabing commented 1 month ago

Title: OAuth2 filter: stores sessions in Redis

Description:

Describe the desired behavior, what scenario it enables and how it would be used.

The OAuth2 filter currently stores the bearer token and ID token in user agents using secure cookies, with HMAC verification of the tokens. Storing tokens in a server-side Redis cache can provide a better security gesture.

The possible implementation approach:

[optional Relevant Links:]

Any extra documentation required to understand the issue.

Alternative: Encrypting the cookies can also enhance the security of the tokens.

@arkodg @missBerg

KBaichoo commented 1 month ago

cc @mattklein123 @derekargueta

arkodg commented 1 month ago

cc @cpakulski who looked into the feasibility of this

derekargueta commented 1 month ago

yeah I've thought of this, similar oauth-proxy. would be pretty neat, I also think it'd be the first use-case in Envoy of Redis for feature functionality and not just proxying.

github-actions[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 week ago

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.