Sync ext auth server config into envoy when virtualhost authPolicy is disabled#7468
Conversation
|
Hi @LittleLittleLittleBoy! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7468 +/- ##
=======================================
Coverage 81.84% 81.84%
=======================================
Files 130 130
Lines 15722 15722
=======================================
Hits 12868 12868
Misses 2571 2571
Partials 283 283
🚀 New features to boost your workflow:
|
|
The Contour project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
|
Hi @LittleLittleLittleBoy, thank you for your contribution and apologies for the delay. Please add a sign-off to your commit and include a changelog file at |
problem
When setting external auth server in virtualhost. Under this virtualhost, there are many service under this virtualhost, and we just want to set up auth server for one service
the root httpproxy:
the route level:
After this config, we found auth service config didn't sync auth server config to envoy when the
httpproxy.Spec.VirtualHost.Authorization.disabled==trueFrom route config Contour support to use route level config overwrite virtualhost or global config.
But it only support when virtualhost is disabled:false, and route disabled:true.
Solution
remove this
httpproxy.Spec.VirtualHost.Authorization.disabled==truecheck to allow contour always sync ext auth server config into envoy. And route can overwrite this disabled flag when aythorization is disbaled in vistualhost .