-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
genericapiserver: turn APIContainer.SecretRoutes into a real ServeMux #38826
genericapiserver: turn APIContainer.SecretRoutes into a real ServeMux #38826
Conversation
SecretRoutes Mux | ||
|
||
// SecretRoutes are not recorded, are not visible at / and do not show up in Swagger. | ||
SecretRoutes *http.ServeMux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we record this so that we can later call HandledPaths
?
Also, the name is bad. AuthzProtectedRouted
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are all protected in the HandlerContainer.
The SecretRoutes are not recorded because they are secret ;-) They don't show up anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Find a better name while you're in here with it. I didn't/don't know what this is other than its behind authz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnlistedRoutes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NotListedRoutes? InvisibleRoutes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnlistedRoutes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to UnlistedRoutes. That's a lgtm from you?
66769dd
to
ec79791
Compare
Jenkins Bazel Build failed for commit ec79791c68d4e768797489615537442e958c55e6. Full PR test history. The magic incantation to run this job again is |
Jenkins unit/integration failed for commit ec79791c68d4e768797489615537442e958c55e6. Full PR test history. The magic incantation to run this job again is |
Jenkins verification failed for commit ec79791c68d4e768797489615537442e958c55e6. Full PR test history. The magic incantation to run this job again is |
ec79791
to
e49fb2f
Compare
lgtm |
Automatic merge from submit-queue |
The secret routes
Mux
is actually ahttp.ServeMux
and we are type-casting to it. For downstream we want to wrap it into a restful container which also needs a realhttp.ServeMux
.