Skip to content

dynamic forward proxy #11197

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

Merged
merged 19 commits into from
Jun 4, 2025
Merged

dynamic forward proxy #11197

merged 19 commits into from
Jun 4, 2025

Conversation

yuval-k
Copy link
Contributor

@yuval-k yuval-k commented May 10, 2025

Description

Add support for dynamic forward proxy.

Fixes #11326
Fixes #11312

Change Type

/kind feature

Changelog

Add support for dynamic forward proxy.

Additional Notes

N/A

yuval-k added 3 commits May 10, 2025 17:37
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
yuval-k added 5 commits May 13, 2025 14:08
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
@yuval-k yuval-k marked this pull request as ready for review May 28, 2025 18:20
@yuval-k yuval-k mentioned this pull request May 28, 2025
yuval-k added 3 commits May 30, 2025 14:28
…rd-proxy

Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
@yuval-k yuval-k enabled auto-merge May 31, 2025 11:08
@github-actions github-actions bot added kind/feature Categorizes issue or PR as related to a new feature. release-note labels Jun 2, 2025
yuval-k added 5 commits June 2, 2025 15:53
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
…rd-proxy

Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
@@ -365,6 +375,11 @@ func (p *backendPlugin) HttpFilters(ctx context.Context, fc ir.FilterChainCommon
}
result = append(result, aiFilters...)
}
if p.needsDfpFilter[fc.FilterChainName] {
pluginStage := plugins.DuringStage(plugins.OutAuthStage)
f, _ := plugins.NewStagedFilter("envoy.filters.http.dynamic_forward_proxy", dfpFilterConfig, pluginStage)
Copy link
Contributor

Choose a reason for hiding this comment

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

if we're ignoring the error, should we use MustNewStagedFilter?

// The hostname will be used for SNI and auto SAN validation.
// +optional
// +kubebuilder:validation:Optional
Tls bool `json:"tls,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe rename to useTls or enableTls?


var _ e2e.NewSuiteFunc = NewTestingSuite

// testingSuite is a suite of tests for ExtAuth functionality
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// testingSuite is a suite of tests for ExtAuth functionality
// testingSuite is a suite of tests for Dynamic Forward Proxy functionality

})
}

// TestExtAuthPolicy tests the basic ExtAuth functionality with header-based allow/deny
Copy link
Contributor

Choose a reason for hiding this comment

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

update comment

yuval-k added 3 commits June 4, 2025 15:42
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
@yuval-k yuval-k added this pull request to the merge queue Jun 4, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 4, 2025
@jenshu jenshu added this pull request to the merge queue Jun 4, 2025
Merged via the queue into main with commit 78df7d9 Jun 4, 2025
20 checks passed
@jenshu jenshu deleted the yuval-k/dynamic-forward-proxy branch June 4, 2025 22:13
jenshu pushed a commit to jenshu/kgateway that referenced this pull request Jun 5, 2025
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Signed-off-by: Jenny Shu <jenny.shu@solo.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support dynamic forward proxy Add support to translator tests for CDS & EDS
2 participants