-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Allocate mux in master.New() #2044
Conversation
@smarterclayton this may affect you. Actually, I'd like to take this one step further and have Master be responsible for allocating the mux.
Will that work for you? |
|
I'll try it once you have working code just to be sure in case I missed something. |
Callsites no longer allocate a mux. Master now exposes method to install handlers which use the master's auth code. Not used but forks (openshift) are expected to use these methods. These methods will later be a point for additional plug-in functionality. Integration tests now use the master-provided handler which has auth, rather than using the mux, which didn't. Fix TestWhoAmI now that /_whoami sits behind auth.
Okay. New stuff to look at. I think the story about plugins and auth is getting slightly clearer. |
@smarterclayton PTAL |
LGTM |
Will merge shortly |
Allocate mux in master.New()
OCPBUGS-35297: UPSTREAM: 126470: Move APIServingWithRoutine to alpha and disabled by default
Master installs auth in front of other handlers,
but code that uses the master was not giving
this handler to the http servers.
Fix test, now that /_whoami sits behind auth.