Skip to content

feat: path_rewrite redirect action#44920

Open
rudrakhp wants to merge 2 commits into
envoyproxy:mainfrom
rudrakhp:redirect_path_format
Open

feat: path_rewrite redirect action#44920
rudrakhp wants to merge 2 commits into
envoyproxy:mainfrom
rudrakhp:redirect_path_format

Conversation

@rudrakhp
Copy link
Copy Markdown
Member

@rudrakhp rudrakhp commented May 7, 2026

Commit Message: feat: path_rewrite redirect action
Additional Description: Implement support for a new path_rewrite redirect action that supports substitution and CEL formatting to set the new URI for redirect.
Risk Level: Low (new feature)
Testing: Unit testing
Docs Changes: N/A
Release Notes: Yes
Fixes: #44844

@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 @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #44920 was opened by rudrakhp.

see: more, trace.

@rudrakhp rudrakhp force-pushed the redirect_path_format branch from b44c613 to 91da421 Compare May 9, 2026 17:46
@rudrakhp rudrakhp force-pushed the redirect_path_format branch from 91da421 to 52888d7 Compare May 21, 2026 03:52
Signed-off-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
@rudrakhp rudrakhp force-pushed the redirect_path_format branch from 52888d7 to 73ae45b Compare May 21, 2026 03:52
// Would redirect to ``/new/v2`` given a request header ``x-version: v2``.
// If the substitution produces an empty string the path redirect is ignored
// and the original path is preserved.
string path_redirect_format = 10;
Copy link
Copy Markdown
Member

@wbpcode wbpcode May 21, 2026

Choose a reason for hiding this comment

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

Just call it path_rewrite because we have supported prefix_rewrite, regex_rewrite here, and it should be good to call new field as path_rewrite like our RouteAction.path_rewrite

Signed-off-by: Rudrakh Panigrahi <rudrakh97@gmail.com>
@rudrakhp rudrakhp changed the title feat: path_redirect_format redirect action feat: path_rewrite redirect action May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Substitution/CEL formatting support in redirect path

3 participants