Sync ext auth server config into envoy when virtualhost authPolicy is disabled#7468
Open
LittleLittleLittleBoy wants to merge 1 commit intoprojectcontour:mainfrom
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:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 .