Repository navigation
Add an authorizing proxy for a backing Kube - #839
Conversation
6748cc9 to
47ad146
Compare
|
This needs an upstream change to split our registration into two restful.Containers, one for secured and one for not. |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_openshift3/938/) |
47ad146 to
b4a8120
Compare
There was a problem hiding this comment.
This looks a little weird. Is this restricting me to only being able to do a get for my own user? I would have expected that requesting a different user's information would be restricted by some special policy handler, not via url rewriting.
There was a problem hiding this comment.
This is adding a filter in front of getting any user that looks for ~ and transforms it.
There was a problem hiding this comment.
I'm not seeing it. Is currentUserContextFilter supposed to be checking for a '~' before doing a replacement?
There was a problem hiding this comment.
Good catch, copy and paste fail.
----- Original Message -----
for _, svc := range container.RegisteredWebServices() { switch svc.RootPath() { case "/": root = svc case OpenShiftAPIPrefixV1Beta1: svc.Doc("OpenShift REST API, version v1beta1").ApiVersion("v1beta1")
// add the current user filter// TODO: factor this betterfilter := currentUserContextFilter(c.getRequestsToUsers())routes := svc.Routes()for i := range routes {route := &routes[i] OpenShiftAPIPrefixV1Beta1+"/ns/{namespace}/users/{name}" || route.Path ==if route.Method == "GET" && (route.Path ==
OpenShiftAPIPrefixV1Beta1+"/users/{name}") {I'm not seeing it. Is currentUserContextFilter supposed to be checking for a
'~' before doing a replacement?
Reply to this email directly or view it on GitHub:
https://github.com/openshift/origin/pull/839/files#r24010928
There was a problem hiding this comment.
Which highlights how abysmal our tests of auth and the master are right now. Follow up item we need to come back to is that test-cmd needs to be validating auth, test-integration needs to be reusing the master code (not inventing its own), and this stuff needs to be unit tested more effectively.
----- Original Message -----
Good catch, copy and paste fail.
----- Original Message -----
for _, svc := range container.RegisteredWebServices() {
switch svc.RootPath() {
case "/":
root = svc
case OpenShiftAPIPrefixV1Beta1:
svc.Doc("OpenShift REST API, version v1beta1").ApiVersion("v1beta1")
+
// add the current user filter// TODO: factor this betterfilter := currentUserContextFilter(c.getRequestsToUsers())routes := svc.Routes()for i := range routes {route := &routes[i] OpenShiftAPIPrefixV1Beta1+"/ns/{namespace}/users/{name}" || route.Path ==if route.Method == "GET" && (route.Path ==
OpenShiftAPIPrefixV1Beta1+"/users/{name}") {I'm not seeing it. Is currentUserContextFilter supposed to be checking for
a
'~' before doing a replacement?
Reply to this email directly or view it on GitHub:
https://github.com/openshift/origin/pull/839/files#r24010928
|
Did you have other comments? |
dff4b13 to
961a4c1
Compare
Fixed broken behavior in our authorizer when dealing with unrecognized paths. We need to separate the upstream more clearly into protected and unprotected paths.
Performs authentication and authorization in the OpenShift filters, then connects to the backend as the OpenShift core user. In the future, we will want to enforce a delegation pattern so the underlying Kube is aware of the identity of the user as well.
961a4c1 to
b21d54d
Compare
|
lgtm |
|
[merge] |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_openshift3/787/) (Image: devenv-fedora_671) |
|
Evaluated for origin up to b21d54d |
* first pass * generated code * update docs for osbguid to externalid
Need to set our credentials onto the underlying request still.