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
feat: add support for user and groups impersonation
As Capsule Proxy proxies requests to the Kubernetes API server, it uses its own identity to impersonate the identity of the incoming request, towards the API server.
As of now, if the incoming request is in turn trying to impersonate a user and possibly groups, the impersonation headers are ignored and overridden by Capsule Proxy with the identity of the incoming request.
As such, Capsule Proxy proxies now requests to the API server impersonating on behalf of the identity of the incoming request, the user and the groups that that identity is trying to impersonate, if and only if, the token of that identity has required permissions bound.
Copy file name to clipboardexpand all lines: e2e/kubectl-https-tests/namespaces/list.bats
+1-1
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ namespace/oil-staging"
72
72
echo"User">&3
73
73
run kubectl --kubeconfig=${HACK_DIR}/alice.kubeconfig get namespace default
74
74
[ $status-eq 1 ]
75
-
[ "${lines[0]}"='Error from server (Forbidden): namespaces "default" is forbidden: User "alice" cannot get resource "namespaces" in API group "" in the namespace "default"' ]
75
+
[ "${lines[0]}"='Error from server (NotFound): namespace "default" not found' ]
76
76
run kubectl --kubeconfig=${HACK_DIR}/alice.kubeconfig --namespace default get pods
77
77
[ $status-eq 1 ]
78
78
[ "${lines[0]}"='Error from server (Forbidden): pods is forbidden: User "alice" cannot list resource "pods" in API group "" in the namespace "default"' ]
0 commit comments