Skip to content

stateful_session: Add Header based session state - #23145

Merged
wbpcode merged 21 commits into
envoyproxy:mainfrom
Pawan-Bishnoi:header_based_session_state
Oct 11, 2022
Merged

wbpcode merged 21 commits into
envoyproxy:mainfrom
Pawan-Bishnoi:header_based_session_state

Conversation

@Pawan-Bishnoi

@Pawan-Bishnoi Pawan-Bishnoi commented Sep 16, 2022 •

Copy link
Copy Markdown
Contributor

Commit Message: "stateful_session: Add Header based session state"

Additional Description:
Envoy already supports cookie based state management for sticky sessions.
This PR adds one more option - header based state management (as discussed here).
The header name is configurable via API.
The responsibility to pass the said header with every request falls on the client.
The rest of the behaviour is consistent with the cookie based approach.
Path match is only available via StatefulSessionPerRoute.

(Reviewers may refer the existing cookie based implementation while reviewing this)

Risk Level: Low
Testing: Unit & Integration tests added.
Docs Changes: Added.
Release Notes: Waiting.
Platform Specific Features: N/A
Fixes #22475

API Considerations:

  1. Looking for guidance on this point.
    I have kept the new proto files in this repo to keep them consistent with the cookie based approach.
  2. Could not find any guidance about updating the codeowners file, please see if that needs to be corrected.

@repokitteh-read-only

Copy link
Copy Markdown

Hi @Pawan-Bishnoi, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #23145 was opened by Pawan-Bishnoi.

see: more, trace.

@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @lizan
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #23145 was opened by Pawan-Bishnoi.

see: more, trace.

Comment thread api/envoy/type/http/v3/header.proto Resolved
inline the config instead
Fix Intg test

Signed-off-by: Pawan Bishnoi <[email protected]>
@Pawan-Bishnoi
Pawan-Bishnoi requested review from lizan and removed request for wbpcode September 27, 2022 04:13

@lizan lizan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you fix CI failures?

/wait

Signed-off-by: Pawan Bishnoi <[email protected]>
@Pawan-Bishnoi

Copy link
Copy Markdown
Contributor Author

done @lizan
Ptal.

@Pawan-Bishnoi
Pawan-Bishnoi requested a review from lizan September 29, 2022 03:48

@lizan lizan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, @wbpcode for final merge.

/lgtm api

@repokitteh-read-only repokitteh-read-only Bot removed the api label Oct 4, 2022
@Pawan-Bishnoi

Copy link
Copy Markdown
Contributor Author

@wbpcode ptal.

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM overall. Thanks. Only a minor comment.

@wbpcode

wbpcode commented Oct 10, 2022

Copy link
Copy Markdown
Member

/wait-any

Signed-off-by: Pawan Bishnoi <[email protected]>

@wbpcode wbpcode left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks.

@wbpcode
wbpcode self-requested a review October 11, 2022 02:22

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM for almost everything. Thanks. 🌹
could you also add a release note for this change?

Comment thread changelogs/current.yaml Resolved
@Pawan-Bishnoi
Pawan-Bishnoi requested a review from wbpcode October 11, 2022 07:37

@wbpcode wbpcode left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks.

@wbpcode
wbpcode merged commit e2aa62a into envoyproxy:main Oct 11, 2022
@Pawan-Bishnoi
Pawan-Bishnoi deleted the header_based_session_state branch October 11, 2022 09:08
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.

Support for header based stateful session

4 participants