You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl -k https://$(openshift start --print-ip):8443/api/v1/namespaces/myproject/pods/podX1:8080/proxy/appEndPoint
User "system:anonymous" cannot get pods/unsafeproxy in the namespace "myproject": User "system:anonymous" cannot get pods/unsafeproxy in project "myproject"
Are we OK with losing our nice machine parseable error? We lost this by moving to the upstream handlers. We should probably fix upstream to do something more useful.
On Fri, Oct 6, 2017 at 2:34 PM, Mo Khan ***@***.***> wrote:
Now:
$ curl -k https://$(openshift start --print-ip):8443/api/v1/namespaces/myproject/pods/podX1:8080/proxy/appEndPoint
User "system:anonymous" cannot get pods/unsafeproxy in the namespace "myproject": User "system:anonymous" cannot get pods/unsafeproxy in project "myproject"
In the past:
$ curl -k https://$(openshift start --print-ip):8443/api/v1/namespaces/myproject/pods/podX1:8080/proxy/appEndPoint
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "User \"system:anonymous\" cannot get pods/unsafeproxy in project \"myproject\"",
"reason": "Forbidden",
"details": {
"name": "podX1:8080",
"kind": "pods"
},
"code": 403
}
Are we OK with losing our nice machine parseable error? We lost this by
moving to the upstream handlers. We should probably fix upstream to do
something more useful.
@openshift/sig-security
<https://github.com/orgs/openshift/teams/sig-security>
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#16731>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABG_p4x-Gjv7t6DIoYZDrh4ZFq_IsLX-ks5spnKcgaJpZM4Pw3tQ>
.
$ curl -k https://localhost:6443/api/v1/namespaces/default/pods/
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "pods is forbidden: User \"system:anonymous\" cannot list pods in the namespace \"default\"",
"reason": "Forbidden",
"details": {
"kind": "pods"
},
"code": 403
}
on openshift
# curl -k https://localhost:8443/api/v1/namespaces/myproject/pods/
User "system:anonymous" cannot list pods in the namespace "myproject": User "system:anonymous" cannot list pods in project "myproject"
by upstream do you mean Kubernetes or something else?
Is this a beginner friendly issue? If yes, what particular areas I should look at to solve this problem?
I have been trying to solve this issue for quiet sometime now!
First I tried to find where this string is built? But it seems like the code is very modular and simple grep won't help.
When I tried the same on k8s, I found that the server throws the error in a rbac.go, about the denial of the request
Later I have inferred that I am being authenticated as system:anonymous but authorization step fails (please correct me if I am wrong here), the request is not going to the Admission Controllers
Doing more grepping on the source, found this one particular function Forbidden, thought this might be called but it is not being called so, also found a similar function here which is also not being called.
Now I resorted to see what kubectl has to offer, so ran the command kubectl get nodes --v 10, which listed bunch of functions, but not sure if those are server side or only called client side. The output has following line:
I1016 18:08:20.723527 8790 round_trippers.go:436] GET https://localhost:8443/api/v1/nodes 403 Forbidden in 0 milliseconds
@smarterclayton@liggitt are we OK with 3.7 not having status errors on forbidden? 3.6- work as expected, and so will 3.8+ Seems strange to have 3.7 be the only release with this in a broken state.
Activity
smarterclayton commentedon Oct 6, 2017
liggitt commentedon Oct 16, 2017
similar issue reported upstream, I verified we get full status objects back in 1.8, hadn't tracked down where it was fixed
kubernetes/kubernetes#52754 (comment)
surajssd commentedon Oct 16, 2017
This seems to be fixed in upstream:
on k8s
on openshift
by upstream do you mean Kubernetes or something else?
liggitt commentedon Oct 16, 2017
yes, kubernetes. fixed in the 1.8 timeframe, which means openshift would pick up the fix in 3.8
surajssd commentedon Oct 16, 2017
Is this a beginner friendly issue? If yes, what particular areas I should look at to solve this problem?
I have been trying to solve this issue for quiet sometime now!
system:anonymousbut authorization step fails (please correct me if I am wrong here), the request is not going to the Admission ControllersForbidden, thought this might be called but it is not being called so, also found a similar function here which is also not being called.kubectl get nodes --v 10, which listed bunch of functions, but not sure if those are server side or only called client side. The output has following line:which comes from here
Is there some specific place I should look at to fix this issue?
surajssd commentedon Oct 16, 2017
@liggitt thanks for that reply, did not see your early comment, but I think this will help me understand how this was solved 👍 :-)
Can you point me to the piece of code that fixed this one issue?
enj commentedon Oct 16, 2017
This was fixed in kubernetes/kubernetes#47384
@smarterclayton @liggitt are we OK with 3.7 not having status errors on forbidden? 3.6- work as expected, and so will 3.8+ Seems strange to have 3.7 be the only release with this in a broken state.
xiaods commentedon Oct 23, 2017
any update?
simo5 commentedon Oct 25, 2017
Seem like it will be automatically fixed in 3.8, I am going to close this issue as we are not going to deal with this in 3.7 timeframe.
smarterclayton commentedon Oct 25, 2017
Please make sure this is documented in the release notes for API changes and that it will be resolved in 3.8